14DIALOG_ASSIGN_NETCLASS_BASE::DIALOG_ASSIGN_NETCLASS_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( wxDefaultSize, wxDefaultSize );
18 wxBoxSizer* bMainSizer;
19 bMainSizer =
new wxBoxSizer( wxVERTICAL );
21 wxBoxSizer* bUpperSizer;
22 bUpperSizer =
new wxBoxSizer( wxHORIZONTAL );
24 stPatternLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Pattern:"), wxDefaultPosition, wxDefaultSize, 0 );
26 bUpperSizer->Add(
stPatternLabel, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 10 );
28 m_patternCtrl =
new wxTextCtrl(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
31 bUpperSizer->Add(
m_patternCtrl, 1, wxRIGHT|wxLEFT|wxALIGN_CENTER_VERTICAL, 5 );
33 stNetclassLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Net class:"), wxDefaultPosition, wxDefaultSize, 0 );
35 bUpperSizer->Add(
stNetclassLabel, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 30 );
37 m_netclassCtrl =
new wxComboBox(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0, NULL, wxCB_READONLY );
41 bMainSizer->Add( bUpperSizer, 0, wxEXPAND|wxALL, 5 );
43 wxBoxSizer* bLowerSizer;
44 bLowerSizer =
new wxBoxSizer( wxVERTICAL );
49 bLowerSizer->Add(
m_matchingNets, 2, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
51 m_info =
new wxStaticText(
this, wxID_ANY,
_(
"Note: complete netclass assignments can be edited in Schematic Setup > Project."), wxDefaultPosition, wxDefaultSize, 0 );
53 bLowerSizer->Add(
m_info, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
56 bMainSizer->Add( bLowerSizer, 1, wxBOTTOM|wxEXPAND|wxLEFT|wxRIGHT, 10 );
68 this->SetSizer( bMainSizer );
70 bMainSizer->Fit(
this );
72 this->Centre( wxBOTH );
~DIALOG_ASSIGN_NETCLASS_BASE()
virtual void onPatternText(wxCommandEvent &event)
WX_HTML_REPORT_BOX * m_matchingNets
wxStaticText * stNetclassLabel
wxComboBox * m_netclassCtrl
wxButton * m_sdbSizerStdButtonsCancel
wxStdDialogButtonSizer * m_sdbSizerStdButtons
wxTextCtrl * m_patternCtrl
DIALOG_ASSIGN_NETCLASS_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Add Netclass Assignment"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_DIALOG_STYLE)
wxStaticText * stPatternLabel
wxButton * m_sdbSizerStdButtonsOK
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...
A slimmed down version of WX_HTML_REPORT_PANEL.