14DIALOG_UPDATE_FROM_PCB_BASE::DIALOG_UPDATE_FROM_PCB_BASE( wxWindow* parent, wxWindowID
id,
const wxString& title,
const wxPoint& pos,
const wxSize& size,
long style ) :
DIALOG_SHIM( parent, id, title, pos, size, style )
16 this->SetSizeHints( wxSize( -1,-1 ), wxDefaultSize );
18 wxBoxSizer* bMainSizer;
19 bMainSizer =
new wxBoxSizer( wxVERTICAL );
21 wxBoxSizer* bUpperSizer;
22 bUpperSizer =
new wxBoxSizer( wxVERTICAL );
24 wxStaticBoxSizer* sbSizerOptions;
25 sbSizerOptions =
new wxStaticBoxSizer(
new wxStaticBox(
this, wxID_ANY,
_(
"Options") ), wxVERTICAL );
27 wxFlexGridSizer* fgSizer1;
28 fgSizer1 =
new wxFlexGridSizer( 0, 1, 0, 0 );
29 fgSizer1->SetFlexibleDirection( wxVERTICAL );
30 fgSizer1->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
32 m_cbRelinkFootprints =
new wxCheckBox( sbSizerOptions->GetStaticBox(), wxID_ANY,
_(
"Re-link footprints to schematic symbols based on their reference designators"), wxDefaultPosition, wxDefaultSize, 0 );
33 m_cbRelinkFootprints->SetToolTip(
_(
"Normally footprints are linked to their symbols via their Unique IDs. Select this option only if you want to reset the footprint linkages based on their reference designators.") );
38 sbSizerOptions->Add( fgSizer1, 1, wxEXPAND|wxBOTTOM, 5 );
41 bUpperSizer->Add( sbSizerOptions, 0, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
43 wxStaticBoxSizer* sbSizer2;
44 sbSizer2 =
new wxStaticBoxSizer(
new wxStaticBox(
this, wxID_ANY,
_(
"Update") ), wxVERTICAL );
46 wxFlexGridSizer* fgSizer2;
47 fgSizer2 =
new wxFlexGridSizer( 0, 2, 0, 0 );
48 fgSizer2->AddGrowableCol( 0 );
49 fgSizer2->AddGrowableCol( 1 );
50 fgSizer2->SetFlexibleDirection( wxBOTH );
51 fgSizer2->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
53 m_cbUpdateReferences =
new wxCheckBox( sbSizer2->GetStaticBox(), wxID_ANY,
_(
"Reference designators"), wxDefaultPosition, wxDefaultSize, 0 );
55 m_cbUpdateReferences->SetToolTip(
_(
"Update references of symbols that have been changed in the PCB editor.") );
59 m_cbUpdateFootprints =
new wxCheckBox( sbSizer2->GetStaticBox(), wxID_ANY,
_(
"Footprint assignments"), wxDefaultPosition, wxDefaultSize, 0 );
60 m_cbUpdateFootprints->SetToolTip(
_(
"Update footprint associations of symbols whose footprints have been replaced with different footprints in PCB.") );
64 m_cbUpdateValues =
new wxCheckBox( sbSizer2->GetStaticBox(), wxID_ANY,
_(
"Values"), wxDefaultPosition, wxDefaultSize, 0 );
65 m_cbUpdateValues->SetToolTip(
_(
"Update symbols values that have been replaced in the PCB editor.") );
69 m_cbUpdateNetNames =
new wxCheckBox( sbSizer2->GetStaticBox(), wxID_ANY,
_(
"Net names"), wxDefaultPosition, wxDefaultSize, 0 );
72 m_cbUpdateAttributes =
new wxCheckBox( sbSizer2->GetStaticBox(), wxID_ANY,
_(
"Attributes"), wxDefaultPosition, wxDefaultSize, 0 );
75 m_cbUpdateOtherFields =
new wxCheckBox( sbSizer2->GetStaticBox(), wxID_ANY,
_(
"Other fields"), wxDefaultPosition, wxDefaultSize, 0 );
81 sbSizer2->Add( fgSizer2, 1, wxEXPAND, 5 );
84 bUpperSizer->Add( sbSizer2, 1, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
87 bMainSizer->Add( bUpperSizer, 0, wxALL|wxEXPAND, 5 );
89 wxBoxSizer* bLowerSizer;
90 bLowerSizer =
new wxBoxSizer( wxVERTICAL );
92 bLowerSizer->SetMinSize( wxSize( 600,260 ) );
97 bMainSizer->Add( bLowerSizer, 1, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
106 bMainSizer->Add(
m_sdbSizer, 0, wxALL|wxEXPAND, 5 );
109 this->SetSizer( bMainSizer );
111 bMainSizer->Fit(
this );
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...
wxCheckBox * m_cbUpdateNetNames
wxCheckBox * m_cbUpdateAttributes
~DIALOG_UPDATE_FROM_PCB_BASE()
DIALOG_UPDATE_FROM_PCB_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Update Schematic from PCB"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
wxCheckBox * m_cbUpdateReferences
wxButton * m_sdbSizerCancel
wxCheckBox * m_cbUpdateFootprints
wxCheckBox * m_cbUpdateOtherFields
WX_HTML_REPORT_PANEL * m_messagePanel
wxStdDialogButtonSizer * m_sdbSizer
virtual void OnOptionChanged(wxCommandEvent &event)
wxCheckBox * m_cbRelinkFootprints
virtual void OnUpdateClick(wxCommandEvent &event)
wxCheckBox * m_cbUpdateValues
A widget for browsing a rich text error/status report.