KiCad PCB EDA Suite
RESETTABLE_PANEL Class Referenceabstract

A wxPanel that is designed to be reset in a standard manner. More...

#include <resettable_panel.h>

Inheritance diagram for RESETTABLE_PANEL:
PANEL_3D_RAYTRACING_OPTIONS_BASE PANEL_COLOR_SETTINGS_BASE PANEL_COMMON_SETTINGS_BASE PANEL_GERBVIEW_EXCELLON_SETTINGS_BASE PANEL_HOTKEYS_EDITOR PANEL_MOUSE_SETTINGS_BASE PANEL_SETUP_PINMAP_BASE PANEL_3D_RAYTRACING_OPTIONS PANEL_COLOR_SETTINGS PANEL_COMMON_SETTINGS PANEL_GERBVIEW_EXCELLON_SETTINGS PANEL_MOUSE_SETTINGS PANEL_SETUP_PINMAP PANEL_EESCHEMA_COLOR_SETTINGS PANEL_FP_EDITOR_COLOR_SETTINGS PANEL_PCBNEW_COLOR_SETTINGS

Public Member Functions

 RESETTABLE_PANEL (wxWindow *aParent, wxWindowID aId=wxID_ANY, const wxPoint &aPos=wxDefaultPosition, const wxSize &aSize=wxSize(-1,-1), long aStyle=wxTAB_TRAVERSAL, const wxString &aName=wxEmptyString)
 
virtual void ResetPanel ()=0
 Reset the contents of this panel. More...
 
virtual wxString GetResetTooltip ()
 Get the tooltip the reset button should display when showing this panel. More...
 

Detailed Description

A wxPanel that is designed to be reset in a standard manner.

Definition at line 30 of file resettable_panel.h.

Constructor & Destructor Documentation

◆ RESETTABLE_PANEL()

RESETTABLE_PANEL::RESETTABLE_PANEL ( wxWindow *  aParent,
wxWindowID  aId = wxID_ANY,
const wxPoint &  aPos = wxDefaultPosition,
const wxSize &  aSize = wxSize( -1,-1 ),
long  aStyle = wxTAB_TRAVERSAL,
const wxString &  aName = wxEmptyString 
)
inline

Definition at line 33 of file resettable_panel.h.

38  : wxPanel( aParent, aId, aPos, aSize, aStyle, aName )
39  {
40  }

Member Function Documentation

◆ GetResetTooltip()

virtual wxString RESETTABLE_PANEL::GetResetTooltip ( )
inlinevirtual

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

Returns
the tooltip

Reimplemented in PANEL_HOTKEYS_EDITOR, and PANEL_COLOR_SETTINGS.

Definition at line 52 of file resettable_panel.h.

53  {
54  return _( "Reset all settings on this page to their default" );
55  }
#define _(s)

References _.

◆ ResetPanel()


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