37 #include <wx/window.h> 44 #define MSG_PANEL_DEFAULT_PAD 6 113 void erase( wxDC* DC );
128 const wxPoint& aPosition,
const wxSize& aSize,
129 long style=wxTAB_TRAVERSAL,
const wxString &
name=wxPanelNameStr);
139 void OnPaint( wxPaintEvent& aEvent );
151 void SetMessage(
int aXPosition,
const wxString& aUpperText,
const wxString& aLowerText );
166 void AppendMessage(
const wxString& aUpperText,
const wxString& aLowerText,
int aPadding = 6 );
181 DECLARE_EVENT_TABLE()
185 #endif // _MSGPANEL_H_ EDA_MSG_PANEL(wxWindow *aParent, int aId, const wxPoint &aPosition, const wxSize &aSize, long style=wxTAB_TRAVERSAL, const wxString &name=wxPanelNameStr)
void showItem(wxDC &dc, const MSG_PANEL_ITEM &aItem)
void SetMessage(int aXPosition, const wxString &aUpperText, const wxString &aLowerText)
Function SetMessage sets a message at aXPosition to aUpperText and aLowerText in the message panel.
EDA_MSG_PANEL is a panel to display various information messages.
const wxString & GetLowerText() const
void AppendMessage(const MSG_PANEL_ITEM &aMessageItem)
Function AppendMessage appends aMessageItem to the message panel.
void OnPaint(wxPaintEvent &aEvent)
#define MSG_PANEL_DEFAULT_PAD
The default number of spaces between each text string.
const wxString & GetUpperText() const
MSG_PANEL_ITEM(const wxString &aUpperText, const wxString &aLowerText, int aPadding=MSG_PANEL_DEFAULT_PAD)
wxSize computeTextSize(const wxString &text) const
Calculate the width and height of a text string using the system UI font.
int m_last_x
the last used x coordinate
void SetLowerText(const wxString &aLowerText)
void SetPadding(int aPadding)
std::vector< MSG_PANEL_ITEM > MSG_PANEL_ITEMS
static wxSize computeFontSize()
Function getFontSize computes the height and width of a 'W' in the system font.
EDA_MSG_ITEM is used EDA_MSG_PANEL as the item type for displaying messages.
void AppendMessage(const wxString &aUpperText, const wxString &aLowerText, int aPadding=6)
Function AppendMessage appends a message to the message panel.
void SetUpperText(const wxString &aUpperText)
static int GetRequiredHeight()
Function GetRequiredHeight returns the required height (in pixels) of a EDA_MSG_PANEL.
A color representation with 4 components: red, green, blue, alpha.