21#ifndef APPEARANCE_CONTROLS_3D_H
22#define APPEARANCE_CONTROLS_3D_H
94 return wxGetTranslation(
m_tooltip.value() );
96 return m_action.value()->GetTooltip(
true );
103 return wxGetTranslation(
m_label );
139 void OnSetFocus( wxFocusEvent& aEvent )
override;
140 void OnSize( wxSizeEvent& aEvent )
override;
Container for an appearance setting (can control a layer class, object type, etc.)
APPEARANCE_SETTING_3D(const wxString &aLabel, int aId, const TOOL_ACTION &aAction)
BITMAP_TOGGLE * m_Ctl_visibility
std::optional< const TOOL_ACTION * > m_action
std::optional< wxString > m_tooltip
COLOR_SWATCH * m_Ctl_color
wxString GetLabel() const
wxString GetTooltip() const
APPEARANCE_SETTING_3D(const wxString &aLabel, int aId, const wxString &aTooltip)
Class APPEARANCE_CONTROLS_3D_BASE.
void OnLanguageChanged(wxCommandEvent &aEvent)
void CommonSettingsChanged()
VIEWPORT3D * m_lastSelectedViewport
wxArrayString m_viewportMRU
~APPEARANCE_CONTROLS_3D()
GRID_BITMAP_TOGGLE_RENDERER * m_toggleGridRenderer
wxCheckBox * m_cbUseBoardStackupColors
void onLayerPresetChanged(wxCommandEvent &aEvent) override
wxArrayString m_presetMRU
void updateLayerPresetWidget(const wxString &aName)
wxSize GetBestSize() const
std::vector< VIEWPORT3D > GetUserViewports() const
Update the current viewports from those saved in the project file.
wxColour m_layerPanelColour
void ApplyViewport(const wxString &aPresetName)
void syncLayerPresetSelection()
void rebuildLayerPresetsWidget()
void onColorSwatchChanged(COLOR_SWATCH *aSwatch)
wxBoxSizer * m_envOuterSizer
std::vector< std::unique_ptr< APPEARANCE_SETTING_3D > > m_layerSettings
std::map< int, APPEARANCE_SETTING_3D * > m_layerSettingsMap
static const APPEARANCE_SETTING_3D s_layerSettings[]
Template for object appearance settings.
void doApplyLayerPreset(const LAYER_PRESET_3D &aPreset)
EDA_3D_VIEWER_FRAME * m_frame
void onUpdateViewportsCb(wxUpdateUIEvent &aEvent) override
const wxArrayString & GetViewportsMRU()
void OnSetFocus(wxFocusEvent &aEvent) override
void OnLayerVisibilityChanged(int aLayer, bool isVisible)
void OnSize(wxSizeEvent &aEvent) override
void doApplyViewport(const VIEWPORT3D &aViewport)
std::map< wxString, VIEWPORT3D > m_viewports
wxCheckBox * m_cbUseBoardEditorCopperColors
wxBoxSizer * m_layersOuterSizer
void ApplyLayerPreset(const wxString &aPresetName)
void rebuildViewportsWidget()
void onViewportChanged(wxCommandEvent &aEvent) override
void SetUserViewports(std::vector< VIEWPORT3D > &aPresetList)
const wxArrayString & GetLayerPresetsMRU()
Return a list of viewports created by the user.
A checkbox control except with custom bitmaps for the checked and unchecked states.
A simple color swatch of the kind used to set layer colors.
Create and handle a window for the 3d viewer connected to a Kiway and a pcbboard.
A toggle button renderer for a wxGrid, similar to BITMAP_TOGGLE.
A color representation with 4 components: red, green, blue, alpha.
Icon provider for the "standard" row indicators, for example in layer selection lists.