28#include <wx/dcscreen.h> 
   29#include <wx/dcclient.h> 
   30#include <wx/settings.h> 
   31#include <wx/toplevel.h> 
   46                              const wxSize& aSize, 
long style, const wxString &
name ) :
 
   47    wxPanel( aParent, aId, aPosition, aSize, style, 
name )
 
   50    SetBackgroundColour( wxSystemSettings::GetColour( wxSYS_COLOUR_BTNFACE ) );
 
   53    SetBackgroundStyle( wxBG_STYLE_PAINT );
 
 
   77    return wxSize( wxDefaultCoord, 2 * 
m_fontSize.y + 0 );
 
 
   83    return wxPanel::DoGetBestClientSize();
 
 
  102    dc.SetBackground( wxSystemSettings::GetColour( wxSYS_COLOUR_BTNFACE ) );
 
  103    dc.SetBackgroundMode( wxSOLID );
 
  104    dc.SetTextBackground( wxSystemSettings::GetColour( wxSYS_COLOUR_BTNFACE ) );
 
 
  118    wxSize      drawSize = GetClientSize();
 
  120    text = ( aUpperText.Len() > aLowerText.Len() ) ? aUpperText : aLowerText;
 
  121    text.Append( 
' ', aPadding );
 
 
  148                                const wxString& aLowerText )
 
  151    wxSize drawSize = GetClientSize();
 
  153    if( aXPosition >= 0 )
 
  173    for( ndx = 0;  ndx < limit;  ++ndx )
 
 
  201    wxTopLevelWindow* tlw = 
dynamic_cast<wxTopLevelWindow*
>( wxGetTopLevelParent( 
this ) );
 
  203    if( tlw && !tlw->IsActive() )
 
  204        color = wxSystemSettings::GetColour( wxSYS_COLOUR_GRAYTEXT );
 
  206        color = wxSystemSettings::GetColour( wxSYS_COLOUR_WINDOWTEXT );
 
  208    aDC.SetTextForeground( 
color.ToColour() );
 
 
  231    wxSize  size  = GetClientSize();
 
  232    wxColour 
color = wxSystemSettings::GetColour( wxSYS_COLOUR_BTNFACE );
 
  234    pen.SetColour( 
color );
 
  236    brush.SetColour( 
color );
 
  237    brush.SetStyle( wxBRUSHSTYLE_SOLID );
 
  240    aDC->SetBrush( brush );
 
  241    aDC->DrawRectangle( 0, 0, size.x, size.y );
 
 
  248    std::optional<wxString> uuid;
 
  255            uuid = uuid->SubString( 0, 7 );
 
 
static const ADVANCED_CFG & GetCfg()
Get the singleton instance's config, which is shared by all consumers.
 
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 OnDPIChanged(wxDPIChangedEvent &aEvent)
 
wxSize DoGetBestSize() const override
 
int m_last_x
the last used x coordinate
 
EDA_MSG_PANEL(wxWindow *aParent, int aId, const wxPoint &aPosition, const wxSize &aSize, long style=wxTAB_TRAVERSAL, const wxString &name=wxPanelNameStr)
 
wxSize DoGetBestClientSize() const override
 
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.
 
wxString AsString() const
 
EDA_MSG_PANEL items for displaying messages.
 
int m_MsgPanelShowUuids
Show UUIDs of items in the message panel.
 
std::optional< wxString > GetMsgPanelDisplayUuid(const KIID &aKiid)
Get a formatted UUID string for display in the message panel, according to the current advanced confi...
 
Message panel definition file.
 
KICOMMON_API wxFont GetStatusFont(wxWindow *aWindow)
 
KICOMMON_API wxFont GetControlFont(wxWindow *aWindow)
 
void Refresh()
Update the board display after modifying it by a python script (note: it is automatically called by a...
 
Functions to provide common constants and other functions to assist in making a consistent UI.