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

#include <dialog_autosave_recovery.h>

Inheritance diagram for DIALOG_AUTOSAVE_RECOVERY:
DIALOG_AUTOSAVE_RECOVERY_BASE

Public Member Functions

 DIALOG_AUTOSAVE_RECOVERY (wxWindow *aParent, const std::vector< std::pair< wxString, wxString > > &aStale)
 
AUTOSAVE_RECOVERY_CHOICE GetChoice () const
 
std::vector< std::pair< wxString, wxString > > GetSelectedStale () const
 

Protected Member Functions

void OnRestore (wxCommandEvent &aEvent) override
 
void OnKeepCurrent (wxCommandEvent &aEvent) override
 
void OnKeepBoth (wxCommandEvent &aEvent) override
 
void OnCancel (wxCommandEvent &aEvent) override
 
void onItemCheckChanged (wxListEvent &aEvent)
 
void updateActionButtons ()
 

Protected Attributes

wxBoxSizer * bMainSizer
 
wxStaticText * m_explanation
 
wxListCtrl * m_fileList
 
wxButton * m_btnRestore
 
wxButton * m_btnKeepCurrent
 
wxButton * m_btnKeepBoth
 
wxButton * m_btnCancel
 

Private Attributes

AUTOSAVE_RECOVERY_CHOICE m_choice
 
std::vector< std::pair< wxString, wxString > > m_stale
 

Detailed Description

Definition at line 44 of file dialog_autosave_recovery.h.

Constructor & Destructor Documentation

◆ DIALOG_AUTOSAVE_RECOVERY()

DIALOG_AUTOSAVE_RECOVERY::DIALOG_AUTOSAVE_RECOVERY ( wxWindow * aParent,
const std::vector< std::pair< wxString, wxString > > & aStale )

Member Function Documentation

◆ GetChoice()

AUTOSAVE_RECOVERY_CHOICE DIALOG_AUTOSAVE_RECOVERY::GetChoice ( ) const
inline

Definition at line 49 of file dialog_autosave_recovery.h.

References m_choice.

Referenced by EDA_BASE_FRAME::CheckForAutosaveFiles().

◆ GetSelectedStale()

std::vector< std::pair< wxString, wxString > > DIALOG_AUTOSAVE_RECOVERY::GetSelectedStale ( ) const

◆ OnCancel()

void DIALOG_AUTOSAVE_RECOVERY::OnCancel ( wxCommandEvent & aEvent)
overrideprotectedvirtual

Reimplemented from DIALOG_AUTOSAVE_RECOVERY_BASE.

Definition at line 139 of file dialog_autosave_recovery.cpp.

References CANCEL, and m_choice.

◆ onItemCheckChanged()

void DIALOG_AUTOSAVE_RECOVERY::onItemCheckChanged ( wxListEvent & aEvent)
protected

Definition at line 92 of file dialog_autosave_recovery.cpp.

References updateActionButtons().

Referenced by DIALOG_AUTOSAVE_RECOVERY().

◆ OnKeepBoth()

void DIALOG_AUTOSAVE_RECOVERY::OnKeepBoth ( wxCommandEvent & aEvent)
overrideprotectedvirtual

Reimplemented from DIALOG_AUTOSAVE_RECOVERY_BASE.

Definition at line 132 of file dialog_autosave_recovery.cpp.

References KEEP_BOTH, and m_choice.

◆ OnKeepCurrent()

void DIALOG_AUTOSAVE_RECOVERY::OnKeepCurrent ( wxCommandEvent & aEvent)
overrideprotectedvirtual

Reimplemented from DIALOG_AUTOSAVE_RECOVERY_BASE.

Definition at line 125 of file dialog_autosave_recovery.cpp.

References KEEP_CURRENT, and m_choice.

◆ OnRestore()

void DIALOG_AUTOSAVE_RECOVERY::OnRestore ( wxCommandEvent & aEvent)
overrideprotectedvirtual

Reimplemented from DIALOG_AUTOSAVE_RECOVERY_BASE.

Definition at line 118 of file dialog_autosave_recovery.cpp.

References m_choice, and RESTORE.

◆ updateActionButtons()

Member Data Documentation

◆ bMainSizer

wxBoxSizer* DIALOG_AUTOSAVE_RECOVERY_BASE::bMainSizer
protectedinherited

Definition at line 37 of file dialog_autosave_recovery_base.h.

Referenced by DIALOG_AUTOSAVE_RECOVERY_BASE().

◆ m_btnCancel

wxButton* DIALOG_AUTOSAVE_RECOVERY_BASE::m_btnCancel
protectedinherited

◆ m_btnKeepBoth

wxButton* DIALOG_AUTOSAVE_RECOVERY_BASE::m_btnKeepBoth
protectedinherited

◆ m_btnKeepCurrent

wxButton* DIALOG_AUTOSAVE_RECOVERY_BASE::m_btnKeepCurrent
protectedinherited

◆ m_btnRestore

wxButton* DIALOG_AUTOSAVE_RECOVERY_BASE::m_btnRestore
protectedinherited

◆ m_choice

AUTOSAVE_RECOVERY_CHOICE DIALOG_AUTOSAVE_RECOVERY::m_choice
private

◆ m_explanation

wxStaticText* DIALOG_AUTOSAVE_RECOVERY_BASE::m_explanation
protectedinherited

Definition at line 38 of file dialog_autosave_recovery_base.h.

Referenced by DIALOG_AUTOSAVE_RECOVERY_BASE().

◆ m_fileList

◆ m_stale

std::vector<std::pair<wxString, wxString> > DIALOG_AUTOSAVE_RECOVERY::m_stale
private

Definition at line 65 of file dialog_autosave_recovery.h.

Referenced by DIALOG_AUTOSAVE_RECOVERY(), and GetSelectedStale().


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