58 int pos =
m_themes->Append( settings->GetName(), static_cast<void*>( settings ) );
60 if( settings == current )
63 m_themes->GetTextExtent( settings->GetName(), &width, &height );
64 minwidth = std::max( minwidth, width );
67 m_themes->SetMinSize( wxSize( minwidth + 50, -1 ) );
84 if( cfg->m_UseEeschemaColorSettings )
KIGFX::SCH_VIEW * GetView() const override
Return a pointer to the #VIEW instance used in the panel.
void OnThemeChanged(wxCommandEvent &event) override
SETTINGS_MANAGER * GetSettingsManager() const
Container for all the knowledge about how graphical objects are drawn on any output surface/device.
std::vector< COLOR_SETTINGS * > GetColorSettingsList()
SYMBOL_EDITOR_SETTINGS * GetSettings() const
wxString GetFilename() const
SYMBOL_EDIT_FRAME * m_frame
bool TransferDataToWindow() override
Class PANEL_SYM_COLOR_SETTINGS_BASE.
PAINTER * GetPainter() const
Return the painter object used by the view for drawing #VIEW_ITEMS.
wxRadioButton * m_themeRB
SCH_DRAW_PANEL * GetCanvas() const override
Return a pointer to GAL-based canvas of given EDA draw frame.
T * GetAppSettings(bool aLoadNow=true)
Returns a handle to the a given settings by type If the settings have already been loaded,...
COLOR_SETTINGS * GetColorSettings(const wxString &aName="user")
Retrieves a color settings object that applications can read colors from.
virtual RENDER_SETTINGS * GetSettings()=0
Return a pointer to current settings that are going to be used when drawing items.
wxRadioButton * m_eeschemaRB
Color settings are a bit different than most of the settings objects in that there can be more than o...
bool m_UseEeschemaColorSettings
bool TransferDataFromWindow() override
virtual void LoadColors(const COLOR_SETTINGS *aSettings)
PANEL_SYM_COLOR_SETTINGS(SYMBOL_EDIT_FRAME *aFrame, wxWindow *aWindow)
wxString m_ColorTheme
Active color theme name.
The symbol library editor main window.