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

#include <panel_pcbnew_display_origin.h>

Inheritance diagram for PANEL_PCBNEW_DISPLAY_ORIGIN:
PANEL_PCBNEW_DISPLAY_ORIGIN_BASE RESETTABLE_PANEL

Public Member Functions

 PANEL_PCBNEW_DISPLAY_ORIGIN (wxWindow *aParent, APP_SETTINGS_BASE *aCfg, FRAME_T aFrameType)
 
bool TransferDataToWindow () override
 
bool TransferDataFromWindow () 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

wxBoxSizer * m_displayOrigin
 
wxStaticText * displayOriginLabel
 
wxStaticLine * m_staticline1
 
wxRadioButton * m_pageOrigin
 
wxRadioButton * m_drillPlaceOrigin
 
wxRadioButton * m_gridOrigin
 
wxStaticText * xAxisLabel
 
wxStaticLine * m_staticline2
 
wxRadioButton * m_xIncreasesRight
 
wxRadioButton * m_xIncreasesLeft
 
wxStaticText * yAxisLabel
 
wxStaticLine * m_staticline3
 
wxRadioButton * m_yIncreasesUp
 
wxRadioButton * m_yIncreasesDown
 

Private Member Functions

void loadSettings (APP_SETTINGS_BASE *aCfg)
 

Private Attributes

APP_SETTINGS_BASEm_cfg
 
FRAME_T m_frameType
 

Detailed Description

Definition at line 32 of file panel_pcbnew_display_origin.h.

Constructor & Destructor Documentation

◆ PANEL_PCBNEW_DISPLAY_ORIGIN()

PANEL_PCBNEW_DISPLAY_ORIGIN::PANEL_PCBNEW_DISPLAY_ORIGIN ( wxWindow *  aParent,
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().

◆ loadSettings()

◆ ResetPanel()

void PANEL_PCBNEW_DISPLAY_ORIGIN::ResetPanel ( )
overridevirtual

Reset the contents of this panel.

Implements RESETTABLE_PANEL.

Definition at line 118 of file panel_pcbnew_display_origin.cpp.

References FRAME_FOOTPRINT_EDITOR, JSON_SETTINGS::Load(), loadSettings(), and m_frameType.

◆ TransferDataFromWindow()

◆ TransferDataToWindow()

bool PANEL_PCBNEW_DISPLAY_ORIGIN::TransferDataToWindow ( )
override

Definition at line 82 of file panel_pcbnew_display_origin.cpp.

References loadSettings(), and m_cfg.

Member Data Documentation

◆ displayOriginLabel

wxStaticText* PANEL_PCBNEW_DISPLAY_ORIGIN_BASE::displayOriginLabel
protectedinherited

◆ m_cfg

APP_SETTINGS_BASE* PANEL_PCBNEW_DISPLAY_ORIGIN::m_cfg
private

Definition at line 46 of file panel_pcbnew_display_origin.h.

Referenced by TransferDataFromWindow(), and TransferDataToWindow().

◆ m_displayOrigin

wxBoxSizer* PANEL_PCBNEW_DISPLAY_ORIGIN_BASE::m_displayOrigin
protectedinherited

◆ m_drillPlaceOrigin

wxRadioButton* PANEL_PCBNEW_DISPLAY_ORIGIN_BASE::m_drillPlaceOrigin
protectedinherited

◆ m_frameType

FRAME_T PANEL_PCBNEW_DISPLAY_ORIGIN::m_frameType
private

◆ m_gridOrigin

wxRadioButton* PANEL_PCBNEW_DISPLAY_ORIGIN_BASE::m_gridOrigin
protectedinherited

◆ m_pageOrigin

wxRadioButton* PANEL_PCBNEW_DISPLAY_ORIGIN_BASE::m_pageOrigin
protectedinherited

◆ m_staticline1

wxStaticLine* PANEL_PCBNEW_DISPLAY_ORIGIN_BASE::m_staticline1
protectedinherited

◆ m_staticline2

wxStaticLine* PANEL_PCBNEW_DISPLAY_ORIGIN_BASE::m_staticline2
protectedinherited

◆ m_staticline3

wxStaticLine* PANEL_PCBNEW_DISPLAY_ORIGIN_BASE::m_staticline3
protectedinherited

◆ m_xIncreasesLeft

wxRadioButton* PANEL_PCBNEW_DISPLAY_ORIGIN_BASE::m_xIncreasesLeft
protectedinherited

◆ m_xIncreasesRight

wxRadioButton* PANEL_PCBNEW_DISPLAY_ORIGIN_BASE::m_xIncreasesRight
protectedinherited

◆ m_yIncreasesDown

wxRadioButton* PANEL_PCBNEW_DISPLAY_ORIGIN_BASE::m_yIncreasesDown
protectedinherited

◆ m_yIncreasesUp

wxRadioButton* PANEL_PCBNEW_DISPLAY_ORIGIN_BASE::m_yIncreasesUp
protectedinherited

◆ xAxisLabel

wxStaticText* PANEL_PCBNEW_DISPLAY_ORIGIN_BASE::xAxisLabel
protectedinherited

◆ yAxisLabel

wxStaticText* PANEL_PCBNEW_DISPLAY_ORIGIN_BASE::yAxisLabel
protectedinherited

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