16DIALOG_SHEET_PIN_PROPERTIES_BASE::DIALOG_SHEET_PIN_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 )
18 this->SetSizeHints( wxSize( -1,-1 ), wxDefaultSize );
20 wxBoxSizer* m_mainSizer;
21 m_mainSizer =
new wxBoxSizer( wxVERTICAL );
23 wxBoxSizer* m_nameSizer;
24 m_nameSizer =
new wxBoxSizer( wxVERTICAL );
26 wxFlexGridSizer* fgSizer2;
27 fgSizer2 =
new wxFlexGridSizer( 2, 2, 4, 0 );
28 fgSizer2->AddGrowableCol( 1 );
29 fgSizer2->SetFlexibleDirection( wxBOTH );
30 fgSizer2->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
32 m_staticText1 =
new wxStaticText(
this, wxID_ANY,
_(
"Name:"), wxDefaultPosition, wxDefaultSize, 0 );
34 fgSizer2->Add(
m_staticText1, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxRIGHT|wxLEFT, 5 );
36 m_comboName =
new wxComboBox(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0, NULL, 0 );
37 fgSizer2->Add(
m_comboName, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND|wxRIGHT|wxTOP, 5 );
40 fgSizer2->Add( 0, 0, 1, wxEXPAND, 5 );
42 m_hyperlink1 =
new wxHyperlinkCtrl(
this, wxID_ANY,
_(
"Syntax help"), wxEmptyString, wxDefaultPosition, wxDefaultSize, wxHL_DEFAULT_STYLE );
45 fgSizer2->Add(
m_hyperlink1, 0, wxALIGN_RIGHT|wxRIGHT|wxLEFT, 7 );
48 m_nameSizer->Add( fgSizer2, 0, wxEXPAND, 5 );
50 wxBoxSizer* optionsSizer;
51 optionsSizer =
new wxBoxSizer( wxHORIZONTAL );
53 m_shapeSizer =
new wxStaticBoxSizer(
new wxStaticBox(
this, wxID_ANY,
_(
"Shape") ), wxVERTICAL );
55 m_input =
new wxRadioButton(
m_shapeSizer->GetStaticBox(), wxID_ANY,
_(
"Input"), wxDefaultPosition, wxDefaultSize, 0 );
58 m_output =
new wxRadioButton(
m_shapeSizer->GetStaticBox(), wxID_ANY,
_(
"Output"), wxDefaultPosition, wxDefaultSize, 0 );
64 m_triState =
new wxRadioButton(
m_shapeSizer->GetStaticBox(), wxID_ANY,
_(
"Tri-state"), wxDefaultPosition, wxDefaultSize, 0 );
67 m_passive =
new wxRadioButton(
m_shapeSizer->GetStaticBox(), wxID_ANY,
_(
"Passive"), wxDefaultPosition, wxDefaultSize, 0 );
71 optionsSizer->Add(
m_shapeSizer, 0, wxEXPAND|wxTOP|wxRIGHT, 5 );
73 wxStaticBoxSizer* formatting;
74 formatting =
new wxStaticBoxSizer(
new wxStaticBox(
this, wxID_ANY,
_(
"Formatting") ), wxVERTICAL );
76 wxGridBagSizer* gbSizer1;
77 gbSizer1 =
new wxGridBagSizer( 3, 0 );
78 gbSizer1->SetFlexibleDirection( wxBOTH );
79 gbSizer1->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
81 m_fontLabel =
new wxStaticText( formatting->GetStaticBox(), wxID_ANY,
_(
"Font:"), wxDefaultPosition, wxDefaultSize, 0 );
83 gbSizer1->Add(
m_fontLabel, wxGBPosition( 0, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT, 5 );
85 wxString m_fontCtrlChoices[] = {
_(
"Default Font"),
_(
"KiCad Font") };
86 int m_fontCtrlNChoices =
sizeof( m_fontCtrlChoices ) /
sizeof( wxString );
87 m_fontCtrl =
new FONT_CHOICE( formatting->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, m_fontCtrlNChoices, m_fontCtrlChoices, 0 );
89 gbSizer1->Add(
m_fontCtrl, wxGBPosition( 0, 1 ), wxGBSpan( 1, 2 ), wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
91 wxBoxSizer* formattingSizer;
92 formattingSizer =
new wxBoxSizer( wxHORIZONTAL );
94 m_separator1 =
new BITMAP_BUTTON( formatting->GetStaticBox(), wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW|wxBORDER_NONE );
97 formattingSizer->Add(
m_separator1, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
99 m_bold =
new BITMAP_BUTTON( formatting->GetStaticBox(), wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW|wxBORDER_NONE );
100 m_bold->SetToolTip(
_(
"Bold") );
102 formattingSizer->Add(
m_bold, 0, wxALIGN_CENTER_VERTICAL, 5 );
104 m_italic =
new BITMAP_BUTTON( formatting->GetStaticBox(), wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW|wxBORDER_NONE );
107 formattingSizer->Add(
m_italic, 0, wxALIGN_CENTER_VERTICAL, 5 );
109 m_separator2 =
new BITMAP_BUTTON( formatting->GetStaticBox(), wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW|wxBORDER_NONE );
112 formattingSizer->Add(
m_separator2, 0, wxALIGN_CENTER_VERTICAL, 5 );
115 gbSizer1->Add( formattingSizer, wxGBPosition( 0, 3 ), wxGBSpan( 1, 1 ), wxEXPAND|wxRIGHT|wxLEFT, 5 );
117 m_textSizeLabel =
new wxStaticText( formatting->GetStaticBox(), wxID_ANY,
_(
"Text size:"), wxDefaultPosition, wxDefaultSize, 0 );
119 gbSizer1->Add(
m_textSizeLabel, wxGBPosition( 1, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT, 5 );
121 wxBoxSizer* bSizer71;
122 bSizer71 =
new wxBoxSizer( wxHORIZONTAL );
124 m_textSizeCtrl =
new wxTextCtrl( formatting->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( -1,-1 ), 0 );
127 m_textSizeUnits =
new wxStaticText( formatting->GetStaticBox(), wxID_ANY,
_(
"mm"), wxDefaultPosition, wxDefaultSize, 0 );
129 bSizer71->Add(
m_textSizeUnits, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 3 );
131 m_textColorLabel =
new wxStaticText( formatting->GetStaticBox(), wxID_ANY,
_(
"Color:"), wxDefaultPosition, wxDefaultSize, 0 );
136 bSizer71->Add( 5, 0, 0, 0, 5 );
138 m_panelBorderColor1 =
new wxPanel( formatting->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, wxBORDER_SIMPLE|wxTAB_TRAVERSAL );
139 wxBoxSizer* bSizer22;
140 bSizer22 =
new wxBoxSizer( wxVERTICAL );
143 bSizer22->Add(
m_textColorSwatch, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_CENTER_HORIZONTAL, 5 );
152 gbSizer1->Add( bSizer71, wxGBPosition( 1, 1 ), wxGBSpan( 1, 1 ), wxEXPAND, 5 );
155 formatting->Add( gbSizer1, 1, wxEXPAND, 5 );
158 optionsSizer->Add( formatting, 1, wxEXPAND|wxTOP, 5 );
161 m_nameSizer->Add( optionsSizer, 1, wxEXPAND, 5 );
164 m_mainSizer->Add( m_nameSizer, 1, wxALL|wxEXPAND, 10 );
173 m_mainSizer->Add(
m_sdbSizer, 0, wxALL|wxEXPAND, 6 );
176 this->SetSizer( m_mainSizer );
178 m_mainSizer->Fit(
this );
180 this->Centre( wxBOTH );
A simple color swatch of the kind used to set layer colors.
virtual void OnSyntaxHelp(wxHyperlinkEvent &event)
wxButton * m_sdbSizerCancel
wxRadioButton * m_passive
virtual void onOKButton(wxCommandEvent &event)
~DIALOG_SHEET_PIN_PROPERTIES_BASE()
BITMAP_BUTTON * m_separator1
DIALOG_SHEET_PIN_PROPERTIES_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Sheet Pin Properties"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
COLOR_SWATCH * m_textColorSwatch
BITMAP_BUTTON * m_separator2
wxPanel * m_panelBorderColor1
wxHyperlinkCtrl * m_hyperlink1
wxStdDialogButtonSizer * m_sdbSizer
wxStaticText * m_textSizeLabel
wxStaticText * m_textSizeUnits
wxRadioButton * m_triState
wxStaticText * m_textColorLabel
wxStaticBoxSizer * m_shapeSizer
wxStaticText * m_fontLabel
virtual void onComboBox(wxCommandEvent &event)
wxTextCtrl * m_textSizeCtrl
wxRadioButton * m_bidirectional
wxStaticText * m_staticText1
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...