KiCad PCB EDA Suite
dialog_lib_shape_properties_base.cpp
Go to the documentation of this file.
1
2// C++ code generated with wxFormBuilder (version Oct 26 2018)
3// http://www.wxformbuilder.org/
4//
5// PLEASE DO *NOT* EDIT THIS FILE!
7
9
11
13
16 EVT_RADIOBUTTON( NO_FILL, DIALOG_LIB_SHAPE_PROPERTIES_BASE::_wxFB_onFill )
17 EVT_RADIOBUTTON( FILLED_SHAPE, DIALOG_LIB_SHAPE_PROPERTIES_BASE::_wxFB_onFill )
18 EVT_RADIOBUTTON( FILLED_WITH_BG_BODYCOLOR, DIALOG_LIB_SHAPE_PROPERTIES_BASE::_wxFB_onFill )
19 EVT_RADIOBUTTON( FILLED_WITH_COLOR, DIALOG_LIB_SHAPE_PROPERTIES_BASE::_wxFB_onFill )
20END_EVENT_TABLE()
21
22DIALOG_LIB_SHAPE_PROPERTIES_BASE::DIALOG_LIB_SHAPE_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 )
23{
24 this->SetSizeHints( wxDefaultSize, wxDefaultSize );
25
26 wxBoxSizer* mainSizer;
27 mainSizer = new wxBoxSizer( wxVERTICAL );
28
29 wxBoxSizer* bTop;
30 bTop = new wxBoxSizer( wxHORIZONTAL );
31
32 wxBoxSizer* bLeftCol;
33 bLeftCol = new wxBoxSizer( wxVERTICAL );
34
35 wxGridBagSizer* gbSizer2;
36 gbSizer2 = new wxGridBagSizer( 0, 0 );
37 gbSizer2->SetFlexibleDirection( wxBOTH );
38 gbSizer2->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
39
40 m_checkBorder = new wxCheckBox( this, wxID_ANY, _("Border"), wxDefaultPosition, wxDefaultSize, 0 );
41 gbSizer2->Add( m_checkBorder, wxGBPosition( 0, 0 ), wxGBSpan( 1, 2 ), wxTOP|wxRIGHT|wxLEFT, 5 );
42
43 m_borderWidthLabel = new wxStaticText( this, wxID_ANY, _("Width:"), wxDefaultPosition, wxDefaultSize, 0 );
44 m_borderWidthLabel->Wrap( -1 );
45 gbSizer2->Add( m_borderWidthLabel, wxGBPosition( 1, 0 ), wxGBSpan( 1, 1 ), wxALL, 5 );
46
47 wxBoxSizer* bSizer7;
48 bSizer7 = new wxBoxSizer( wxHORIZONTAL );
49
50 m_borderWidthCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( -1,-1 ), 0 );
51 bSizer7->Add( m_borderWidthCtrl, 0, wxALIGN_CENTER_VERTICAL, 5 );
52
53 m_borderWidthUnits = new wxStaticText( this, wxID_ANY, _("mm"), wxDefaultPosition, wxDefaultSize, 0 );
54 m_borderWidthUnits->Wrap( -1 );
55 bSizer7->Add( m_borderWidthUnits, 0, wxLEFT|wxALIGN_CENTER_VERTICAL, 3 );
56
57 m_borderColorLabel = new wxStaticText( this, wxID_ANY, _("Color:"), wxDefaultPosition, wxDefaultSize, 0 );
58 m_borderColorLabel->Wrap( -1 );
59 bSizer7->Add( m_borderColorLabel, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 15 );
60
61
62 bSizer7->Add( 5, 0, 0, 0, 5 );
63
64 m_panelBorderColor = new wxPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxBORDER_SIMPLE|wxTAB_TRAVERSAL );
65 wxBoxSizer* bSizer22;
66 bSizer22 = new wxBoxSizer( wxVERTICAL );
67
68 m_borderColorSwatch = new COLOR_SWATCH( m_panelBorderColor, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
69 bSizer22->Add( m_borderColorSwatch, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_CENTER_HORIZONTAL, 5 );
70
71
72 m_panelBorderColor->SetSizer( bSizer22 );
73 m_panelBorderColor->Layout();
74 bSizer22->Fit( m_panelBorderColor );
75 bSizer7->Add( m_panelBorderColor, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
76
77
78 gbSizer2->Add( bSizer7, wxGBPosition( 1, 1 ), wxGBSpan( 1, 1 ), wxEXPAND, 5 );
79
80 m_borderStyleLabel = new wxStaticText( this, wxID_ANY, _("Style:"), wxDefaultPosition, wxDefaultSize, 0 );
81 m_borderStyleLabel->Wrap( -1 );
82 gbSizer2->Add( m_borderStyleLabel, wxGBPosition( 2, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
83
84 m_borderStyleCombo = new wxBitmapComboBox( this, wxID_ANY, _("Combo!"), wxDefaultPosition, wxDefaultSize, 0, NULL, wxCB_READONLY );
85 m_borderStyleCombo->SetMinSize( wxSize( 240,-1 ) );
86
87 gbSizer2->Add( m_borderStyleCombo, wxGBPosition( 2, 1 ), wxGBSpan( 1, 1 ), wxBOTTOM|wxRIGHT|wxALIGN_CENTER_VERTICAL, 5 );
88
89 m_helpLabel = new wxStaticText( this, wxID_ANY, _("Set border width to 0 to use schematic's default symbol line width."), wxDefaultPosition, wxDefaultSize, 0 );
90 m_helpLabel->Wrap( 320 );
91 gbSizer2->Add( m_helpLabel, wxGBPosition( 3, 0 ), wxGBSpan( 1, 2 ), wxTOP|wxRIGHT|wxLEFT, 5 );
92
93
94 bLeftCol->Add( gbSizer2, 1, wxEXPAND, 5 );
95
96
97 bTop->Add( bLeftCol, 1, wxEXPAND|wxRIGHT, 30 );
98
99 wxBoxSizer* bRightCol;
100 bRightCol = new wxBoxSizer( wxVERTICAL );
101
102 wxStaticBoxSizer* bSizerFill;
103 bSizerFill = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Fill Style") ), wxVERTICAL );
104
105 wxGridBagSizer* gbSizer1;
106 gbSizer1 = new wxGridBagSizer( 3, 0 );
107 gbSizer1->SetFlexibleDirection( wxBOTH );
108 gbSizer1->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
109
110 m_rbFillNone = new wxRadioButton( bSizerFill->GetStaticBox(), NO_FILL, _("Do not fill"), wxDefaultPosition, wxDefaultSize, wxRB_GROUP );
111 gbSizer1->Add( m_rbFillNone, wxGBPosition( 0, 0 ), wxGBSpan( 1, 2 ), wxALIGN_CENTER_VERTICAL, 5 );
112
113 m_rbFillOutline = new wxRadioButton( bSizerFill->GetStaticBox(), FILLED_SHAPE, _("Fill with body outline color"), wxDefaultPosition, wxDefaultSize, 0 );
114 gbSizer1->Add( m_rbFillOutline, wxGBPosition( 1, 0 ), wxGBSpan( 1, 2 ), wxALIGN_CENTER_VERTICAL, 5 );
115
116 m_rbFillBackground = new wxRadioButton( bSizerFill->GetStaticBox(), FILLED_WITH_BG_BODYCOLOR, _("Fill with body background color"), wxDefaultPosition, wxDefaultSize, 0 );
117 gbSizer1->Add( m_rbFillBackground, wxGBPosition( 2, 0 ), wxGBSpan( 1, 2 ), wxALIGN_CENTER_VERTICAL, 5 );
118
119 m_rbFillCustom = new wxRadioButton( bSizerFill->GetStaticBox(), FILLED_WITH_COLOR, _("Fill with:"), wxDefaultPosition, wxDefaultSize, 0 );
120 gbSizer1->Add( m_rbFillCustom, wxGBPosition( 3, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL, 5 );
121
122 m_fillColorSwatch = new COLOR_SWATCH( bSizerFill->GetStaticBox(), FILLED_WITH_COLOR, wxDefaultPosition, wxDefaultSize, 0 );
123 gbSizer1->Add( m_fillColorSwatch, wxGBPosition( 3, 1 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
124
125
126 bSizerFill->Add( gbSizer1, 1, wxEXPAND|wxBOTTOM, 5 );
127
128
129 bRightCol->Add( bSizerFill, 0, wxEXPAND|wxTOP|wxBOTTOM, 5 );
130
131
132 bTop->Add( bRightCol, 1, wxEXPAND|wxLEFT, 30 );
133
134
135 mainSizer->Add( bTop, 1, wxALL|wxEXPAND, 10 );
136
137 wxGridSizer* bBottom;
138 bBottom = new wxGridSizer( 0, 2, 0, 60 );
139
140 m_privateCheckbox = new wxCheckBox( this, wxID_ANY, _("Private to Symbol Editor"), wxDefaultPosition, wxDefaultSize, 0 );
141 bBottom->Add( m_privateCheckbox, 0, wxALL, 5 );
142
143 m_checkApplyToAllUnits = new wxCheckBox( this, wxID_ANY, _("Common to all &units in symbol"), wxDefaultPosition, wxDefaultSize, 0 );
144 bBottom->Add( m_checkApplyToAllUnits, 0, wxALL, 5 );
145
146
147 bBottom->Add( 0, 0, 1, wxEXPAND, 5 );
148
149 m_checkApplyToAllConversions = new wxCheckBox( this, wxID_ANY, _("Common to all body &styles (De Morgan)"), wxDefaultPosition, wxDefaultSize, 0 );
150 bBottom->Add( m_checkApplyToAllConversions, 0, wxBOTTOM|wxRIGHT|wxLEFT, 5 );
151
152
153 mainSizer->Add( bBottom, 0, wxEXPAND|wxALL, 10 );
154
155 m_staticline = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
156 mainSizer->Add( m_staticline, 0, wxEXPAND|wxRIGHT|wxLEFT, 5 );
157
158 m_sdbSizer = new wxStdDialogButtonSizer();
159 m_sdbSizerOK = new wxButton( this, wxID_OK );
160 m_sdbSizer->AddButton( m_sdbSizerOK );
161 m_sdbSizerCancel = new wxButton( this, wxID_CANCEL );
162 m_sdbSizer->AddButton( m_sdbSizerCancel );
163 m_sdbSizer->Realize();
164
165 mainSizer->Add( m_sdbSizer, 0, wxALL|wxEXPAND, 5 );
166
167
168 this->SetSizer( mainSizer );
169 this->Layout();
170 mainSizer->Fit( this );
171
172 this->Centre( wxBOTH );
173}
174
176{
177}
A simple color swatch of the kind used to set layer colors.
Definition: color_swatch.h:57
Class DIALOG_LIB_SHAPE_PROPERTIES_BASE.
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...
Definition: dialog_shim.h:83
#define _(s)
@ FILLED_WITH_COLOR
@ FILLED_WITH_BG_BODYCOLOR
@ FILLED_SHAPE