20#ifndef SYMBOL_FILEDLG_SAVE_AS_
21#define SYMBOL_FILEDLG_SAVE_AS_
24#include <wx/filedlgcustomize.h>
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" ) );
42 if(
m_option == SYMBOL_SAVEAS_TYPE::NORMAL_SAVE_AS )
45 if(
m_option == SYMBOL_SAVEAS_TYPE::REPLACE_TABLE_ENTRY )
48 if(
m_option == SYMBOL_SAVEAS_TYPE::ADD_GLOBAL_TABLE_ENTRY )
51 if(
m_option == SYMBOL_SAVEAS_TYPE::ADD_PROJECT_TABLE_ENTRY )
58 m_option = SYMBOL_SAVEAS_TYPE::REPLACE_TABLE_ENTRY;
60 m_option = SYMBOL_SAVEAS_TYPE::ADD_GLOBAL_TABLE_ENTRY;
62 m_option = SYMBOL_SAVEAS_TYPE::ADD_PROJECT_TABLE_ENTRY;
64 m_option = SYMBOL_SAVEAS_TYPE::NORMAL_SAVE_AS;
SYMBOL_SAVEAS_TYPE m_option
virtual void AddCustomControls(wxFileDialogCustomize &customizer) override
wxDECLARE_NO_COPY_CLASS(SYMBOL_FILEDLG_SAVE_AS)
SYMBOL_SAVEAS_TYPE GetOption() const
wxFileDialogRadioButton * m_addGlobalTableEntry
wxFileDialogRadioButton * m_simpleSaveAs
virtual void TransferDataFromCustomControls() override
wxFileDialogRadioButton * m_replaceTableEntry
wxFileDialogRadioButton * m_addProjectTableEntry
SYMBOL_FILEDLG_SAVE_AS(SYMBOL_SAVEAS_TYPE aOption)