KiCad PCB EDA Suite
MSG_PANEL_ITEM Class Reference

Class EDA_MSG_ITEM is used EDA_MSG_PANEL as the item type for displaying messages. More...

#include <msgpanel.h>

Public Member Functions

 MSG_PANEL_ITEM (const wxString &aUpperText, const wxString &aLowerText, COLOR4D aColor, int aPad=MSG_PANEL_DEFAULT_PAD)
 
 MSG_PANEL_ITEM ()
 
void SetUpperText (const wxString &aUpperText)
 
const wxString & GetUpperText () const
 
void SetLowerText (const wxString &aLowerText)
 
const wxString & GetLowerText () const
 
void SetColor (COLOR4D aColor)
 
COLOR4D GetColor () const
 
void SetPadding (int aPad)
 
int GetPadding () const
 

Private Attributes

int m_X
 
int m_UpperY
 
int m_LowerY
 
wxString m_UpperText
 
wxString m_LowerText
 
COLOR4D m_Color
 
int m_Pad
 

Friends

class EDA_MSG_PANEL
 

Detailed Description

Class EDA_MSG_ITEM is used EDA_MSG_PANEL as the item type for displaying messages.

Definition at line 53 of file msgpanel.h.

Constructor & Destructor Documentation

MSG_PANEL_ITEM::MSG_PANEL_ITEM ( const wxString &  aUpperText,
const wxString &  aLowerText,
COLOR4D  aColor,
int  aPad = MSG_PANEL_DEFAULT_PAD 
)
inline

Definition at line 66 of file msgpanel.h.

67  :
68  m_UpperText( aUpperText ),
69  m_LowerText( aLowerText ),
70  m_Color( aColor ),
71  m_Pad( aPad )
72  {
73  m_X = 0;
74  m_UpperY = 0;
75  m_LowerY = 0;
76  }
COLOR4D m_Color
Definition: msgpanel.h:60
wxString m_LowerText
Definition: msgpanel.h:59
wxString m_UpperText
Definition: msgpanel.h:58
MSG_PANEL_ITEM::MSG_PANEL_ITEM ( )
inline

Definition at line 78 of file msgpanel.h.

78  :
80 
81  {
82  m_X = 0;
83  m_UpperY = 0;
84  m_LowerY = 0;
85  m_Color = COLOR4D::UNSPECIFIED;
86  }
COLOR4D m_Color
Definition: msgpanel.h:60
#define MSG_PANEL_DEFAULT_PAD
The default number of spaces between each text string.
Definition: msgpanel.h:43

Member Function Documentation

COLOR4D MSG_PANEL_ITEM::GetColor ( ) const
inline

Definition at line 95 of file msgpanel.h.

References m_Color.

Referenced by EDA_MSG_PANEL::AppendMessage().

95 { return m_Color; }
COLOR4D m_Color
Definition: msgpanel.h:60
const wxString& MSG_PANEL_ITEM::GetLowerText ( ) const
inline

Definition at line 92 of file msgpanel.h.

References m_LowerText.

Referenced by EDA_MSG_PANEL::AppendMessage().

92 { return m_LowerText; }
wxString m_LowerText
Definition: msgpanel.h:59
int MSG_PANEL_ITEM::GetPadding ( ) const
inline

Definition at line 98 of file msgpanel.h.

References m_Pad.

Referenced by EDA_MSG_PANEL::AppendMessage().

98 { return m_Pad; }
const wxString& MSG_PANEL_ITEM::GetUpperText ( ) const
inline

Definition at line 89 of file msgpanel.h.

References m_UpperText.

Referenced by EDA_MSG_PANEL::AppendMessage().

89 { return m_UpperText; }
wxString m_UpperText
Definition: msgpanel.h:58
void MSG_PANEL_ITEM::SetColor ( COLOR4D  aColor)
inline

Definition at line 94 of file msgpanel.h.

94 { m_Color = aColor; }
COLOR4D m_Color
Definition: msgpanel.h:60
void MSG_PANEL_ITEM::SetLowerText ( const wxString &  aLowerText)
inline

Definition at line 91 of file msgpanel.h.

91 { m_LowerText = aLowerText; }
wxString m_LowerText
Definition: msgpanel.h:59
void MSG_PANEL_ITEM::SetPadding ( int  aPad)
inline

Definition at line 97 of file msgpanel.h.

97 { m_Pad = aPad; }
void MSG_PANEL_ITEM::SetUpperText ( const wxString &  aUpperText)
inline

Definition at line 88 of file msgpanel.h.

88 { m_UpperText = aUpperText; }
wxString m_UpperText
Definition: msgpanel.h:58

Friends And Related Function Documentation

friend class EDA_MSG_PANEL
friend

Definition at line 63 of file msgpanel.h.

Member Data Documentation

COLOR4D MSG_PANEL_ITEM::m_Color
private
wxString MSG_PANEL_ITEM::m_LowerText
private
int MSG_PANEL_ITEM::m_LowerY
private
int MSG_PANEL_ITEM::m_Pad
private

Definition at line 61 of file msgpanel.h.

Referenced by GetPadding().

wxString MSG_PANEL_ITEM::m_UpperText
private
int MSG_PANEL_ITEM::m_UpperY
private
int MSG_PANEL_ITEM::m_X
private

The documentation for this class was generated from the following file: