KiCad PCB EDA Suite
SYMBOL_FILEDLG_SAVE_AS Class Reference

#include <symbol_filedlg_save_as.h>

Inheritance diagram for SYMBOL_FILEDLG_SAVE_AS:

Public Member Functions

 SYMBOL_FILEDLG_SAVE_AS (SYMBOL_SAVEAS_TYPE aOption)
 
virtual void AddCustomControls (wxFileDialogCustomize &customizer) override
 
virtual void TransferDataFromCustomControls () override
 
SYMBOL_SAVEAS_TYPE GetOption () const
 

Private Member Functions

 wxDECLARE_NO_COPY_CLASS (SYMBOL_FILEDLG_SAVE_AS)
 

Private Attributes

SYMBOL_SAVEAS_TYPE m_option
 
wxFileDialogRadioButton * m_simpleSaveAs
 
wxFileDialogRadioButton * m_replaceTableEntry
 
wxFileDialogRadioButton * m_addGlobalTableEntry
 
wxFileDialogRadioButton * m_addProjectTableEntry
 

Detailed Description

Definition at line 26 of file symbol_filedlg_save_as.h.

Constructor & Destructor Documentation

◆ SYMBOL_FILEDLG_SAVE_AS()

SYMBOL_FILEDLG_SAVE_AS::SYMBOL_FILEDLG_SAVE_AS ( SYMBOL_SAVEAS_TYPE  aOption)
inline

Definition at line 29 of file symbol_filedlg_save_as.h.

29: m_option( aOption ){};

Member Function Documentation

◆ AddCustomControls()

virtual void SYMBOL_FILEDLG_SAVE_AS::AddCustomControls ( wxFileDialogCustomize &  customizer)
inlineoverridevirtual

Definition at line 31 of file symbol_filedlg_save_as.h.

32 {
33 m_simpleSaveAs = customizer.AddRadioButton( _( "Do not update library tables" ) );
35 customizer.AddRadioButton( _( "Update existing library table entry" ) );
37 customizer.AddRadioButton( _( "Add new global library table entry" ) );
39 customizer.AddRadioButton( _( "Add new project library table entry" ) );
40
41 // Note, due to windows api, wx does not actually support calling SetValue( false ) (it asserts)
43 m_simpleSaveAs->SetValue( true );
44
46 m_replaceTableEntry->SetValue( true );
47
49 m_addGlobalTableEntry->SetValue( true );
50
52 m_addProjectTableEntry->SetValue( true );
53 }
wxFileDialogRadioButton * m_addGlobalTableEntry
wxFileDialogRadioButton * m_simpleSaveAs
wxFileDialogRadioButton * m_replaceTableEntry
wxFileDialogRadioButton * m_addProjectTableEntry
#define _(s)

References _, ADD_GLOBAL_TABLE_ENTRY, ADD_PROJECT_TABLE_ENTRY, m_addGlobalTableEntry, m_addProjectTableEntry, m_option, m_replaceTableEntry, m_simpleSaveAs, NORMAL_SAVE_AS, and REPLACE_TABLE_ENTRY.

◆ GetOption()

SYMBOL_SAVEAS_TYPE SYMBOL_FILEDLG_SAVE_AS::GetOption ( ) const
inline

Definition at line 67 of file symbol_filedlg_save_as.h.

67{ return m_option; }

References m_option.

Referenced by SYMBOL_EDIT_FRAME::saveLibrary().

◆ TransferDataFromCustomControls()

◆ wxDECLARE_NO_COPY_CLASS()

SYMBOL_FILEDLG_SAVE_AS::wxDECLARE_NO_COPY_CLASS ( SYMBOL_FILEDLG_SAVE_AS  )
private

Member Data Documentation

◆ m_addGlobalTableEntry

wxFileDialogRadioButton* SYMBOL_FILEDLG_SAVE_AS::m_addGlobalTableEntry
private

Definition at line 74 of file symbol_filedlg_save_as.h.

Referenced by AddCustomControls(), and TransferDataFromCustomControls().

◆ m_addProjectTableEntry

wxFileDialogRadioButton* SYMBOL_FILEDLG_SAVE_AS::m_addProjectTableEntry
private

Definition at line 75 of file symbol_filedlg_save_as.h.

Referenced by AddCustomControls(), and TransferDataFromCustomControls().

◆ m_option

SYMBOL_SAVEAS_TYPE SYMBOL_FILEDLG_SAVE_AS::m_option
private

◆ m_replaceTableEntry

wxFileDialogRadioButton* SYMBOL_FILEDLG_SAVE_AS::m_replaceTableEntry
private

Definition at line 73 of file symbol_filedlg_save_as.h.

Referenced by AddCustomControls(), and TransferDataFromCustomControls().

◆ m_simpleSaveAs

wxFileDialogRadioButton* SYMBOL_FILEDLG_SAVE_AS::m_simpleSaveAs
private

Definition at line 72 of file symbol_filedlg_save_as.h.

Referenced by AddCustomControls().


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