KiCad PCB EDA Suite
|
#include <panel_display_options.h>
Public Member Functions | |
PANEL_DISPLAY_OPTIONS (wxWindow *aParent, APP_SETTINGS_BASE *aAppSettings) | |
~PANEL_DISPLAY_OPTIONS () override | |
bool | Show (bool aShow) override |
bool | TransferDataFromWindow () override |
bool | TransferDataToWindow () override |
void | ResetPanel () override |
Reset the contents of this panel. | |
virtual wxString | GetResetTooltip () const |
Get the tooltip the reset button should display when showing this panel. | |
wxString | GetHelpTextAtPoint (const wxPoint &aPt, wxHelpEvent::Origin aOrigin) const override |
Overridden to supply the reset button tooltip when queried with { -INT_MAX, INT_MAX }. | |
Protected Member Functions | |
virtual void | OnGridSize (wxSizeEvent &event) |
Private Member Functions | |
void | OnAddLayerItem (wxCommandEvent &event) override |
void | OnDeleteLayerItem (wxCommandEvent &event) override |
void | onLayerChange (wxGridEvent &event) override |
void | loadPCBSettings (PCBNEW_SETTINGS *aCfg) |
void | loadFPSettings (const FOOTPRINT_EDITOR_SETTINGS *aCfg) |
int | getNextAvailableLayer () const |
Private Attributes | |
bool | m_isPCBEdit |
PANEL_GAL_OPTIONS * | m_galOptsPanel |
Definition at line 29 of file panel_display_options.h.
PANEL_DISPLAY_OPTIONS::PANEL_DISPLAY_OPTIONS | ( | wxWindow * | aParent, |
APP_SETTINGS_BASE * | aAppSettings ) |
Definition at line 149 of file panel_display_options.cpp.
References LSET::AllCuMask(), LSET::AllTechMask(), Edge_Cuts, KiBitmapBundle(), PANEL_DISPLAY_OPTIONS_BASE::m_bpAddLayer, PANEL_DISPLAY_OPTIONS_BASE::m_bpDeleteLayer, PANEL_DISPLAY_OPTIONS_BASE::m_galOptionsSizer, m_galOptsPanel, m_isPCBEdit, PANEL_DISPLAY_OPTIONS_BASE::m_layerNameitemsGrid, PANEL_DISPLAY_OPTIONS_BASE::m_optionsBook, Margin, PANEL_DISPLAY_OPTIONS_BASE::PANEL_DISPLAY_OPTIONS_BASE(), BASE_SET::set(), small_plus, and small_trash.
|
override |
Definition at line 181 of file panel_display_options.cpp.
References PANEL_DISPLAY_OPTIONS_BASE::m_layerNameitemsGrid.
|
inlineoverrideinherited |
Overridden to supply the reset button tooltip when queried with { -INT_MAX, INT_MAX }.
Definition at line 72 of file resettable_panel.h.
References GetResetTooltip().
|
private |
Definition at line 260 of file panel_display_options.cpp.
References PANEL_DISPLAY_OPTIONS_BASE::m_layerNameitemsGrid, User_1, and User_45.
Referenced by onLayerChange().
|
inlinevirtualinherited |
Get the tooltip the reset button should display when showing this panel.
Reimplemented in PANEL_COLOR_SETTINGS, and PANEL_HOTKEYS_EDITOR.
Definition at line 64 of file resettable_panel.h.
References _.
Referenced by GetHelpTextAtPoint().
|
private |
Definition at line 188 of file panel_display_options.cpp.
References IsUserLayer(), FOOTPRINT_EDITOR_SETTINGS::m_DesignSettings, PANEL_DISPLAY_OPTIONS_BASE::m_layerNameitemsGrid, BOARD_DESIGN_SETTINGS::m_UserLayerNames, LSET::NameToLayer(), and table.
Referenced by ResetPanel(), and TransferDataToWindow().
|
private |
Definition at line 210 of file panel_display_options.cpp.
References CROSS_PROBING_SETTINGS::auto_highlight, CROSS_PROBING_SETTINGS::center_on_items, clearanceModeMap, CROSS_PROBING_SETTINGS::flash_selection, UTIL::GetConfigForVal(), PANEL_DISPLAY_OPTIONS_BASE::m_checkCrossProbeAutoHighlight, PANEL_DISPLAY_OPTIONS_BASE::m_checkCrossProbeCenter, PANEL_DISPLAY_OPTIONS_BASE::m_checkCrossProbeFlash, PANEL_DISPLAY_OPTIONS_BASE::m_checkCrossProbeOnSelection, PANEL_DISPLAY_OPTIONS_BASE::m_checkCrossProbeZoom, PANEL_DISPLAY_OPTIONS_BASE::m_checkForceShowFieldsWhenFPSelected, APP_SETTINGS_BASE::m_CrossProbing, PCBNEW_SETTINGS::m_Display, PCB_VIEWERS_SETTINGS_BASE::VIEWERS_DISPLAY_OPTIONS::m_DisplayPadNumbers, PCBNEW_SETTINGS::DISPLAY_OPTIONS::m_ForceShowFieldsWhenFPSelected, PCBNEW_SETTINGS::DISPLAY_OPTIONS::m_Live3DRefresh, PANEL_DISPLAY_OPTIONS_BASE::m_live3Drefresh, PCBNEW_SETTINGS::DISPLAY_OPTIONS::m_NetNames, PANEL_DISPLAY_OPTIONS_BASE::m_OptDisplayPadClearence, PANEL_DISPLAY_OPTIONS_BASE::m_OptDisplayPadNumber, PANEL_DISPLAY_OPTIONS_BASE::m_OptDisplayTracksClearance, PANEL_DISPLAY_OPTIONS_BASE::m_OptUseViaColorForNormalTHPadstacks, PCBNEW_SETTINGS::DISPLAY_OPTIONS::m_PadClearance, PANEL_DISPLAY_OPTIONS_BASE::m_ShowNetNamesOption, PCBNEW_SETTINGS::DISPLAY_OPTIONS::m_TrackClearance, PCBNEW_SETTINGS::DISPLAY_OPTIONS::m_UseViaColorForNormalTHPadstacks, PCB_VIEWERS_SETTINGS_BASE::m_ViewersDisplay, CROSS_PROBING_SETTINGS::on_selection, and CROSS_PROBING_SETTINGS::zoom_to_fit.
Referenced by ResetPanel(), and TransferDataToWindow().
|
overrideprivatevirtual |
Reimplemented from PANEL_DISPLAY_OPTIONS_BASE.
Definition at line 309 of file panel_display_options.cpp.
References PANEL_DISPLAY_OPTIONS_BASE::m_layerNameitemsGrid.
|
overrideprivatevirtual |
Reimplemented from PANEL_DISPLAY_OPTIONS_BASE.
Definition at line 320 of file panel_display_options.cpp.
References PANEL_DISPLAY_OPTIONS_BASE::m_layerNameitemsGrid.
|
inlineprotectedvirtualinherited |
Definition at line 80 of file panel_display_options_base.h.
Referenced by PANEL_DISPLAY_OPTIONS_BASE(), and ~PANEL_DISPLAY_OPTIONS_BASE().
|
overrideprivatevirtual |
Reimplemented from PANEL_DISPLAY_OPTIONS_BASE.
Definition at line 277 of file panel_display_options.cpp.
References _, PAGED_DIALOG::GetDialog(), getNextAvailableLayer(), PANEL_DISPLAY_OPTIONS_BASE::m_layerNameitemsGrid, PAGED_DIALOG::SetError(), and table.
|
overridevirtual |
Reset the contents of this panel.
Implements RESETTABLE_PANEL.
Definition at line 383 of file panel_display_options.cpp.
References JSON_SETTINGS::Load(), loadFPSettings(), loadPCBSettings(), m_galOptsPanel, and m_isPCBEdit.
|
override |
Definition at line 229 of file panel_display_options.cpp.
References KiBitmapBundle(), PANEL_DISPLAY_OPTIONS_BASE::m_bpAddLayer, PANEL_DISPLAY_OPTIONS_BASE::m_bpDeleteLayer, small_plus, and small_trash.
|
override |
Definition at line 333 of file panel_display_options.cpp.
References clearanceModeMap, GetAppSettings(), UTIL::GetValFromConfig(), IsUserLayer(), PANEL_DISPLAY_OPTIONS_BASE::m_checkCrossProbeAutoHighlight, PANEL_DISPLAY_OPTIONS_BASE::m_checkCrossProbeCenter, PANEL_DISPLAY_OPTIONS_BASE::m_checkCrossProbeFlash, PANEL_DISPLAY_OPTIONS_BASE::m_checkCrossProbeOnSelection, PANEL_DISPLAY_OPTIONS_BASE::m_checkCrossProbeZoom, PANEL_DISPLAY_OPTIONS_BASE::m_checkForceShowFieldsWhenFPSelected, m_galOptsPanel, m_isPCBEdit, PANEL_DISPLAY_OPTIONS_BASE::m_layerNameitemsGrid, PANEL_DISPLAY_OPTIONS_BASE::m_live3Drefresh, PANEL_DISPLAY_OPTIONS_BASE::m_OptDisplayPadClearence, PANEL_DISPLAY_OPTIONS_BASE::m_OptDisplayPadNumber, PANEL_DISPLAY_OPTIONS_BASE::m_OptDisplayTracksClearance, PANEL_DISPLAY_OPTIONS_BASE::m_OptUseViaColorForNormalTHPadstacks, PANEL_DISPLAY_OPTIONS_BASE::m_ShowNetNamesOption, LSET::Name(), name, and table.
|
override |
Definition at line 247 of file panel_display_options.cpp.
References GetAppSettings(), loadFPSettings(), loadPCBSettings(), m_galOptsPanel, and m_isPCBEdit.
|
protectedinherited |
Definition at line 61 of file panel_display_options_base.h.
Referenced by PANEL_DISPLAY_OPTIONS_BASE().
|
protectedinherited |
Definition at line 59 of file panel_display_options_base.h.
Referenced by PANEL_DISPLAY_OPTIONS::PANEL_DISPLAY_OPTIONS(), PANEL_DISPLAY_OPTIONS_BASE(), PANEL_DISPLAY_OPTIONS::Show(), and ~PANEL_DISPLAY_OPTIONS_BASE().
|
protectedinherited |
Definition at line 60 of file panel_display_options_base.h.
Referenced by PANEL_DISPLAY_OPTIONS::PANEL_DISPLAY_OPTIONS(), PANEL_DISPLAY_OPTIONS_BASE(), PANEL_DISPLAY_OPTIONS::Show(), and ~PANEL_DISPLAY_OPTIONS_BASE().
|
protectedinherited |
Definition at line 74 of file panel_display_options_base.h.
Referenced by PANEL_DISPLAY_OPTIONS::loadPCBSettings(), PANEL_DISPLAY_OPTIONS_BASE(), and PANEL_DISPLAY_OPTIONS::TransferDataFromWindow().
|
protectedinherited |
Definition at line 72 of file panel_display_options_base.h.
Referenced by PANEL_DISPLAY_OPTIONS::loadPCBSettings(), PANEL_DISPLAY_OPTIONS_BASE(), and PANEL_DISPLAY_OPTIONS::TransferDataFromWindow().
|
protectedinherited |
Definition at line 75 of file panel_display_options_base.h.
Referenced by PANEL_DISPLAY_OPTIONS::loadPCBSettings(), PANEL_DISPLAY_OPTIONS_BASE(), and PANEL_DISPLAY_OPTIONS::TransferDataFromWindow().
|
protectedinherited |
Definition at line 71 of file panel_display_options_base.h.
Referenced by PANEL_DISPLAY_OPTIONS::loadPCBSettings(), PANEL_DISPLAY_OPTIONS_BASE(), and PANEL_DISPLAY_OPTIONS::TransferDataFromWindow().
|
protectedinherited |
Definition at line 73 of file panel_display_options_base.h.
Referenced by PANEL_DISPLAY_OPTIONS::loadPCBSettings(), PANEL_DISPLAY_OPTIONS_BASE(), and PANEL_DISPLAY_OPTIONS::TransferDataFromWindow().
|
protectedinherited |
Definition at line 68 of file panel_display_options_base.h.
Referenced by PANEL_DISPLAY_OPTIONS::loadPCBSettings(), PANEL_DISPLAY_OPTIONS_BASE(), and PANEL_DISPLAY_OPTIONS::TransferDataFromWindow().
|
protectedinherited |
Definition at line 51 of file panel_display_options_base.h.
Referenced by PANEL_DISPLAY_OPTIONS_BASE().
|
protectedinherited |
Definition at line 69 of file panel_display_options_base.h.
Referenced by PANEL_DISPLAY_OPTIONS_BASE().
|
protectedinherited |
Definition at line 47 of file panel_display_options_base.h.
Referenced by PANEL_DISPLAY_OPTIONS::PANEL_DISPLAY_OPTIONS(), and PANEL_DISPLAY_OPTIONS_BASE().
|
private |
Definition at line 54 of file panel_display_options.h.
Referenced by PANEL_DISPLAY_OPTIONS(), ResetPanel(), TransferDataFromWindow(), and TransferDataToWindow().
|
private |
Definition at line 53 of file panel_display_options.h.
Referenced by PANEL_DISPLAY_OPTIONS(), ResetPanel(), TransferDataFromWindow(), and TransferDataToWindow().
|
protectedinherited |
Definition at line 58 of file panel_display_options_base.h.
Referenced by PANEL_DISPLAY_OPTIONS::getNextAvailableLayer(), PANEL_DISPLAY_OPTIONS::loadFPSettings(), PANEL_DISPLAY_OPTIONS::OnAddLayerItem(), PANEL_DISPLAY_OPTIONS::OnDeleteLayerItem(), PANEL_DISPLAY_OPTIONS::onLayerChange(), PANEL_DISPLAY_OPTIONS::PANEL_DISPLAY_OPTIONS(), PANEL_DISPLAY_OPTIONS_BASE(), PANEL_DISPLAY_OPTIONS::TransferDataFromWindow(), PANEL_DISPLAY_OPTIONS::~PANEL_DISPLAY_OPTIONS(), and ~PANEL_DISPLAY_OPTIONS_BASE().
|
protectedinherited |
Definition at line 57 of file panel_display_options_base.h.
Referenced by PANEL_DISPLAY_OPTIONS_BASE().
|
protectedinherited |
Definition at line 76 of file panel_display_options_base.h.
Referenced by PANEL_DISPLAY_OPTIONS::loadPCBSettings(), PANEL_DISPLAY_OPTIONS_BASE(), and PANEL_DISPLAY_OPTIONS::TransferDataFromWindow().
|
protectedinherited |
Definition at line 63 of file panel_display_options_base.h.
Referenced by PANEL_DISPLAY_OPTIONS_BASE().
|
protectedinherited |
Definition at line 55 of file panel_display_options_base.h.
Referenced by PANEL_DISPLAY_OPTIONS::loadPCBSettings(), PANEL_DISPLAY_OPTIONS_BASE(), and PANEL_DISPLAY_OPTIONS::TransferDataFromWindow().
|
protectedinherited |
Definition at line 65 of file panel_display_options_base.h.
Referenced by PANEL_DISPLAY_OPTIONS::loadPCBSettings(), PANEL_DISPLAY_OPTIONS_BASE(), and PANEL_DISPLAY_OPTIONS::TransferDataFromWindow().
|
protectedinherited |
Definition at line 54 of file panel_display_options_base.h.
Referenced by PANEL_DISPLAY_OPTIONS::loadPCBSettings(), PANEL_DISPLAY_OPTIONS_BASE(), and PANEL_DISPLAY_OPTIONS::TransferDataFromWindow().
|
protectedinherited |
Definition at line 56 of file panel_display_options_base.h.
Referenced by PANEL_DISPLAY_OPTIONS::PANEL_DISPLAY_OPTIONS(), and PANEL_DISPLAY_OPTIONS_BASE().
|
protectedinherited |
Definition at line 50 of file panel_display_options_base.h.
Referenced by PANEL_DISPLAY_OPTIONS::loadPCBSettings(), PANEL_DISPLAY_OPTIONS_BASE(), and PANEL_DISPLAY_OPTIONS::TransferDataFromWindow().
|
protectedinherited |
Definition at line 48 of file panel_display_options_base.h.
Referenced by PANEL_DISPLAY_OPTIONS_BASE().
|
protectedinherited |
Definition at line 64 of file panel_display_options_base.h.
Referenced by PANEL_DISPLAY_OPTIONS::loadPCBSettings(), PANEL_DISPLAY_OPTIONS_BASE(), and PANEL_DISPLAY_OPTIONS::TransferDataFromWindow().
|
protectedinherited |
Definition at line 62 of file panel_display_options_base.h.
Referenced by PANEL_DISPLAY_OPTIONS_BASE().
|
protectedinherited |
Definition at line 52 of file panel_display_options_base.h.
Referenced by PANEL_DISPLAY_OPTIONS_BASE().
|
protectedinherited |
Definition at line 70 of file panel_display_options_base.h.
Referenced by PANEL_DISPLAY_OPTIONS_BASE().
|
protectedinherited |
Definition at line 67 of file panel_display_options_base.h.
Referenced by PANEL_DISPLAY_OPTIONS_BASE().
|
protectedinherited |
Definition at line 49 of file panel_display_options_base.h.
Referenced by PANEL_DISPLAY_OPTIONS_BASE().
|
protectedinherited |
Definition at line 66 of file panel_display_options_base.h.
Referenced by PANEL_DISPLAY_OPTIONS_BASE().
|
protectedinherited |
Definition at line 53 of file panel_display_options_base.h.
Referenced by PANEL_DISPLAY_OPTIONS_BASE().