KiCad PCB EDA Suite
Loading...
Searching...
No Matches
PANEL_GRID_SETTINGS Class Reference

#include <panel_grid_settings.h>

Inheritance diagram for PANEL_GRID_SETTINGS:
PANEL_GRID_SETTINGS_BASE RESETTABLE_PANEL

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_BUTTONm_addGridButton
 
STD_BITMAP_BUTTONm_editGridButton
 
STD_BITMAP_BUTTONm_moveUpButton
 
STD_BITMAP_BUTTONm_moveDownButton
 
STD_BITMAP_BUTTONm_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_PROVIDERm_unitsProvider
 
APP_SETTINGS_BASEm_cfg
 
FRAME_T m_frameType
 
wxWindow * m_eventSource
 
std::vector< GRIDm_grids
 

Detailed Description

Definition at line 35 of file panel_grid_settings.h.

Constructor & Destructor Documentation

◆ PANEL_GRID_SETTINGS()

PANEL_GRID_SETTINGS::PANEL_GRID_SETTINGS ( wxWindow *  aParent,
UNITS_PROVIDER aUnitsProvider,
wxWindow *  aEventSource,
APP_SETTINGS_BASE aCfg,
FRAME_T  aFrameType 
)

Member Function Documentation

◆ GetHelpTextAtPoint()

wxString RESETTABLE_PANEL::GetHelpTextAtPoint ( const wxPoint &  aPt,
wxHelpEvent::Origin  aOrigin 
) const
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().

◆ GetResetTooltip()

virtual wxString RESETTABLE_PANEL::GetResetTooltip ( ) const
inlinevirtualinherited

Get the tooltip the reset button should display when showing this panel.

Returns
the tooltip

Reimplemented in PANEL_COLOR_SETTINGS, and PANEL_HOTKEYS_EDITOR.

Definition at line 64 of file resettable_panel.h.

References _.

Referenced by RESETTABLE_PANEL::GetHelpTextAtPoint().

◆ OnAddGrid()

void PANEL_GRID_SETTINGS::OnAddGrid ( wxCommandEvent &  event)
overrideprivatevirtual

◆ onEditGrid()

void PANEL_GRID_SETTINGS::onEditGrid ( )
private

◆ OnEditGrid()

void PANEL_GRID_SETTINGS::OnEditGrid ( wxCommandEvent &  event)
overrideprivatevirtual

Reimplemented from PANEL_GRID_SETTINGS_BASE.

Definition at line 276 of file panel_grid_settings.cpp.

References onEditGrid().

◆ OnMoveGridDown()

void PANEL_GRID_SETTINGS::OnMoveGridDown ( wxCommandEvent &  event)
overrideprivatevirtual

◆ OnMoveGridUp()

void PANEL_GRID_SETTINGS::OnMoveGridUp ( wxCommandEvent &  event)
overrideprivatevirtual

◆ OnRemoveGrid()

void PANEL_GRID_SETTINGS::OnRemoveGrid ( wxCommandEvent &  event)
overrideprivatevirtual

◆ OnUpdateEditGrid()

void PANEL_GRID_SETTINGS::OnUpdateEditGrid ( wxUpdateUIEvent &  event)
overrideprivatevirtual

Reimplemented from PANEL_GRID_SETTINGS_BASE.

Definition at line 366 of file panel_grid_settings.cpp.

References PANEL_GRID_SETTINGS_BASE::m_currentGridCtrl.

◆ OnUpdateMoveDown()

void PANEL_GRID_SETTINGS::OnUpdateMoveDown ( wxUpdateUIEvent &  event)
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.

◆ OnUpdateMoveUp()

void PANEL_GRID_SETTINGS::OnUpdateMoveUp ( wxUpdateUIEvent &  event)
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.

◆ OnUpdateRemove()

void PANEL_GRID_SETTINGS::OnUpdateRemove ( wxUpdateUIEvent &  event)
overrideprivatevirtual

Reimplemented from PANEL_GRID_SETTINGS_BASE.

Definition at line 393 of file panel_grid_settings.cpp.

References m_grids.

◆ RebuildGridSizes()

◆ ResetPanel()

void PANEL_GRID_SETTINGS::ResetPanel ( )
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().

◆ TransferDataFromWindow()

◆ TransferDataToWindow()

Member Data Documentation

◆ m_addGridButton

STD_BITMAP_BUTTON* PANEL_GRID_SETTINGS_BASE::m_addGridButton
protectedinherited

◆ m_cfg

APP_SETTINGS_BASE* PANEL_GRID_SETTINGS::m_cfg
private

Definition at line 65 of file panel_grid_settings.h.

