12DIALOG_UPDATE_SYMBOL_FIELDS_BASE::DIALOG_UPDATE_SYMBOL_FIELDS_BASE( wxWindow* parent, wxWindowID
id,
const wxString& title,
const wxPoint& pos,
const wxSize& size,
long style ) :
DIALOG_SHIM( parent, id, title, pos, size, style )
14 this->SetSizeHints( wxDefaultSize, wxDefaultSize );
20 wxStaticText* m_parentSymbolLabel;
21 m_parentSymbolLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Parent symbol:"), wxDefaultPosition, wxDefaultSize, 0 );
22 m_parentSymbolLabel->Wrap( -1 );
23 m_newIdSizer->Add( m_parentSymbolLabel, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM|wxLEFT, 5 );
25 m_parentSymbolReadOnly =
new wxTextCtrl(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_READONLY );
33 wxBoxSizer* bSizerUpdate;
34 bSizerUpdate =
new wxBoxSizer( wxHORIZONTAL );
36 m_updateFieldsSizer =
new wxStaticBoxSizer(
new wxStaticBox(
this, wxID_ANY,
_(
"Update/reset Fields") ), wxVERTICAL );
38 wxArrayString m_fieldsBoxChoices;
39 m_fieldsBox =
new wxCheckListBox(
m_updateFieldsSizer->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, m_fieldsBoxChoices, wxLB_NEEDED_SB );
44 wxBoxSizer* m_selBtnSizer;
45 m_selBtnSizer =
new wxBoxSizer( wxHORIZONTAL );
48 m_selBtnSizer->Add(
m_selAllBtn, 1, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
51 m_selBtnSizer->Add(
m_selNoneBtn, 1, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
59 m_updateOptionsSizer =
new wxStaticBoxSizer(
new wxStaticBox(
this, wxID_ANY,
_(
"Update Options") ), wxVERTICAL );
62 m_removeExtraBox->SetToolTip(
_(
"Removes fields that do not occur in the original library symbols") );
104 this->Centre( wxBOTH );
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...
virtual void onOkButtonClicked(wxCommandEvent &event)
wxStaticBoxSizer * m_updateFieldsSizer
wxCheckBox * m_resetFieldText
wxStaticBoxSizer * m_updateOptionsSizer
virtual void onSelectAll(wxCommandEvent &event)
wxStdDialogButtonSizer * m_sdbSizer
wxCheckBox * m_resetFieldEffects
wxCheckBox * m_resetFieldPositions
wxButton * m_sdbSizerCancel
wxTextCtrl * m_parentSymbolReadOnly
virtual void onSelectNone(wxCommandEvent &event)
DIALOG_UPDATE_SYMBOL_FIELDS_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Update Symbol Fields"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
wxCheckBox * m_resetEmptyFields
wxBoxSizer * m_newIdSizer
wxCheckBox * m_resetFieldVisibilities
~DIALOG_UPDATE_SYMBOL_FIELDS_BASE()
wxCheckListBox * m_fieldsBox
wxCheckBox * m_removeExtraBox