18DIALOG_WIRE_BUS_PROPERTIES_BASE::
DIALOG_WIRE_BUS_PROPERTIES_BASE( wxWindow* parent, wxWindowID
id, const wxString& title, const wxPoint& pos, const wxSize& size,
long style ) :
DIALOG_SHIM( parent,
id, title, pos, size, style )
20 this->SetSizeHints( wxDefaultSize, wxDefaultSize );
22 wxBoxSizer* mainSizer;
23 mainSizer =
new wxBoxSizer( wxVERTICAL );
25 wxGridBagSizer* gbSizer1;
26 gbSizer1 =
new wxGridBagSizer( 3, 0 );
27 gbSizer1->SetFlexibleDirection( wxBOTH );
28 gbSizer1->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
30 m_staticTextWidth =
new wxStaticText(
this, wxID_ANY,
_(
"Wire/bus width:"), wxDefaultPosition, wxDefaultSize, 0 );
31 m_staticTextWidth->Wrap( -1 );
32 gbSizer1->Add( m_staticTextWidth, wxGBPosition( 0, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
34 m_lineWidth =
new wxTextCtrl(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( -1,-1 ), 0 );
35 m_lineWidth->SetMinSize( wxSize( 146,-1 ) );
37 gbSizer1->Add( m_lineWidth, wxGBPosition( 0, 1 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL, 5 );
39 m_staticWidthUnits =
new wxStaticText(
this, wxID_ANY,
_(
"unit"), wxDefaultPosition, wxDefaultSize, 0 );
40 m_staticWidthUnits->Wrap( -1 );
41 m_staticWidthUnits->SetMinSize( wxSize( 40,-1 ) );
43 gbSizer1->Add( m_staticWidthUnits, wxGBPosition( 0, 2 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxLEFT, 3 );
45 m_staticTextColor =
new wxStaticText(
this, wxID_ANY,
_(
"Color:"), wxDefaultPosition, wxDefaultSize, 0 );
46 m_staticTextColor->Wrap( -1 );
47 gbSizer1->Add( m_staticTextColor, wxGBPosition( 0, 3 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxLEFT, 15 );
49 m_panel1 =
new wxPanel(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxBORDER_SIMPLE|wxTAB_TRAVERSAL );
51 bSizer2 =
new wxBoxSizer( wxVERTICAL );
53 m_colorSwatch =
new COLOR_SWATCH( m_panel1, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
54 bSizer2->Add( m_colorSwatch, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_CENTER_HORIZONTAL, 5 );
57 m_panel1->SetSizer( bSizer2 );
59 bSizer2->Fit( m_panel1 );
60 gbSizer1->Add( m_panel1, wxGBPosition( 0, 4 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
62 m_staticTextStyle =
new wxStaticText(
this, wxID_ANY,
_(
"Style:"), wxDefaultPosition, wxDefaultSize, 0 );
63 m_staticTextStyle->Wrap( -1 );
64 gbSizer1->Add( m_staticTextStyle, wxGBPosition( 1, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
66 m_typeCombo =
new wxBitmapComboBox(
this, wxID_ANY,
_(
"Combo!"), wxDefaultPosition, wxDefaultSize, 0, NULL, wxCB_READONLY );
67 m_typeCombo->SetMinSize( wxSize( 240,-1 ) );
69 gbSizer1->Add( m_typeCombo, wxGBPosition( 1, 1 ), wxGBSpan( 1, 4 ), wxEXPAND|wxALIGN_CENTER_VERTICAL, 5 );
71 m_dotSizeLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Junction size:"), wxDefaultPosition, wxDefaultSize, 0 );
72 m_dotSizeLabel->Wrap( -1 );
73 gbSizer1->Add( m_dotSizeLabel, wxGBPosition( 3, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
75 m_dotSizeCtrl =
new wxTextCtrl(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
76 m_dotSizeCtrl->SetMinSize( wxSize( 146,-1 ) );
78 gbSizer1->Add( m_dotSizeCtrl, wxGBPosition( 3, 1 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
80 m_dotSizeUnits =
new wxStaticText(
this, wxID_ANY,
_(
"unit"), wxDefaultPosition, wxDefaultSize, 0 );
81 m_dotSizeUnits->Wrap( -1 );
82 gbSizer1->Add( m_dotSizeUnits, wxGBPosition( 3, 2 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxLEFT, 3 );
85 mainSizer->Add( gbSizer1, 1, wxEXPAND|wxALL, 10 );
88 bSizer3 =
new wxBoxSizer( wxVERTICAL );
90 m_helpLabel1 =
new wxStaticText(
this, wxID_ANY,
_(
"Set width to 0 to use netclass's wire/bus widths."), wxDefaultPosition, wxDefaultSize, 0 );
91 m_helpLabel1->Wrap( -1 );
92 bSizer3->Add( m_helpLabel1, 0, wxTOP|wxRIGHT|wxLEFT, 10 );
94 m_helpLabel2 =
new wxStaticText(
this, wxID_ANY,
_(
"Clear color to use Schematic Editor colors."), wxDefaultPosition, wxDefaultSize, 0 );
95 m_helpLabel2->Wrap( -1 );
96 bSizer3->Add( m_helpLabel2, 0, wxRIGHT|wxLEFT, 10 );
99 mainSizer->Add( bSizer3, 0, wxBOTTOM|wxEXPAND|wxTOP, 5 );
101 m_sdbSizer =
new wxStdDialogButtonSizer();
102 m_sdbSizerOK =
new wxButton(
this, wxID_OK );
103 m_sdbSizer->AddButton( m_sdbSizerOK );
104 m_sdbSizerApply =
new wxButton(
this, wxID_APPLY );
105 m_sdbSizer->AddButton( m_sdbSizerApply );
106 m_sdbSizerCancel =
new wxButton(
this, wxID_CANCEL );
107 m_sdbSizer->AddButton( m_sdbSizerCancel );
108 m_sdbSizer->Realize();
110 mainSizer->Add( m_sdbSizer, 0, wxALL|wxEXPAND, 5 );
113 this->SetSizer( mainSizer );
115 mainSizer->Fit(
this );
117 this->Centre( wxBOTH );
A simple color swatch of the kind used to set layer colors.
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...
Class DIALOG_WIRE_BUS_PROPERTIES_BASE.
~DIALOG_WIRE_BUS_PROPERTIES_BASE()
void _wxFB_resetDefaults(wxCommandEvent &event)