KiCad PCB EDA Suite
dialog_dimension_editor_base.cpp
Go to the documentation of this file.
1 // C++ code generated with wxFormBuilder (version May 6 2016)
3 // http://www.wxformbuilder.org/
4 //
5 // PLEASE DO "NOT" EDIT THIS FILE!
7 
9 
11 
13 
14 DIALOG_DIMENSION_EDITOR_BASE::DIALOG_DIMENSION_EDITOR_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* bSizerMain;
19  bSizerMain = new wxBoxSizer( wxVERTICAL );
20 
21  m_staticTextDim = new wxStaticText( this, wxID_ANY, _("Text"), wxDefaultPosition, wxDefaultSize, 0 );
22  m_staticTextDim->Wrap( -1 );
23  bSizerMain->Add( m_staticTextDim, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
24 
25  m_Name = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
26  m_Name->SetMinSize( wxSize( 400,-1 ) );
27 
28  bSizerMain->Add( m_Name, 0, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
29 
30  wxBoxSizer* bSizerUpper;
31  bSizerUpper = new wxBoxSizer( wxHORIZONTAL );
32 
33  wxBoxSizer* bSizerLeft;
34  bSizerLeft = new wxBoxSizer( wxVERTICAL );
35 
36  m_staticTextSizeX = new wxStaticText( this, wxID_ANY, _("Text Width"), wxDefaultPosition, wxDefaultSize, 0 );
37  m_staticTextSizeX->Wrap( -1 );
38  bSizerLeft->Add( m_staticTextSizeX, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
39 
40  m_TxtSizeXCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
41  bSizerLeft->Add( m_TxtSizeXCtrl, 0, wxBOTTOM|wxRIGHT|wxLEFT|wxEXPAND, 5 );
42 
43  m_staticTextSizeY = new wxStaticText( this, wxID_ANY, _("Text Height"), wxDefaultPosition, wxDefaultSize, 0 );
44  m_staticTextSizeY->Wrap( -1 );
45  bSizerLeft->Add( m_staticTextSizeY, 0, wxRIGHT|wxLEFT, 5 );
46 
47  m_TxtSizeYCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
48  bSizerLeft->Add( m_TxtSizeYCtrl, 0, wxBOTTOM|wxRIGHT|wxLEFT|wxEXPAND, 5 );
49 
50  m_staticTextWidth = new wxStaticText( this, wxID_ANY, _("Text Thickness"), wxDefaultPosition, wxDefaultSize, 0 );
51  m_staticTextWidth->Wrap( -1 );
52  bSizerLeft->Add( m_staticTextWidth, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
53 
54  m_TxtWidthCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
55  bSizerLeft->Add( m_TxtWidthCtrl, 0, wxBOTTOM|wxRIGHT|wxLEFT|wxEXPAND, 5 );
56 
57  m_staticTextPosX = new wxStaticText( this, wxID_ANY, _("Text Position X"), wxDefaultPosition, wxDefaultSize, 0 );
58  m_staticTextPosX->Wrap( -1 );
59  bSizerLeft->Add( m_staticTextPosX, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
60 
61  m_textCtrlPosX = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
62  bSizerLeft->Add( m_textCtrlPosX, 0, wxBOTTOM|wxRIGHT|wxLEFT|wxEXPAND, 5 );
63 
64  m_staticTextPosY = new wxStaticText( this, wxID_ANY, _("Text Position Y"), wxDefaultPosition, wxDefaultSize, 0 );
65  m_staticTextPosY->Wrap( -1 );
66  bSizerLeft->Add( m_staticTextPosY, 0, wxRIGHT|wxLEFT, 5 );
67 
68  m_textCtrlPosY = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
69  bSizerLeft->Add( m_textCtrlPosY, 0, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
70 
71 
72  bSizerUpper->Add( bSizerLeft, 1, wxEXPAND, 5 );
73 
74  wxBoxSizer* bSizerRight;
75  bSizerRight = new wxBoxSizer( wxVERTICAL );
76 
77  wxString m_rbMirrorChoices[] = { _("Normal"), _("Mirror") };
78  int m_rbMirrorNChoices = sizeof( m_rbMirrorChoices ) / sizeof( wxString );
79  m_rbMirror = new wxRadioBox( this, wxID_ANY, _("Display"), wxDefaultPosition, wxDefaultSize, m_rbMirrorNChoices, m_rbMirrorChoices, 1, wxRA_SPECIFY_COLS );
80  m_rbMirror->SetSelection( 0 );
81  bSizerRight->Add( m_rbMirror, 0, wxALL|wxEXPAND, 5 );
82 
83  m_staticTextLayer = new wxStaticText( this, wxID_ANY, _("Layer"), wxDefaultPosition, wxDefaultSize, 0 );
84  m_staticTextLayer->Wrap( -1 );
85  bSizerRight->Add( m_staticTextLayer, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
86 
87  m_SelLayerBox = new PCB_LAYER_BOX_SELECTOR( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0, NULL, 0 );
88  bSizerRight->Add( m_SelLayerBox, 0, wxBOTTOM|wxRIGHT|wxLEFT, 5 );
89 
90 
91  bSizerUpper->Add( bSizerRight, 0, wxALIGN_CENTER_VERTICAL, 5 );
92 
93 
94  bSizerMain->Add( bSizerUpper, 1, wxEXPAND, 5 );
95 
96  m_staticline1 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
97  bSizerMain->Add( m_staticline1, 0, wxEXPAND|wxLEFT|wxRIGHT|wxTOP, 5 );
98 
99  m_sdbSizerBts = new wxStdDialogButtonSizer();
100  m_sdbSizerBtsOK = new wxButton( this, wxID_OK );
101  m_sdbSizerBts->AddButton( m_sdbSizerBtsOK );
102  m_sdbSizerBtsCancel = new wxButton( this, wxID_CANCEL );
103  m_sdbSizerBts->AddButton( m_sdbSizerBtsCancel );
104  m_sdbSizerBts->Realize();
105 
106  bSizerMain->Add( m_sdbSizerBts, 0, wxALL|wxEXPAND, 5 );
107 
108 
109  this->SetSizer( bSizerMain );
110  this->Layout();
111  bSizerMain->Fit( this );
112 
113  this->Centre( wxBOTH );
114 
115  // Connect Events
116  m_sdbSizerBtsOK->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_DIMENSION_EDITOR_BASE::OnOKClick ), NULL, this );
117 }
118 
120 {
121  // Disconnect Events
122  m_sdbSizerBtsOK->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_DIMENSION_EDITOR_BASE::OnOKClick ), NULL, this );
123 
124 }
Class to display a pcb layer list in a wxBitmapComboBox.
Class DIALOG_SHIM may sit in the inheritance tree between wxDialog and any class written by wxFormBui...
Definition: dialog_shim.h:60
DIALOG_DIMENSION_EDITOR_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Dimension Properties"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
virtual void OnOKClick(wxCommandEvent &event)