KiCad PCB EDA Suite
Loading...
Searching...
No Matches
dialog_junction_props_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
14DIALOG_JUNCTION_PROPS_BASE::DIALOG_JUNCTION_PROPS_BASE( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : DIALOG_SHIM( parent, id, title, pos, size, style )
15{
16 this->SetSizeHints( wxDefaultSize, wxDefaultSize );
17
18 wxBoxSizer* bSizer2;
19 bSizer2 = new wxBoxSizer( wxVERTICAL );
20
21 wxFlexGridSizer* fgSizer2;
22 fgSizer2 = new wxFlexGridSizer( 0, 3, 5, 0 );
23 fgSizer2->AddGrowableCol( 1 );
24 fgSizer2->SetFlexibleDirection( wxBOTH );
25 fgSizer2->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
26
27 m_staticTextDiameter = new wxStaticText( this, wxID_ANY, _("Diameter:"), wxDefaultPosition, wxDefaultSize, 0 );
28 m_staticTextDiameter->Wrap( -1 );
29 fgSizer2->Add( m_staticTextDiameter, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
30
31 m_textCtrlDiameter = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
32 fgSizer2->Add( m_textCtrlDiameter, 0, wxEXPAND, 5 );
33
34 m_staticTextDiameterUnits = new wxStaticText( this, wxID_ANY, _("mils"), wxDefaultPosition, wxDefaultSize, 0 );
35 m_staticTextDiameterUnits->Wrap( -1 );
36 fgSizer2->Add( m_staticTextDiameterUnits, 0, wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT, 5 );
37
38 m_staticTextColor = new wxStaticText( this, wxID_ANY, _("Color:"), wxDefaultPosition, wxDefaultSize, 0 );
39 m_staticTextColor->Wrap( -1 );
40 fgSizer2->Add( m_staticTextColor, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
41
42 m_panel1 = new wxPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxBORDER_SIMPLE|wxTAB_TRAVERSAL );
43 wxBoxSizer* bSizer21;
44 bSizer21 = new wxBoxSizer( wxVERTICAL );
45
46 m_colorSwatch = new COLOR_SWATCH( m_panel1, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
47 bSizer21->Add( m_colorSwatch, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_CENTER_HORIZONTAL, 5 );
48
49
50 m_panel1->SetSizer( bSizer21 );
51 m_panel1->Layout();
52 bSizer21->Fit( m_panel1 );
53 fgSizer2->Add( m_panel1, 0, wxALIGN_CENTER_VERTICAL, 5 );
54
55
56 fgSizer2->Add( 0, 0, 1, wxEXPAND, 5 );
57
58
59 bSizer2->Add( fgSizer2, 1, wxALL|wxEXPAND, 10 );
60
61 wxBoxSizer* bMargins;
62 bMargins = new wxBoxSizer( wxVERTICAL );
63
64 m_helpLabel1 = new wxStaticText( this, wxID_ANY, _("Set diameter to 0 to use schematic's junction dot size."), wxDefaultPosition, wxDefaultSize, 0 );
65 m_helpLabel1->Wrap( 333 );
66 bMargins->Add( m_helpLabel1, 0, wxBOTTOM|wxRIGHT, 5 );
67
68 m_helpLabel2 = new wxStaticText( this, wxID_ANY, _("Clear color to use Schematic Editor colors."), wxDefaultPosition, wxDefaultSize, 0 );
69 m_helpLabel2->Wrap( -1 );
70 bMargins->Add( m_helpLabel2, 0, wxBOTTOM|wxRIGHT, 5 );
71
72
73 bSizer2->Add( bMargins, 0, wxEXPAND|wxRIGHT|wxLEFT, 10 );
74
75 m_sdbSizer = new wxStdDialogButtonSizer();
76 m_sdbSizerOK = new wxButton( this, wxID_OK );
77 m_sdbSizer->AddButton( m_sdbSizerOK );
78 m_sdbSizerApply = new wxButton( this, wxID_APPLY );
79 m_sdbSizer->AddButton( m_sdbSizerApply );
80 m_sdbSizerCancel = new wxButton( this, wxID_CANCEL );
81 m_sdbSizer->AddButton( m_sdbSizerCancel );
82 m_sdbSizer->Realize();
83
84 bSizer2->Add( m_sdbSizer, 0, wxBOTTOM|wxEXPAND|wxTOP, 5 );
85
86
87 this->SetSizer( bSizer2 );
88 this->Layout();
89 bSizer2->Fit( this );
90
91 this->Centre( wxBOTH );
92
93 // Connect Events
94 m_sdbSizerApply->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_JUNCTION_PROPS_BASE::resetDefaults ), NULL, this );
95}
96
98{
99 // Disconnect Events
100 m_sdbSizerApply->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_JUNCTION_PROPS_BASE::resetDefaults ), NULL, this );
101
102}
A simple color swatch of the kind used to set layer colors.
Definition: color_swatch.h:57
DIALOG_JUNCTION_PROPS_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Junction Properties"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
virtual void resetDefaults(wxCommandEvent &event)
wxStdDialogButtonSizer * m_sdbSizer
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...
Definition: dialog_shim.h:61
#define _(s)