KiCad PCB EDA Suite
dialog_junction_props_base.cpp
Go to the documentation of this file.
1 // C++ code generated with wxFormBuilder (version Oct 26 2018)
3 // http://www.wxformbuilder.org/
4 //
5 // PLEASE DO *NOT* EDIT THIS FILE!
7 
8 #include "widgets/color_swatch.h"
9 
11 
13 
14 DIALOG_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 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, _("Set color to transparent 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_staticline2 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
70  bSizer2->Add( m_staticline2, 0, wxEXPAND | wxALL, 5 );
71 
72  m_sdbSizer = new wxStdDialogButtonSizer();
73  m_sdbSizerOK = new wxButton( this, wxID_OK );
74  m_sdbSizer->AddButton( m_sdbSizerOK );
75  m_sdbSizerApply = new wxButton( this, wxID_APPLY );
76  m_sdbSizer->AddButton( m_sdbSizerApply );
77  m_sdbSizerCancel = new wxButton( this, wxID_CANCEL );
78  m_sdbSizer->AddButton( m_sdbSizerCancel );
79  m_sdbSizer->Realize();
80 
81  bSizer2->Add( m_sdbSizer, 0, wxBOTTOM|wxEXPAND, 5 );
82 
83 
84  this->SetSizer( bSizer2 );
85  this->Layout();
86  bSizer2->Fit( this );
87 
88  this->Centre( wxBOTH );
89 
90  // Connect Events
91  m_sdbSizerApply->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_JUNCTION_PROPS_BASE::resetDefaults ), NULL, this );
92 }
93 
95 {
96  // Disconnect Events
97  m_sdbSizerApply->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_JUNCTION_PROPS_BASE::resetDefaults ), NULL, this );
98 
99 }
wxStdDialogButtonSizer * m_sdbSizer
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...
Definition: dialog_shim.h:82
#define NULL
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)
#define _(s)
A simple color swatch of the kind used to set layer colors.
Definition: color_swatch.h:56
virtual void resetDefaults(wxCommandEvent &event)