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 4.2.1-0-g80c4cb6)
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( 2, 0 );
27 gbSizer1->SetFlexibleDirection( wxBOTH );
28 gbSizer1->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
29 gbSizer1->SetEmptyCellSize( wxSize( -1,7 ) );
30
31 m_staticTextWidth = new wxStaticText( this, wxID_ANY, _("Wire/bus width:"), wxDefaultPosition, wxDefaultSize, 0 );
32 m_staticTextWidth->Wrap( -1 );
33 gbSizer1->Add( m_staticTextWidth, wxGBPosition( 0, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
34
35 m_lineWidth = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( -1,-1 ), 0 );
36 m_lineWidth->SetMinSize( wxSize( 146,-1 ) );
37
38 gbSizer1->Add( m_lineWidth, wxGBPosition( 0, 1 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL, 5 );
39
40 m_staticWidthUnits = new wxStaticText( this, wxID_ANY, _("unit"), wxDefaultPosition, wxDefaultSize, 0 );
41 m_staticWidthUnits->Wrap( -1 );
42 m_staticWidthUnits->SetMinSize( wxSize( 40,-1 ) );
43
44 gbSizer1->Add( m_staticWidthUnits, wxGBPosition( 0, 2 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxLEFT, 3 );
45
46 m_staticTextColor = new wxStaticText( this, wxID_ANY, _("Color:"), wxDefaultPosition, wxDefaultSize, 0 );
47 m_staticTextColor->Wrap( -1 );
48 gbSizer1->Add( m_staticTextColor, wxGBPosition( 0, 3 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxLEFT, 15 );
49
50 m_panel1 = new wxPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxBORDER_SIMPLE|wxTAB_TRAVERSAL );
51 wxBoxSizer* bSizer2;
52 bSizer2 = new wxBoxSizer( wxVERTICAL );
53
54 m_colorSwatch = new COLOR_SWATCH( m_panel1, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
55 bSizer2->Add( m_colorSwatch, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_CENTER_HORIZONTAL, 5 );
56
57
58 m_panel1->SetSizer( bSizer2 );
59 m_panel1->Layout();
60 bSizer2->Fit( m_panel1 );
61 gbSizer1->Add( m_panel1, wxGBPosition( 0, 4 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
62
63 m_staticTextStyle = new wxStaticText( this, wxID_ANY, _("Style:"), wxDefaultPosition, wxDefaultSize, 0 );
64 m_staticTextStyle->Wrap( -1 );
65 gbSizer1->Add( m_staticTextStyle, wxGBPosition( 1, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
66
67 m_typeCombo = new wxBitmapComboBox( this, wxID_ANY, _("Combo!"), wxDefaultPosition, wxDefaultSize, 0, NULL, wxCB_READONLY );
68 m_typeCombo->SetMinSize( wxSize( 240,-1 ) );
69
70 gbSizer1->Add( m_typeCombo, wxGBPosition( 1, 1 ), wxGBSpan( 1, 4 ), wxEXPAND|wxALIGN_CENTER_VERTICAL, 5 );
71
72 m_dotSizeLabel = new wxStaticText( this, wxID_ANY, _("Junction size:"), wxDefaultPosition, wxDefaultSize, 0 );
73 m_dotSizeLabel->Wrap( -1 );
74 gbSizer1->Add( m_dotSizeLabel, wxGBPosition( 3, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
75
76 m_dotSizeCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
77 m_dotSizeCtrl->SetMinSize( wxSize( 146,-1 ) );
78
79 gbSizer1->Add( m_dotSizeCtrl, wxGBPosition( 3, 1 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
80
81 m_dotSizeUnits = new wxStaticText( this, wxID_ANY, _("unit"), wxDefaultPosition, wxDefaultSize, 0 );
82 m_dotSizeUnits->Wrap( -1 );
83 gbSizer1->Add( m_dotSizeUnits, wxGBPosition( 3, 2 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxLEFT, 3 );
84
85
86 mainSizer->Add( gbSizer1, 1, wxEXPAND|wxALL, 10 );
87
88 wxBoxSizer* bMargins;
89 bMargins = new wxBoxSizer( wxVERTICAL );
90
91 m_helpLabel1 = new wxStaticText( this, wxID_ANY, _("Set width to 0 to use netclass's wire/bus widths."), wxDefaultPosition, wxDefaultSize, 0 );
92 m_helpLabel1->Wrap( -1 );
93 bMargins->Add( m_helpLabel1, 0, wxTOP|wxBOTTOM|wxRIGHT, 5 );
94
95 m_helpLabel2 = new wxStaticText( this, wxID_ANY, _("Clear color to use Schematic Editor colors."), wxDefaultPosition, wxDefaultSize, 0 );
96 m_helpLabel2->Wrap( -1 );
97 bMargins->Add( m_helpLabel2, 0, wxBOTTOM|wxRIGHT, 5 );
98
99
100 mainSizer->Add( bMargins, 0, wxEXPAND|wxRIGHT|wxLEFT, 10 );
101
102 m_sdbSizer = new wxStdDialogButtonSizer();
103 m_sdbSizerOK = new wxButton( this, wxID_OK );
104 m_sdbSizer->AddButton( m_sdbSizerOK );
105 m_sdbSizerApply = new wxButton( this, wxID_APPLY );
106 m_sdbSizer->AddButton( m_sdbSizerApply );
107 m_sdbSizerCancel = new wxButton( this, wxID_CANCEL );
108 m_sdbSizer->AddButton( m_sdbSizerCancel );
109 m_sdbSizer->Realize();
110
111 mainSizer->Add( m_sdbSizer, 0, wxALL|wxEXPAND, 5 );
112
113
114 this->SetSizer( mainSizer );
115 this->Layout();
116 mainSizer->Fit( this );
117
118 this->Centre( wxBOTH );
119}
120
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...
Definition dialog_shim.h:68
DIALOG_SHIM(wxWindow *aParent, wxWindowID id, const wxString &title, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_FRAME_STYLE|wxRESIZE_BORDER, const wxString &name=wxDialogNameStr)
Class DIALOG_WIRE_BUS_PROPERTIES_BASE.
DIALOG_WIRE_BUS_PROPERTIES_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Wire & Bus Properties"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
#define _(s)