KiCad PCB EDA Suite
Loading...
Searching...
No Matches
dialog_wire_bus_properties_base.cpp
Go to the documentation of this file.
1
2// C++ code generated with wxFormBuilder (version 3.10.1-0-g8feb16b)
3// http://www.wxformbuilder.org/
4//
5// PLEASE DO *NOT* EDIT THIS FILE!
7
9
11
13
16END_EVENT_TABLE()
17
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 )
19{
20 this->SetSizeHints( wxDefaultSize, wxDefaultSize );
21
22 wxBoxSizer* mainSizer;
23 mainSizer = new wxBoxSizer( wxVERTICAL );
24
25 wxGridBagSizer* gbSizer1;
26 gbSizer1 = new wxGridBagSizer( 3, 0 );
27 gbSizer1->SetFlexibleDirection( wxBOTH );
28 gbSizer1->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
29
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 );
33
34 m_lineWidth = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( -1,-1 ), 0 );
35 m_lineWidth->SetMinSize( wxSize( 146,-1 ) );
36
37 gbSizer1->Add( m_lineWidth, wxGBPosition( 0, 1 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL, 5 );
38
39 m_staticWidthUnits = new wxStaticText( this, wxID_ANY, _("unit"), wxDefaultPosition, wxDefaultSize, 0 );
40 m_staticWidthUnits->Wrap( -1 );
41 m_staticWidthUnits->SetMinSize( wxSize( 40,-1 ) );
42
43 gbSizer1->Add( m_staticWidthUnits, wxGBPosition( 0, 2 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxLEFT, 3 );
44
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 );
48
49 m_panel1 = new wxPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxBORDER_SIMPLE|wxTAB_TRAVERSAL );
50 wxBoxSizer* bSizer2;
51 bSizer2 = new wxBoxSizer( wxVERTICAL );
52
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 );
55
56
57 m_panel1->SetSizer( bSizer2 );
58 m_panel1->Layout();
59 bSizer2->Fit( m_panel1 );
60 gbSizer1->Add( m_panel1, wxGBPosition( 0, 4 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
61
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 );
65
66 m_typeCombo = new wxBitmapComboBox( this, wxID_ANY, _("Combo!"), wxDefaultPosition, wxDefaultSize, 0, NULL, wxCB_READONLY );
67 m_typeCombo->SetMinSize( wxSize( 240,-1 ) );
68
69 gbSizer1->Add( m_typeCombo, wxGBPosition( 1, 1 ), wxGBSpan( 1, 4 ), wxEXPAND|wxALIGN_CENTER_VERTICAL, 5 );
70
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 );
74
75 m_dotSizeCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
76 m_dotSizeCtrl->SetMinSize( wxSize( 146,-1 ) );
77
78 gbSizer1->Add( m_dotSizeCtrl, wxGBPosition( 3, 1 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
79
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 );
83
84
85 mainSizer->Add( gbSizer1, 1, wxEXPAND|wxALL, 10 );
86
87 wxBoxSizer* bSizer3;
88 bSizer3 = new wxBoxSizer( wxVERTICAL );
89
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 );
93
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 );
97
98
99 mainSizer->Add( bSizer3, 0, wxBOTTOM|wxEXPAND|wxTOP, 5 );
100
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();
109
110 mainSizer->Add( m_sdbSizer, 0, wxALL|wxEXPAND, 5 );
111
112
113 this->SetSizer( mainSizer );
114 this->Layout();
115 mainSizer->Fit( this );
116
117 this->Centre( wxBOTH );
118}
119
121{
122}
A simple color swatch of the kind used to set layer colors.
Definition: color_swatch.h:57
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...
Definition: dialog_shim.h:88
Class DIALOG_WIRE_BUS_PROPERTIES_BASE.
void _wxFB_resetDefaults(wxCommandEvent &event)
#define _(s)