Referenced by ResetPanel(), TransferDataFromWindow(), and TransferDataToWindow().

◆ m_checkGridOverrideConnected

wxCheckBox* PANEL_GRID_SETTINGS_BASE::m_checkGridOverrideConnected
protectedinherited

◆ m_checkGridOverrideGraphics

wxCheckBox* PANEL_GRID_SETTINGS_BASE::m_checkGridOverrideGraphics
protectedinherited

◆ m_checkGridOverrideText

wxCheckBox* PANEL_GRID_SETTINGS_BASE::m_checkGridOverrideText
protectedinherited

◆ m_checkGridOverrideVias

wxCheckBox* PANEL_GRID_SETTINGS_BASE::m_checkGridOverrideVias
protectedinherited

◆ m_checkGridOverrideWires

wxCheckBox* PANEL_GRID_SETTINGS_BASE::m_checkGridOverrideWires
protectedinherited

◆ m_currentGridCtrl

◆ m_editGridButton

STD_BITMAP_BUTTON* PANEL_GRID_SETTINGS_BASE::m_editGridButton
protectedinherited

◆ m_eventSource

wxWindow* PANEL_GRID_SETTINGS::m_eventSource
private

Definition at line 67 of file panel_grid_settings.h.

Referenced by OnAddGrid(), and onEditGrid().

◆ m_frameType

FRAME_T PANEL_GRID_SETTINGS::m_frameType
private

Definition at line 66 of file panel_grid_settings.h.

Referenced by PANEL_GRID_SETTINGS().

◆ m_grid1Ctrl

wxChoice* PANEL_GRID_SETTINGS_BASE::m_grid1Ctrl
protectedinherited

◆ m_grid1HotKey

wxStaticText* PANEL_GRID_SETTINGS_BASE::m_grid1HotKey
protectedinherited

◆ m_grid2Ctrl

wxChoice* PANEL_GRID_SETTINGS_BASE::m_grid2Ctrl
protectedinherited

◆ m_grid2HotKey

wxStaticText* PANEL_GRID_SETTINGS_BASE::m_grid2HotKey
protectedinherited

◆ m_gridOverrideConnectedChoice

wxChoice* PANEL_GRID_SETTINGS_BASE::m_gridOverrideConnectedChoice
protectedinherited

◆ m_gridOverrideGraphicsChoice

wxChoice* PANEL_GRID_SETTINGS_BASE::m_gridOverrideGraphicsChoice
protectedinherited

◆ m_gridOverrideTextChoice

wxChoice* PANEL_GRID_SETTINGS_BASE::m_gridOverrideTextChoice
protectedinherited

◆ m_gridOverrideViasChoice

wxChoice* PANEL_GRID_SETTINGS_BASE::m_gridOverrideViasChoice
protectedinherited

◆ m_gridOverrideWiresChoice

wxChoice* PANEL_GRID_SETTINGS_BASE::m_gridOverrideWiresChoice
protectedinherited

◆ m_grids

◆ m_gridsLabel

wxStaticText* PANEL_GRID_SETTINGS_BASE::m_gridsLabel
protectedinherited

◆ m_moveDownButton

STD_BITMAP_BUTTON* PANEL_GRID_SETTINGS_BASE::m_moveDownButton
protectedinherited

◆ m_moveUpButton

STD_BITMAP_BUTTON* PANEL_GRID_SETTINGS_BASE::m_moveUpButton
protectedinherited

◆ m_overridesLabel

wxStaticText* PANEL_GRID_SETTINGS_BASE::m_overridesLabel
protectedinherited

◆ m_removeGridButton

STD_BITMAP_BUTTON* PANEL_GRID_SETTINGS_BASE::m_removeGridButton
protectedinherited

◆ m_staticline2

wxStaticLine* PANEL_GRID_SETTINGS_BASE::m_staticline2
protectedinherited

◆ m_staticline3

wxStaticLine* PANEL_GRID_SETTINGS_BASE::m_staticline3
protectedinherited

◆ m_staticText21

wxStaticText* PANEL_GRID_SETTINGS_BASE::m_staticText21
protectedinherited

◆ m_staticTextGrid1

wxStaticText* PANEL_GRID_SETTINGS_BASE::m_staticTextGrid1
protectedinherited

◆ m_staticTextGrid2

wxStaticText* PANEL_GRID_SETTINGS_BASE::m_staticTextGrid2
protectedinherited

◆ m_unitsProvider

UNITS_PROVIDER* PANEL_GRID_SETTINGS::m_unitsProvider
private

Definition at line 64 of file panel_grid_settings.h.

Referenced by OnAddGrid(), onEditGrid(), and RebuildGridSizes().


The documentation for this class was generated from the following files: