15DIALOG_CHANGE_SYMBOLS_BASE::DIALOG_CHANGE_SYMBOLS_BASE( wxWindow* parent, wxWindowID
id,
const wxString& title,
const wxPoint& pos,
const wxSize& size,
long style ) :
DIALOG_SHIM( parent, id, title, pos, size, style )
17 this->SetSizeHints( wxDefaultSize, wxDefaultSize );
21 wxBoxSizer* matchSizerMargins;
22 matchSizerMargins =
new wxBoxSizer( wxVERTICAL );
26 m_matchSizer->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
28 m_matchAll =
new wxRadioButton(
this, wxID_ANY,
_(
"Update all symbols in schematic"), wxDefaultPosition, wxDefaultSize, 0 );
29 m_matchSizer->Add(
m_matchAll, wxGBPosition( 0, 0 ), wxGBSpan( 1, 2 ), wxALIGN_CENTER_VERTICAL|wxBOTTOM, 5 );
31 m_matchBySelection =
new wxRadioButton(
this, wxID_ANY,
_(
"Update selected symbol(s)"), wxDefaultPosition, wxDefaultSize, 0 );
34 m_matchByReference =
new wxRadioButton(
this, wxID_ANY,
_(
"Update symbols matching reference designator:"), wxDefaultPosition, wxDefaultSize, 0 );
37 m_specifiedReference =
new wxTextCtrl(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( 200,-1 ), wxTE_PROCESS_ENTER );
40 m_matchByValue =
new wxRadioButton(
this, wxID_ANY,
_(
"Update symbols matching value:"), wxDefaultPosition, wxDefaultSize, 0 );
43 m_specifiedValue =
new wxTextCtrl(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_PROCESS_ENTER );
46 m_matchById =
new wxRadioButton(
this, wxID_ANY,
_(
"Update symbols matching library identifier:"), wxDefaultPosition, wxDefaultSize, 0 );
49 m_specifiedId =
new wxTextCtrl(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_PROCESS_ENTER );
59 matchSizerMargins->Add(
m_matchSizer, 0, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
62 m_mainSizer->Add( matchSizerMargins, 0, wxEXPAND|wxTOP|wxLEFT, 5 );
67 m_staticline1 =
new wxStaticLine(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
72 wxStaticText* m_newIdLabel;
73 m_newIdLabel =
new wxStaticText(
this, wxID_ANY,
_(
"New library identifier:"), wxDefaultPosition, wxDefaultSize, 0 );
74 m_newIdLabel->Wrap( -1 );
78 bSizer1 =
new wxBoxSizer( wxHORIZONTAL );
80 m_newId =
new wxTextCtrl(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_PROCESS_ENTER );
81 bSizer1->Add(
m_newId, 1, wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxLEFT, 5 );
87 m_newIdSizer->Add( bSizer1, 0, wxEXPAND|wxTOP|wxBOTTOM, 2 );
92 wxBoxSizer* bSizerUpdate;
93 bSizerUpdate =
new wxBoxSizer( wxHORIZONTAL );
95 m_updateFieldsSizer =
new wxStaticBoxSizer(
new wxStaticBox(
this, wxID_ANY,
_(
"Update/reset Fields") ), wxVERTICAL );
97 wxArrayString m_fieldsBoxChoices;
98 m_fieldsBox =
new wxCheckListBox(
m_updateFieldsSizer->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, m_fieldsBoxChoices, wxLB_NEEDED_SB );
103 wxBoxSizer* m_selBtnSizer;
104 m_selBtnSizer =
new wxBoxSizer( wxHORIZONTAL );
107 m_selBtnSizer->Add(
m_selAllBtn, 1, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
110 m_selBtnSizer->Add(
m_selNoneBtn, 1, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
118 m_updateOptionsSizer =
new wxStaticBoxSizer(
new wxStaticBox(
this, wxID_ANY,
_(
"Update Options") ), wxVERTICAL );
120 wxCheckBox* updateShapeAndPins;
121 updateShapeAndPins =
new wxCheckBox(
m_updateOptionsSizer->GetStaticBox(), wxID_ANY,
_(
"Update symbol shape and pins"), wxDefaultPosition, wxDefaultSize, 0 );
122 updateShapeAndPins->SetValue(
true);
123 updateShapeAndPins->Enable(
false );
127 wxCheckBox* updateKeywordsAndFootprintFilters;
128 updateKeywordsAndFootprintFilters =
new wxCheckBox(
m_updateOptionsSizer->GetStaticBox(), wxID_ANY,
_(
"Update keywords and footprint filters"), wxDefaultPosition, wxDefaultSize, 0 );
129 updateKeywordsAndFootprintFilters->SetValue(
true);
130 updateKeywordsAndFootprintFilters->Enable(
false );
138 m_removeExtraBox->SetToolTip(
_(
"Removes fields that do not occur in the original library symbols") );
179 bSizer2 =
new wxBoxSizer( wxVERTICAL );
187 m_mainSizer->Add( bSizer2, 1, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
203 this->Centre( wxBOTH );
wxCheckListBox * m_fieldsBox
STD_BITMAP_BUTTON * m_newIdBrowserButton
wxTextCtrl * m_specifiedValue
virtual void onMatchByValue(wxCommandEvent &event)
DIALOG_CHANGE_SYMBOLS_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Update Symbols from Library"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
virtual void onOkButtonClicked(wxCommandEvent &event)
wxCheckBox * m_removeExtraBox
virtual void OnMatchText(wxCommandEvent &event)
wxCheckBox * m_resetCustomPower
virtual void onSelectAll(wxCommandEvent &event)
virtual void onMatchById(wxCommandEvent &event)
virtual void launchMatchIdSymbolBrowser(wxCommandEvent &event)
virtual void onSelectNone(wxCommandEvent &event)
virtual void onMatchByAll(wxCommandEvent &event)
wxButton * m_sdbSizerCancel
virtual void onNewLibIDKillFocus(wxFocusEvent &event)
wxRadioButton * m_matchBySelection
wxStaticBoxSizer * m_updateOptionsSizer
wxCheckBox * m_resetFieldPositions
virtual void onMatchIDKillFocus(wxFocusEvent &event)
wxRadioButton * m_matchByValue
wxRadioButton * m_matchByReference
wxCheckBox * m_resetFieldEffects
wxCheckBox * m_resetFieldText
virtual void onMatchByReference(wxCommandEvent &event)
wxStaticBoxSizer * m_updateFieldsSizer
wxCheckBox * m_resetAttributes
virtual void launchNewIdSymbolBrowser(wxCommandEvent &event)
wxTextCtrl * m_specifiedReference
~DIALOG_CHANGE_SYMBOLS_BASE()
wxGridBagSizer * m_matchSizer
WX_HTML_REPORT_PANEL * m_messagePanel
wxCheckBox * m_resetFieldVisibilities
wxTextCtrl * m_specifiedId
wxRadioButton * m_matchById
wxCheckBox * m_resetEmptyFields
wxBoxSizer * m_newIdSizer
wxCheckBox * m_resetPinTextVisibility
wxRadioButton * m_matchAll
virtual void onMatchTextKillFocus(wxFocusEvent &event)
wxStdDialogButtonSizer * m_sdbSizer
STD_BITMAP_BUTTON * m_matchIdBrowserButton
virtual void onMatchBySelected(wxCommandEvent &event)
wxStaticLine * m_staticline1
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...
A widget for browsing a rich text error/status report.