KiCad PCB EDA Suite
dialog_new_dataitem_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 
12 DIALOG_NEW_DATAITEM_BASE::DIALOG_NEW_DATAITEM_BASE( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : DIALOG_SHIM( parent, id, title, pos, size, style )
13 {
14  this->SetSizeHints( wxDefaultSize, wxDefaultSize );
15 
16  wxBoxSizer* bSizerMain;
17  bSizerMain = new wxBoxSizer( wxVERTICAL );
18 
19  wxBoxSizer* bSizerUpper;
20  bSizerUpper = new wxBoxSizer( wxVERTICAL );
21 
22  wxBoxSizer* bSizerPos;
23  bSizerPos = new wxBoxSizer( wxHORIZONTAL );
24 
25  wxBoxSizer* bSizerPosXY;
26  bSizerPosXY = new wxBoxSizer( wxVERTICAL );
27 
28  m_staticTextPosX = new wxStaticText( this, wxID_ANY, _("Pos X (mm)"), wxDefaultPosition, wxDefaultSize, 0 );
29  m_staticTextPosX->Wrap( -1 );
30  bSizerPosXY->Add( m_staticTextPosX, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
31 
32  m_textCtrlPosX = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
33  bSizerPosXY->Add( m_textCtrlPosX, 0, wxBOTTOM|wxRIGHT|wxLEFT|wxEXPAND, 5 );
34 
35  m_staticTextPosY = new wxStaticText( this, wxID_ANY, _("Pos Y (mm)"), wxDefaultPosition, wxDefaultSize, 0 );
36  m_staticTextPosY->Wrap( -1 );
37  bSizerPosXY->Add( m_staticTextPosY, 0, wxRIGHT|wxLEFT, 5 );
38 
39  m_textCtrlPosY = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
40  bSizerPosXY->Add( m_textCtrlPosY, 0, wxBOTTOM|wxRIGHT|wxLEFT|wxEXPAND, 5 );
41 
42 
43  bSizerPos->Add( bSizerPosXY, 1, wxEXPAND, 5 );
44 
45  wxBoxSizer* bSizer6;
46  bSizer6 = new wxBoxSizer( wxVERTICAL );
47 
48  m_staticTextOrgPos = new wxStaticText( this, wxID_ANY, _("Origin"), wxDefaultPosition, wxDefaultSize, 0 );
49  m_staticTextOrgPos->Wrap( -1 );
50  bSizer6->Add( m_staticTextOrgPos, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
51 
52  wxString m_choiceCornerPosChoices[] = { _("Upper Right"), _("Upper Left"), _("Lower Right"), _("Lower Left") };
53  int m_choiceCornerPosNChoices = sizeof( m_choiceCornerPosChoices ) / sizeof( wxString );
54  m_choiceCornerPos = new wxChoice( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceCornerPosNChoices, m_choiceCornerPosChoices, 0 );
55  m_choiceCornerPos->SetSelection( 2 );
56  bSizer6->Add( m_choiceCornerPos, 0, wxBOTTOM|wxRIGHT|wxLEFT, 5 );
57 
58 
59  bSizerPos->Add( bSizer6, 0, wxALIGN_CENTER_VERTICAL, 5 );
60 
61 
62  bSizerUpper->Add( bSizerPos, 1, wxEXPAND, 5 );
63 
64  m_staticline2 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
65  bSizerUpper->Add( m_staticline2, 0, wxEXPAND | wxALL, 5 );
66 
67  m_SizerEndPosition = new wxBoxSizer( wxHORIZONTAL );
68 
69  wxBoxSizer* bSizerEndXY;
70  bSizerEndXY = new wxBoxSizer( wxVERTICAL );
71 
72  m_staticTextEndX = new wxStaticText( this, wxID_ANY, _("End X (mm)"), wxDefaultPosition, wxDefaultSize, 0 );
73  m_staticTextEndX->Wrap( -1 );
74  bSizerEndXY->Add( m_staticTextEndX, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
75 
76  m_textCtrlEndX = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
77  bSizerEndXY->Add( m_textCtrlEndX, 0, wxBOTTOM|wxRIGHT|wxLEFT|wxEXPAND, 5 );
78 
79  m_staticTextEndY = new wxStaticText( this, wxID_ANY, _("End Y (mm)"), wxDefaultPosition, wxDefaultSize, 0 );
80  m_staticTextEndY->Wrap( -1 );
81  bSizerEndXY->Add( m_staticTextEndY, 0, wxRIGHT|wxLEFT, 5 );
82 
83  m_textCtrlEndY = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
84  bSizerEndXY->Add( m_textCtrlEndY, 0, wxBOTTOM|wxRIGHT|wxLEFT|wxEXPAND, 5 );
85 
86 
87  m_SizerEndPosition->Add( bSizerEndXY, 1, 0, 5 );
88 
89  wxBoxSizer* bSizer61;
90  bSizer61 = new wxBoxSizer( wxVERTICAL );
91 
92  m_staticTextOrgPos1 = new wxStaticText( this, wxID_ANY, _("Origin"), wxDefaultPosition, wxDefaultSize, 0 );
93  m_staticTextOrgPos1->Wrap( -1 );
94  bSizer61->Add( m_staticTextOrgPos1, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
95 
96  wxString m_choiceCornerEndChoices[] = { _("Upper Right"), _("Upper Left"), _("Lower Right"), _("Lower Left") };
97  int m_choiceCornerEndNChoices = sizeof( m_choiceCornerEndChoices ) / sizeof( wxString );
98  m_choiceCornerEnd = new wxChoice( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceCornerEndNChoices, m_choiceCornerEndChoices, 0 );
99  m_choiceCornerEnd->SetSelection( 2 );
100  bSizer61->Add( m_choiceCornerEnd, 0, wxBOTTOM|wxRIGHT|wxLEFT, 5 );
101 
102 
103  m_SizerEndPosition->Add( bSizer61, 0, wxALIGN_CENTER_VERTICAL, 5 );
104 
105 
106  bSizerUpper->Add( m_SizerEndPosition, 1, wxEXPAND, 5 );
107 
108  m_staticlineEndXY = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
109  bSizerUpper->Add( m_staticlineEndXY, 0, wxEXPAND | wxALL, 5 );
110 
111  m_SizerText = new wxBoxSizer( wxVERTICAL );
112 
113  m_staticTextTitle = new wxStaticText( this, wxID_ANY, _("Text"), wxDefaultPosition, wxDefaultSize, 0 );
114  m_staticTextTitle->Wrap( -1 );
115  m_SizerText->Add( m_staticTextTitle, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
116 
117  m_textCtrlText = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_MULTILINE );
118  m_textCtrlText->SetMinSize( wxSize( 300,-1 ) );
119 
120  m_SizerText->Add( m_textCtrlText, 1, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
121 
122  m_staticline3 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
123  m_SizerText->Add( m_staticline3, 0, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
124 
125 
126  bSizerUpper->Add( m_SizerText, 1, wxEXPAND, 5 );
127 
128 
129  bSizerMain->Add( bSizerUpper, 1, wxEXPAND, 5 );
130 
131  m_sdbSizerButtons = new wxStdDialogButtonSizer();
132  m_sdbSizerButtonsOK = new wxButton( this, wxID_OK );
134  m_sdbSizerButtonsCancel = new wxButton( this, wxID_CANCEL );
136  m_sdbSizerButtons->Realize();
137 
138  bSizerMain->Add( m_sdbSizerButtons, 0, wxEXPAND, 5 );
139 
140 
141  this->SetSizer( bSizerMain );
142  this->Layout();
143 
144  this->Centre( wxBOTH );
145 
146  // Connect Events
147  m_sdbSizerButtonsCancel->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_NEW_DATAITEM_BASE::OnCancelClick ), NULL, this );
148  m_sdbSizerButtonsOK->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_NEW_DATAITEM_BASE::OnOKClick ), NULL, this );
149 }
150 
152 {
153  // Disconnect Events
154  m_sdbSizerButtonsCancel->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_NEW_DATAITEM_BASE::OnCancelClick ), NULL, this );
155  m_sdbSizerButtonsOK->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_NEW_DATAITEM_BASE::OnOKClick ), NULL, this );
156 
157 }
virtual void OnCancelClick(wxCommandEvent &event)
Class DIALOG_SHIM may sit in the inheritance tree between wxDialog and any class written by wxFormBui...
Definition: dialog_shim.h:60
virtual void OnOKClick(wxCommandEvent &event)
DIALOG_NEW_DATAITEM_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("New Item"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(328, 335), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
wxStdDialogButtonSizer * m_sdbSizerButtons