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

#include <panel_maintenance.h>

Inheritance diagram for PANEL_MAINTENANCE:
PANEL_MAINTENANCE_BASE RESETTABLE_PANEL

Public Member Functions

 PANEL_MAINTENANCE (wxWindow *aParent, EDA_BASE_FRAME *aFrame)
 
 ~PANEL_MAINTENANCE ()=default
 
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 Member Functions

bool TransferDataFromWindow () override
 
bool TransferDataToWindow () override
 
void applySettingsToPanel (COMMON_SETTINGS &aSettings)
 
void doClearDontShowAgain ()
 
void doClearDialogState ()
 
void onClearFileHistory (wxCommandEvent &event) override
 
void onClearDontShowAgain (wxCommandEvent &event) override
 
void onClearDialogState (wxCommandEvent &event) override
 
void onResetAll (wxCommandEvent &event) override
 

Protected Attributes

EDA_BASE_FRAMEm_frame
 
wxStaticText * m_staticTextClear3DCache
 
wxSpinCtrl * m_Clear3DCacheFilesOlder
 
wxStaticText * m_staticTextDays
 
wxButton * m_clearFileHistory
 

Private Attributes

wxButton * m_clearDontShowAgain
 
wxButton * m_clearDialogState
 
wxButton * m_resetAll
 

Detailed Description

Definition at line 33 of file panel_maintenance.h.

Constructor & Destructor Documentation

◆ PANEL_MAINTENANCE()

PANEL_MAINTENANCE::PANEL_MAINTENANCE ( wxWindow * aParent,
EDA_BASE_FRAME * aFrame )

◆ ~PANEL_MAINTENANCE()

PANEL_MAINTENANCE::~PANEL_MAINTENANCE ( )
default

Member Function Documentation

◆ applySettingsToPanel()

void PANEL_MAINTENANCE::applySettingsToPanel ( COMMON_SETTINGS & aSettings)
protected

◆ doClearDialogState()

void PANEL_MAINTENANCE::doClearDialogState ( )
protected

Definition at line 115 of file panel_maintenance.cpp.

References doClearDontShowAgain(), GetSettingsManager(), and Pgm().

Referenced by onClearDialogState(), and onResetAll().

◆ doClearDontShowAgain()

void PANEL_MAINTENANCE::doClearDontShowAgain ( )
protected

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

◆ onClearDialogState()

void PANEL_MAINTENANCE::onClearDialogState ( wxCommandEvent & event)
overrideprotectedvirtual

Reimplemented from PANEL_MAINTENANCE_BASE.

Definition at line 127 of file panel_maintenance.cpp.

References _, doClearDialogState(), and PAGED_DIALOG::GetDialog().

◆ onClearDontShowAgain()

void PANEL_MAINTENANCE::onClearDontShowAgain ( wxCommandEvent & event)
overrideprotectedvirtual

Reimplemented from PANEL_MAINTENANCE_BASE.

Definition at line 106 of file panel_maintenance.cpp.

References _, doClearDontShowAgain(), and PAGED_DIALOG::GetDialog().

◆ onClearFileHistory()

void PANEL_MAINTENANCE::onClearFileHistory ( wxCommandEvent & event)
overrideprotectedvirtual

◆ onResetAll()

void PANEL_MAINTENANCE::onResetAll ( wxCommandEvent & event)
overrideprotectedvirtual

◆ ResetPanel()

void PANEL_MAINTENANCE::ResetPanel ( )
overridevirtual

Reset the contents of this panel.

Implements RESETTABLE_PANEL.

Definition at line 64 of file panel_maintenance.cpp.

References applySettingsToPanel(), and JSON_SETTINGS::ResetToDefaults().

◆ TransferDataFromWindow()

◆ TransferDataToWindow()

bool PANEL_MAINTENANCE::TransferDataToWindow ( )
overrideprotected

Member Data Documentation

◆ m_Clear3DCacheFilesOlder

wxSpinCtrl* PANEL_MAINTENANCE_BASE::m_Clear3DCacheFilesOlder
protectedinherited

◆ m_clearDialogState

wxButton* PANEL_MAINTENANCE_BASE::m_clearDialogState
privateinherited

Definition at line 37 of file panel_maintenance_base.h.

Referenced by PANEL_MAINTENANCE_BASE(), and ~PANEL_MAINTENANCE_BASE().

◆ m_clearDontShowAgain

wxButton* PANEL_MAINTENANCE_BASE::m_clearDontShowAgain
privateinherited

Definition at line 36 of file panel_maintenance_base.h.

Referenced by PANEL_MAINTENANCE_BASE(), and ~PANEL_MAINTENANCE_BASE().

◆ m_clearFileHistory

wxButton* PANEL_MAINTENANCE_BASE::m_clearFileHistory
protectedinherited

Definition at line 44 of file panel_maintenance_base.h.

Referenced by PANEL_MAINTENANCE_BASE(), and ~PANEL_MAINTENANCE_BASE().

◆ m_frame

EDA_BASE_FRAME* PANEL_MAINTENANCE::m_frame
protected

Definition at line 56 of file panel_maintenance.h.

Referenced by onClearFileHistory(), onResetAll(), and PANEL_MAINTENANCE().

◆ m_resetAll

wxButton* PANEL_MAINTENANCE_BASE::m_resetAll
privateinherited

Definition at line 38 of file panel_maintenance_base.h.

Referenced by PANEL_MAINTENANCE_BASE(), and ~PANEL_MAINTENANCE_BASE().

◆ m_staticTextClear3DCache

wxStaticText* PANEL_MAINTENANCE_BASE::m_staticTextClear3DCache
protectedinherited

Definition at line 41 of file panel_maintenance_base.h.

Referenced by PANEL_MAINTENANCE_BASE().

◆ m_staticTextDays

wxStaticText* PANEL_MAINTENANCE_BASE::m_staticTextDays
protectedinherited

Definition at line 43 of file panel_maintenance_base.h.

Referenced by PANEL_MAINTENANCE_BASE().


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