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)
 
bool TransferDataToWindow () override
 
bool TransferDataFromWindow () override
 
void ResetPanel () override
 Reset the contents of this panel. More...
 
virtual wxString GetResetTooltip () const
 Get the tooltip the reset button should display when showing this panel. More...
 
wxString GetHelpTextAtPoint (const wxPoint &aPt, wxHelpEvent::Origin aOrigin) const override
 Overridden to supply the reset button tooltip when queried with { -INT_MAX, INT_MAX }. More...
 

Protected Attributes

wxRadioBox * m_DisplayOrigin
 
wxRadioBox * m_XAxisDirection
 
wxRadioBox * m_YAxisDirection
 

Private Member Functions

void loadPCBSettings (PCBNEW_SETTINGS *aCfg)
 

Detailed Description

Definition at line 31 of file panel_pcbnew_display_origin.h.

Constructor & Destructor Documentation

◆ PANEL_PCBNEW_DISPLAY_ORIGIN()

PANEL_PCBNEW_DISPLAY_ORIGIN::PANEL_PCBNEW_DISPLAY_ORIGIN ( wxWindow *  aParent)

Definition at line 31 of file panel_pcbnew_display_origin.cpp.

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().

◆ loadPCBSettings()

◆ ResetPanel()

void PANEL_PCBNEW_DISPLAY_ORIGIN::ResetPanel ( )
overridevirtual

Reset the contents of this panel.

Implements RESETTABLE_PANEL.

Definition at line 82 of file panel_pcbnew_display_origin.cpp.

References JSON_SETTINGS::Load(), and loadPCBSettings().

◆ TransferDataFromWindow()

◆ TransferDataToWindow()

bool PANEL_PCBNEW_DISPLAY_ORIGIN::TransferDataToWindow ( )
override

Definition at line 54 of file panel_pcbnew_display_origin.cpp.

References loadPCBSettings(), and Pgm().

Member Data Documentation

◆ m_DisplayOrigin

wxRadioBox* PANEL_PCBNEW_DISPLAY_ORIGIN_BASE::m_DisplayOrigin
protectedinherited

◆ m_XAxisDirection

wxRadioBox* PANEL_PCBNEW_DISPLAY_ORIGIN_BASE::m_XAxisDirection
protectedinherited

◆ m_YAxisDirection

wxRadioBox* PANEL_PCBNEW_DISPLAY_ORIGIN_BASE::m_YAxisDirection
protectedinherited

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