52 int pos =
m_themes->Append( settings->GetName(), static_cast<void*>( settings ) );
54 if( settings == current )
57 m_themes->GetTextExtent( settings->GetName(), &width, &height );
58 minwidth = std::max( minwidth, width );
61 m_themes->SetMinSize( wxSize( minwidth + 50, -1 ) );
PL_DRAW_PANEL_GAL * GetCanvas() const override
Return a pointer to GAL-based canvas of given EDA draw frame.
Container for all the knowledge about how graphical objects are drawn on any output surface/device.
PL_EDITOR_FRAME * m_frame
The main window used in the drawing sheet editor.
wxString GetFilename() const
bool TransferDataToWindow() override
KIWAY Kiway & Pgm(), KFCTL_STANDALONE
The global Program "get" accessor.
PAINTER * GetPainter() const
Return the painter object used by the view for drawing #VIEW_ITEMS.
Class PANEL_PL_EDITOR_COLOR_SETTINGS_BASE.
T * GetAppSettings(bool aLoadNow=true)
Returns a handle to the a given settings by type If the settings have already been loaded,...
virtual KIGFX::VIEW * GetView() const
Return a pointer to the #VIEW instance used in the panel.
PANEL_PL_EDITOR_COLOR_SETTINGS(PL_EDITOR_FRAME *aFrame, wxWindow *aWindow)
SETTINGS_MANAGER * GetSettingsManager()
virtual RENDER_SETTINGS * GetSettings()=0
Return a pointer to current settings that are going to be used when drawing items.
Color settings are a bit different than most of the settings objects in that there can be more than o...
virtual void LoadColors(const COLOR_SETTINGS *aSettings)
bool TransferDataFromWindow() override
wxString m_ColorTheme
Active color theme name.