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 3.10.1-0-g8feb16b)
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 m_helpLabel1 = new wxStaticText( this, wxID_ANY, _("Set diameter to 0 to use schematic's junction dot size."), wxDefaultPosition, wxDefaultSize, 0 );
62 m_helpLabel1->Wrap( 333 );
63 bSizer2->Add( m_helpLabel1, 0, wxRIGHT|wxLEFT, 10 );
64
65 m_helpLabel2 = new wxStaticText( this, wxID_ANY, _("Clear color to use Schematic Editor colors."), wxDefaultPosition, wxDefaultSize, 0 );
66 m_helpLabel2->Wrap( -1 );
67 bSizer2->Add( m_helpLabel2, 0, wxBOTTOM|wxRIGHT|wxLEFT, 10 );
68
69 m_sdbSizer = new wxStdDialogButtonSizer();
70 m_sdbSizerOK = new wxButton( this, wxID_OK );
71 m_sdbSizer->AddButton( m_sdbSizerOK );
72 m_sdbSizerApply = new wxButton( this, wxID_APPLY );
73 m_sdbSizer->AddButton( m_sdbSizerApply );
74 m_sdbSizerCancel = new wxButton( this, wxID_CANCEL );
75 m_sdbSizer->AddButton( m_sdbSizerCancel );
76 m_sdbSizer->Realize();
77
78 bSizer2->Add( m_sdbSizer, 0, wxBOTTOM|wxEXPAND|wxTOP, 5 );
79
80
81 this->SetSizer( bSizer2 );
82 this->Layout();
83 bSizer2->Fit( this );
84
85 this->Centre( wxBOTH );
86
87 // Connect Events
88 m_sdbSizerApply->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_JUNCTION_PROPS_BASE::resetDefaults ), NULL, this );
89}
90
92{
93 // Disconnect Events
94 m_sdbSizerApply->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_JUNCTION_PROPS_BASE::resetDefaults ), NULL, this );
95
96}
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:84
#define _(s)