KiCad PCB EDA Suite
|
#include <panel_grid_settings.h>
Public Member Functions | |
PANEL_GRID_SETTINGS (wxWindow *aParent, UNITS_PROVIDER *aUnitsProvider, wxWindow *aEventSource, APP_SETTINGS_BASE *aCfg, FRAME_T aFrameType) | |
This has no dependencies on calling wxFrame derivative, such as PCB_BASE_FRAME. | |
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 Attributes | |
wxStaticText * | m_gridsLabel |
wxListBox * | m_currentGridCtrl |
STD_BITMAP_BUTTON * | m_addGridButton |
STD_BITMAP_BUTTON * | m_editGridButton |
STD_BITMAP_BUTTON * | m_moveUpButton |
STD_BITMAP_BUTTON * | m_moveDownButton |
STD_BITMAP_BUTTON * | m_removeGridButton |
wxStaticText * | m_staticText21 |
wxStaticLine * | m_staticline2 |
wxStaticText * | m_staticTextGrid1 |
wxChoice * | m_grid1Ctrl |
wxStaticText * | m_grid1HotKey |
wxStaticText * | m_staticTextGrid2 |
wxChoice * | m_grid2Ctrl |
wxStaticText * | m_grid2HotKey |
wxStaticText * | m_overridesLabel |
wxStaticLine * | m_staticline3 |
wxCheckBox * | m_checkGridOverrideConnected |
wxChoice * | m_gridOverrideConnectedChoice |
wxCheckBox * | m_checkGridOverrideWires |
wxChoice * | m_gridOverrideWiresChoice |
wxCheckBox * | m_checkGridOverrideVias |
wxChoice * | m_gridOverrideViasChoice |
wxCheckBox * | m_checkGridOverrideText |
wxChoice * | m_gridOverrideTextChoice |
wxCheckBox * | m_checkGridOverrideGraphics |
wxChoice * | m_gridOverrideGraphicsChoice |
Private Member Functions | |
void | OnAddGrid (wxCommandEvent &event) override |
void | OnEditGrid (wxCommandEvent &event) override |
void | OnRemoveGrid (wxCommandEvent &event) override |
void | OnMoveGridUp (wxCommandEvent &event) override |
void | OnMoveGridDown (wxCommandEvent &event) override |
void | OnUpdateEditGrid (wxUpdateUIEvent &event) override |
void | OnUpdateMoveUp (wxUpdateUIEvent &event) override |
void | OnUpdateMoveDown (wxUpdateUIEvent &event) override |
void | OnUpdateRemove (wxUpdateUIEvent &event) override |
void | RebuildGridSizes () |
void | onEditGrid () |
Private Attributes | |
UNITS_PROVIDER * | m_unitsProvider |
APP_SETTINGS_BASE * | m_cfg |
FRAME_T | m_frameType |
wxWindow * | m_eventSource |
std::vector< GRID > | m_grids |
Definition at line 35 of file panel_grid_settings.h.
PANEL_GRID_SETTINGS::PANEL_GRID_SETTINGS | ( | wxWindow * | aParent, |
UNITS_PROVIDER * | aUnitsProvider, | ||
wxWindow * | aEventSource, | ||
APP_SETTINGS_BASE * | aCfg, | ||
FRAME_T | aFrameType | ||
) |
This has no dependencies on calling wxFrame derivative, such as PCB_BASE_FRAME.
Definition at line 40 of file panel_grid_settings.cpp.
References _, FRAME_FOOTPRINT_EDITOR, FRAME_GERBER, FRAME_PCB_EDITOR, FRAME_SCH, FRAME_SCH_SYMBOL_EDITOR, FRAME_SCH_VIEWER, FRAME_SIMULATOR, TOOL_ACTION::GetHotKey(), ACTIONS::gridFast1, ACTIONS::gridFast2, KeyNameFromKeyCode(), KiBitmapBundle(), PANEL_GRID_SETTINGS_BASE::m_addGridButton, PANEL_GRID_SETTINGS_BASE::m_checkGridOverrideConnected, PANEL_GRID_SETTINGS_BASE::m_checkGridOverrideGraphics, PANEL_GRID_SETTINGS_BASE::m_checkGridOverrideText, PANEL_GRID_SETTINGS_BASE::m_checkGridOverrideVias, PANEL_GRID_SETTINGS_BASE::m_checkGridOverrideWires, PANEL_GRID_SETTINGS_BASE::m_currentGridCtrl, PANEL_GRID_SETTINGS_BASE::m_editGridButton, m_frameType, PANEL_GRID_SETTINGS_BASE::m_grid1HotKey, PANEL_GRID_SETTINGS_BASE::m_grid2HotKey, PANEL_GRID_SETTINGS_BASE::m_gridOverrideConnectedChoice, PANEL_GRID_SETTINGS_BASE::m_gridOverrideGraphicsChoice, PANEL_GRID_SETTINGS_BASE::m_gridOverrideTextChoice, PANEL_GRID_SETTINGS_BASE::m_gridOverrideViasChoice, PANEL_GRID_SETTINGS_BASE::m_gridOverrideWiresChoice, PANEL_GRID_SETTINGS_BASE::m_moveDownButton, PANEL_GRID_SETTINGS_BASE::m_moveUpButton, PANEL_GRID_SETTINGS_BASE::m_overridesLabel, PANEL_GRID_SETTINGS_BASE::m_removeGridButton, PANEL_GRID_SETTINGS_BASE::m_staticline3, and STD_BITMAP_BUTTON::SetBitmap().
|
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 RESETTABLE_PANEL::GetResetTooltip().
|
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 RESETTABLE_PANEL::GetHelpTextAtPoint().
|
overrideprivatevirtual |
Reimplemented from PANEL_GRID_SETTINGS_BASE.
Definition at line 246 of file panel_grid_settings.cpp.
References _, DisplayError(), PANEL_GRID_SETTINGS_BASE::m_currentGridCtrl, m_eventSource, m_grids, m_unitsProvider, RebuildGridSizes(), and DIALOG_SHIM::ShowModal().
|
private |
Definition at line 282 of file panel_grid_settings.cpp.
References _, DisplayError(), PANEL_GRID_SETTINGS_BASE::m_currentGridCtrl, m_eventSource, m_grids, m_unitsProvider, RebuildGridSizes(), and DIALOG_SHIM::ShowModal().
Referenced by OnEditGrid().
|
overrideprivatevirtual |
Reimplemented from PANEL_GRID_SETTINGS_BASE.
Definition at line 276 of file panel_grid_settings.cpp.
References onEditGrid().
|
overrideprivatevirtual |
Reimplemented from PANEL_GRID_SETTINGS_BASE.
Definition at line 351 of file panel_grid_settings.cpp.
References PANEL_GRID_SETTINGS_BASE::m_currentGridCtrl, m_grids, and RebuildGridSizes().
|
overrideprivatevirtual |
Reimplemented from PANEL_GRID_SETTINGS_BASE.
Definition at line 336 of file panel_grid_settings.cpp.
References PANEL_GRID_SETTINGS_BASE::m_currentGridCtrl, m_grids, and RebuildGridSizes().
|
overrideprivatevirtual |
Reimplemented from PANEL_GRID_SETTINGS_BASE.
Definition at line 321 of file panel_grid_settings.cpp.
References PANEL_GRID_SETTINGS_BASE::m_currentGridCtrl, m_grids, and RebuildGridSizes().
|
overrideprivatevirtual |
Reimplemented from PANEL_GRID_SETTINGS_BASE.
Definition at line 366 of file panel_grid_settings.cpp.
References PANEL_GRID_SETTINGS_BASE::m_currentGridCtrl.
|
overrideprivatevirtual |
Reimplemented from PANEL_GRID_SETTINGS_BASE.
Definition at line 383 of file panel_grid_settings.cpp.
References PANEL_GRID_SETTINGS_BASE::m_currentGridCtrl, and m_grids.
|
overrideprivatevirtual |
Reimplemented from PANEL_GRID_SETTINGS_BASE.
Definition at line 373 of file panel_grid_settings.cpp.
References PANEL_GRID_SETTINGS_BASE::m_currentGridCtrl, and m_grids.
|
overrideprivatevirtual |
Reimplemented from PANEL_GRID_SETTINGS_BASE.
Definition at line 393 of file panel_grid_settings.cpp.
References m_grids.
|
private |
Definition at line 109 of file panel_grid_settings.cpp.
References _, UNITS_PROVIDER::GetIuScale(), UNITS_PROVIDER::GetUnitPair(), grid, PANEL_GRID_SETTINGS_BASE::m_currentGridCtrl, PANEL_GRID_SETTINGS_BASE::m_grid1Ctrl, PANEL_GRID_SETTINGS_BASE::m_grid2Ctrl, PANEL_GRID_SETTINGS_BASE::m_gridOverrideConnectedChoice, PANEL_GRID_SETTINGS_BASE::m_gridOverrideGraphicsChoice, PANEL_GRID_SETTINGS_BASE::m_gridOverrideTextChoice, PANEL_GRID_SETTINGS_BASE::m_gridOverrideViasChoice, PANEL_GRID_SETTINGS_BASE::m_gridOverrideWiresChoice, m_grids, m_unitsProvider, name, and scale.
Referenced by OnAddGrid(), onEditGrid(), OnMoveGridDown(), OnMoveGridUp(), OnRemoveGrid(), ResetPanel(), and TransferDataToWindow().
|
overridevirtual |
Reset the contents of this panel.
Implements RESETTABLE_PANEL.
Definition at line 102 of file panel_grid_settings.cpp.
References APP_SETTINGS_BASE::DefaultGridSizeList(), m_cfg, m_grids, and RebuildGridSizes().
|
override |
Definition at line 180 of file panel_grid_settings.cpp.
References GRID_SETTINGS::fast_grid_1, GRID_SETTINGS::fast_grid_2, WINDOW_SETTINGS::grid, GRID_SETTINGS::grids, GRID_SETTINGS::last_size_idx, m_cfg, PANEL_GRID_SETTINGS_BASE::m_checkGridOverrideConnected, PANEL_GRID_SETTINGS_BASE::m_checkGridOverrideGraphics, PANEL_GRID_SETTINGS_BASE::m_checkGridOverrideText, PANEL_GRID_SETTINGS_BASE::m_checkGridOverrideVias, PANEL_GRID_SETTINGS_BASE::m_checkGridOverrideWires, PANEL_GRID_SETTINGS_BASE::m_currentGridCtrl, PANEL_GRID_SETTINGS_BASE::m_grid1Ctrl, PANEL_GRID_SETTINGS_BASE::m_grid2Ctrl, PANEL_GRID_SETTINGS_BASE::m_gridOverrideConnectedChoice, PANEL_GRID_SETTINGS_BASE::m_gridOverrideGraphicsChoice, PANEL_GRID_SETTINGS_BASE::m_gridOverrideTextChoice, PANEL_GRID_SETTINGS_BASE::m_gridOverrideViasChoice, PANEL_GRID_SETTINGS_BASE::m_gridOverrideWiresChoice, m_grids, APP_SETTINGS_BASE::m_Window, GRID_SETTINGS::override_connected, GRID_SETTINGS::override_connected_idx, GRID_SETTINGS::override_graphics, GRID_SETTINGS::override_graphics_idx, GRID_SETTINGS::override_text, GRID_SETTINGS::override_text_idx, GRID_SETTINGS::override_vias, GRID_SETTINGS::override_vias_idx, GRID_SETTINGS::override_wires, and GRID_SETTINGS::override_wires_idx.
|
override |
Definition at line 207 of file panel_grid_settings.cpp.
References GRID_SETTINGS::fast_grid_1, GRID_SETTINGS::fast_grid_2, WINDOW_SETTINGS::grid, GRID_SETTINGS::grids, GRID_SETTINGS::last_size_idx, m_cfg, PANEL_GRID_SETTINGS_BASE::m_checkGridOverrideConnected, PANEL_GRID_SETTINGS_BASE::m_checkGridOverrideGraphics, PANEL_GRID_SETTINGS_BASE::m_checkGridOverrideText, PANEL_GRID_SETTINGS_BASE::m_checkGridOverrideVias, PANEL_GRID_SETTINGS_BASE::m_checkGridOverrideWires, PANEL_GRID_SETTINGS_BASE::m_currentGridCtrl, PANEL_GRID_SETTINGS_BASE::m_grid1Ctrl, PANEL_GRID_SETTINGS_BASE::m_grid2Ctrl, PANEL_GRID_SETTINGS_BASE::m_gridOverrideConnectedChoice, PANEL_GRID_SETTINGS_BASE::m_gridOverrideGraphicsChoice, PANEL_GRID_SETTINGS_BASE::m_gridOverrideTextChoice, PANEL_GRID_SETTINGS_BASE::m_gridOverrideViasChoice, PANEL_GRID_SETTINGS_BASE::m_gridOverrideWiresChoice, m_grids, APP_SETTINGS_BASE::m_Window, GRID_SETTINGS::override_connected, GRID_SETTINGS::override_connected_idx, GRID_SETTINGS::override_graphics, GRID_SETTINGS::override_graphics_idx, GRID_SETTINGS::override_text, GRID_SETTINGS::override_text_idx, GRID_SETTINGS::override_vias, GRID_SETTINGS::override_vias_idx, GRID_SETTINGS::override_wires, GRID_SETTINGS::override_wires_idx, and RebuildGridSizes().
|
protectedinherited |
Definition at line 47 of file panel_grid_settings_base.h.
Referenced by PANEL_GRID_SETTINGS(), PANEL_GRID_SETTINGS_BASE::PANEL_GRID_SETTINGS_BASE(), and PANEL_GRID_SETTINGS_BASE::~PANEL_GRID_SETTINGS_BASE().
|
private |
Definition at line 65 of file panel_grid_settings.h.
Referenced by ResetPanel(), TransferDataFromWindow(), and TransferDataToWindow().
|
protectedinherited |
Definition at line 62 of file panel_grid_settings_base.h.
Referenced by PANEL_GRID_SETTINGS(), PANEL_GRID_SETTINGS_BASE::PANEL_GRID_SETTINGS_BASE(), TransferDataFromWindow(), and TransferDataToWindow().
|
protectedinherited |
Definition at line 70 of file panel_grid_settings_base.h.
Referenced by PANEL_GRID_SETTINGS(), PANEL_GRID_SETTINGS_BASE::PANEL_GRID_SETTINGS_BASE(), TransferDataFromWindow(), and TransferDataToWindow().
|
protectedinherited |
Definition at line 68 of file panel_grid_settings_base.h.
Referenced by PANEL_GRID_SETTINGS(), PANEL_GRID_SETTINGS_BASE::PANEL_GRID_SETTINGS_BASE(), TransferDataFromWindow(), and TransferDataToWindow().
|
protectedinherited |
Definition at line 66 of file panel_grid_settings_base.h.
Referenced by PANEL_GRID_SETTINGS(), PANEL_GRID_SETTINGS_BASE::PANEL_GRID_SETTINGS_BASE(), TransferDataFromWindow(), and TransferDataToWindow().
|
protectedinherited |
Definition at line 64 of file panel_grid_settings_base.h.
Referenced by PANEL_GRID_SETTINGS(), PANEL_GRID_SETTINGS_BASE::PANEL_GRID_SETTINGS_BASE(), TransferDataFromWindow(), and TransferDataToWindow().
|
protectedinherited |
Definition at line 46 of file panel_grid_settings_base.h.
Referenced by OnAddGrid(), onEditGrid(), OnMoveGridDown(), OnMoveGridUp(), OnRemoveGrid(), OnUpdateEditGrid(), OnUpdateMoveDown(), OnUpdateMoveUp(), PANEL_GRID_SETTINGS(), PANEL_GRID_SETTINGS_BASE::PANEL_GRID_SETTINGS_BASE(), RebuildGridSizes(), TransferDataFromWindow(), TransferDataToWindow(), and PANEL_GRID_SETTINGS_BASE::~PANEL_GRID_SETTINGS_BASE().
|
protectedinherited |
Definition at line 48 of file panel_grid_settings_base.h.
Referenced by PANEL_GRID_SETTINGS(), PANEL_GRID_SETTINGS_BASE::PANEL_GRID_SETTINGS_BASE(), and PANEL_GRID_SETTINGS_BASE::~PANEL_GRID_SETTINGS_BASE().
|
private |
Definition at line 67 of file panel_grid_settings.h.
Referenced by OnAddGrid(), and onEditGrid().
|
private |
Definition at line 66 of file panel_grid_settings.h.
Referenced by PANEL_GRID_SETTINGS().
|
protectedinherited |
Definition at line 55 of file panel_grid_settings_base.h.
Referenced by PANEL_GRID_SETTINGS_BASE::PANEL_GRID_SETTINGS_BASE(), RebuildGridSizes(), TransferDataFromWindow(), and TransferDataToWindow().
|
protectedinherited |
Definition at line 56 of file panel_grid_settings_base.h.
Referenced by PANEL_GRID_SETTINGS(), and PANEL_GRID_SETTINGS_BASE::PANEL_GRID_SETTINGS_BASE().
|
protectedinherited |
Definition at line 58 of file panel_grid_settings_base.h.
Referenced by PANEL_GRID_SETTINGS_BASE::PANEL_GRID_SETTINGS_BASE(), RebuildGridSizes(), TransferDataFromWindow(), and TransferDataToWindow().
|
protectedinherited |
Definition at line 59 of file panel_grid_settings_base.h.
Referenced by PANEL_GRID_SETTINGS(), and PANEL_GRID_SETTINGS_BASE::PANEL_GRID_SETTINGS_BASE().
|
protectedinherited |
Definition at line 63 of file panel_grid_settings_base.h.
Referenced by PANEL_GRID_SETTINGS(), PANEL_GRID_SETTINGS_BASE::PANEL_GRID_SETTINGS_BASE(), RebuildGridSizes(), TransferDataFromWindow(), and TransferDataToWindow().
|
protectedinherited |
Definition at line 71 of file panel_grid_settings_base.h.
Referenced by PANEL_GRID_SETTINGS(), PANEL_GRID_SETTINGS_BASE::PANEL_GRID_SETTINGS_BASE(), RebuildGridSizes(), TransferDataFromWindow(), and TransferDataToWindow().
|
protectedinherited |
Definition at line 69 of file panel_grid_settings_base.h.
Referenced by PANEL_GRID_SETTINGS(), PANEL_GRID_SETTINGS_BASE::PANEL_GRID_SETTINGS_BASE(), RebuildGridSizes(), TransferDataFromWindow(), and TransferDataToWindow().
|
protectedinherited |
Definition at line 67 of file panel_grid_settings_base.h.
Referenced by PANEL_GRID_SETTINGS(), PANEL_GRID_SETTINGS_BASE::PANEL_GRID_SETTINGS_BASE(), RebuildGridSizes(), TransferDataFromWindow(), and TransferDataToWindow().
|
protectedinherited |
Definition at line 65 of file panel_grid_settings_base.h.
Referenced by PANEL_GRID_SETTINGS(), PANEL_GRID_SETTINGS_BASE::PANEL_GRID_SETTINGS_BASE(), RebuildGridSizes(), TransferDataFromWindow(), and TransferDataToWindow().
|
private |
Definition at line 69 of file panel_grid_settings.h.
Referenced by OnAddGrid(), onEditGrid(), OnMoveGridDown(), OnMoveGridUp(), OnRemoveGrid(), OnUpdateMoveDown(), OnUpdateMoveUp(), OnUpdateRemove(), RebuildGridSizes(), ResetPanel(), TransferDataFromWindow(), and TransferDataToWindow().
|
protectedinherited |
Definition at line 45 of file panel_grid_settings_base.h.
Referenced by PANEL_GRID_SETTINGS_BASE::PANEL_GRID_SETTINGS_BASE().
|
protectedinherited |
Definition at line 50 of file panel_grid_settings_base.h.
Referenced by PANEL_GRID_SETTINGS(), PANEL_GRID_SETTINGS_BASE::PANEL_GRID_SETTINGS_BASE(), and PANEL_GRID_SETTINGS_BASE::~PANEL_GRID_SETTINGS_BASE().
|
protectedinherited |
Definition at line 49 of file panel_grid_settings_base.h.
Referenced by PANEL_GRID_SETTINGS(), PANEL_GRID_SETTINGS_BASE::PANEL_GRID_SETTINGS_BASE(), and PANEL_GRID_SETTINGS_BASE::~PANEL_GRID_SETTINGS_BASE().
|
protectedinherited |
Definition at line 60 of file panel_grid_settings_base.h.
Referenced by PANEL_GRID_SETTINGS(), and PANEL_GRID_SETTINGS_BASE::PANEL_GRID_SETTINGS_BASE().
|
protectedinherited |
Definition at line 51 of file panel_grid_settings_base.h.
Referenced by PANEL_GRID_SETTINGS(), PANEL_GRID_SETTINGS_BASE::PANEL_GRID_SETTINGS_BASE(), and PANEL_GRID_SETTINGS_BASE::~PANEL_GRID_SETTINGS_BASE().
|
protectedinherited |
Definition at line 53 of file panel_grid_settings_base.h.
Referenced by PANEL_GRID_SETTINGS_BASE::PANEL_GRID_SETTINGS_BASE().
|
protectedinherited |
Definition at line 61 of file panel_grid_settings_base.h.
Referenced by PANEL_GRID_SETTINGS(), and PANEL_GRID_SETTINGS_BASE::PANEL_GRID_SETTINGS_BASE().
|
protectedinherited |
Definition at line 52 of file panel_grid_settings_base.h.
Referenced by PANEL_GRID_SETTINGS_BASE::PANEL_GRID_SETTINGS_BASE().
|
protectedinherited |
Definition at line 54 of file panel_grid_settings_base.h.
Referenced by PANEL_GRID_SETTINGS_BASE::PANEL_GRID_SETTINGS_BASE().
|
protectedinherited |
Definition at line 57 of file panel_grid_settings_base.h.
Referenced by PANEL_GRID_SETTINGS_BASE::PANEL_GRID_SETTINGS_BASE().
|
private |
Definition at line 64 of file panel_grid_settings.h.
Referenced by OnAddGrid(), onEditGrid(), and RebuildGridSizes().