44#define MSG_PANEL_DEFAULT_PAD 6
104 const wxPoint& aPosition,
const wxSize& aSize,
105 long style=wxTAB_TRAVERSAL,
const wxString&
name=wxPanelNameStr);
115 void OnPaint( wxPaintEvent& aEvent );
126 void SetMessage(
int aXPosition,
const wxString& aUpperText,
const wxString& aLowerText );
140 void AppendMessage(
const wxString& aUpperText,
const wxString& aLowerText,
int aPadding = 6 );
154 DECLARE_EVENT_TABLE()
159 void erase( wxDC* DC );
A panel to display various information messages.
void SetMessage(int aXPosition, const wxString &aUpperText, const wxString &aLowerText)
Set a message at aXPosition to aUpperText and aLowerText in the message panel.
void AppendMessage(const wxString &aUpperText, const wxString &aLowerText, int aPadding=6)
Append a message to the message panel.
void AppendMessage(const MSG_PANEL_ITEM &aMessageItem)
Append aMessageItem to the message panel.
int m_last_x
the last used x coordinate
static int GetRequiredHeight(wxWindow *aWindow)
Return the required height (in pixels) of a EDA_MSG_PANEL.
wxSize computeTextSize(const wxString &text) const
Calculate the width and height of a text string using the system UI font.
void showItem(wxDC &dc, const MSG_PANEL_ITEM &aItem)
std::vector< MSG_PANEL_ITEM > m_Items
void OnPaint(wxPaintEvent &aEvent)
A color representation with 4 components: red, green, blue, alpha.
EDA_MSG_PANEL items for displaying messages.
const wxString & GetUpperText() const
void SetLowerText(const wxString &aLowerText)
void SetUpperText(const wxString &aUpperText)
const wxString & GetLowerText() const
void SetPadding(int aPadding)
MSG_PANEL_ITEM(const wxString &aUpperText, const wxString &aLowerText, int aPadding=MSG_PANEL_DEFAULT_PAD)
#define MSG_PANEL_DEFAULT_PAD
The default number of spaces between each text string.