KiCad PCB EDA Suite
Loading...
Searching...
No Matches
dialog_new_dataitem_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
12DIALOG_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 wxFlexGridSizer* bSizerPosXY;
26 bSizerPosXY = new wxFlexGridSizer( 0, 2, 0, 0 );
27 bSizerPosXY->SetFlexibleDirection( wxBOTH );
28 bSizerPosXY->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
29
30 m_staticTextPosY = new wxStaticText( this, wxID_ANY, _("Y start:"), wxDefaultPosition, wxDefaultSize, 0 );
31 m_staticTextPosY->Wrap( -1 );
32 bSizerPosXY->Add( m_staticTextPosY, 0, wxRIGHT|wxLEFT, 5 );
33
34
35 bSizerPosXY->Add( 0, 0, 0, 0, 5 );
36
37 m_textCtrlPosY = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
38 bSizerPosXY->Add( m_textCtrlPosY, 1, wxBOTTOM|wxRIGHT|wxLEFT|wxEXPAND, 5 );
39
40 m_units1 = new wxStaticText( this, wxID_ANY, _("mm"), wxDefaultPosition, wxDefaultSize, 0 );
41 m_units1->Wrap( -1 );
42 bSizerPosXY->Add( m_units1, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_LEFT, 1 );
43
44 m_staticTextPosX = new wxStaticText( this, wxID_ANY, _("X start:"), wxDefaultPosition, wxDefaultSize, 0 );
45 m_staticTextPosX->Wrap( -1 );
46 bSizerPosXY->Add( m_staticTextPosX, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
47
48
49 bSizerPosXY->Add( 0, 0, 0, 0, 0 );
50
51 m_textCtrlPosX = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
52 bSizerPosXY->Add( m_textCtrlPosX, 1, wxBOTTOM|wxRIGHT|wxLEFT|wxEXPAND, 5 );
53
54 m_units11 = new wxStaticText( this, wxID_ANY, _("mm"), wxDefaultPosition, wxDefaultSize, 0 );
55 m_units11->Wrap( -1 );
56 bSizerPosXY->Add( m_units11, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_LEFT, 1 );
57
58
59 bSizerPos->Add( bSizerPosXY, 1, wxEXPAND, 5 );
60
61 wxBoxSizer* bSizer6;
62 bSizer6 = new wxBoxSizer( wxVERTICAL );
63
64 m_staticTextOrgPos = new wxStaticText( this, wxID_ANY, _("Origin"), wxDefaultPosition, wxDefaultSize, 0 );
65 m_staticTextOrgPos->Wrap( -1 );
66 bSizer6->Add( m_staticTextOrgPos, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
67
68 wxString m_choiceCornerPosChoices[] = { _("Upper Right"), _("Upper Left"), _("Lower Right"), _("Lower Left") };
69 int m_choiceCornerPosNChoices = sizeof( m_choiceCornerPosChoices ) / sizeof( wxString );
70 m_choiceCornerPos = new wxChoice( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceCornerPosNChoices, m_choiceCornerPosChoices, 0 );
71 m_choiceCornerPos->SetSelection( 2 );
72 bSizer6->Add( m_choiceCornerPos, 0, wxBOTTOM|wxRIGHT|wxLEFT, 5 );
73
74
75 bSizerPos->Add( bSizer6, 0, wxALIGN_CENTER_VERTICAL, 5 );
76
77
78 bSizerUpper->Add( bSizerPos, 1, wxEXPAND, 5 );
79
80 m_staticline2 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
81 bSizerUpper->Add( m_staticline2, 0, wxEXPAND | wxALL, 5 );
82
83 m_SizerEndPosition = new wxBoxSizer( wxHORIZONTAL );
84
85 wxFlexGridSizer* fgSizer3;
86 fgSizer3 = new wxFlexGridSizer( 0, 2, 0, 0 );
87 fgSizer3->SetFlexibleDirection( wxBOTH );
88 fgSizer3->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
89
90 m_staticTextEndX = new wxStaticText( this, wxID_ANY, _("X end:"), wxDefaultPosition, wxDefaultSize, 0 );
91 m_staticTextEndX->Wrap( -1 );
92 fgSizer3->Add( m_staticTextEndX, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
93
94
95 fgSizer3->Add( 0, 0, 1, wxEXPAND, 5 );
96
97 m_textCtrlEndX = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
98 fgSizer3->Add( m_textCtrlEndX, 0, wxBOTTOM|wxRIGHT|wxLEFT|wxEXPAND, 5 );
99
100 m_units3 = new wxStaticText( this, wxID_ANY, _("mm"), wxDefaultPosition, wxDefaultSize, 0 );
101 m_units3->Wrap( -1 );
102 fgSizer3->Add( m_units3, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_LEFT, 5 );
103
104 m_staticTextEndY = new wxStaticText( this, wxID_ANY, _("Y end:"), wxDefaultPosition, wxDefaultSize, 0 );
105 m_staticTextEndY->Wrap( -1 );
106 fgSizer3->Add( m_staticTextEndY, 0, wxRIGHT|wxLEFT, 5 );
107
108
109 fgSizer3->Add( 0, 0, 1, wxEXPAND, 5 );
110
111 m_textCtrlEndY = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
112 fgSizer3->Add( m_textCtrlEndY, 0, wxBOTTOM|wxRIGHT|wxLEFT|wxEXPAND, 5 );
113
114 m_units4 = new wxStaticText( this, wxID_ANY, _("mm"), wxDefaultPosition, wxDefaultSize, 0 );
115 m_units4->Wrap( -1 );
116 fgSizer3->Add( m_units4, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_LEFT, 5 );
117
118
119 m_SizerEndPosition->Add( fgSizer3, 1, wxEXPAND, 5 );
120
121 wxBoxSizer* bSizer61;
122 bSizer61 = new wxBoxSizer( wxVERTICAL );
123
124 m_staticTextOrgPos1 = new wxStaticText( this, wxID_ANY, _("Origin"), wxDefaultPosition, wxDefaultSize, 0 );
125 m_staticTextOrgPos1->Wrap( -1 );
126 bSizer61->Add( m_staticTextOrgPos1, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
127
128 wxString m_choiceCornerEndChoices[] = { _("Upper Right"), _("Upper Left"), _("Lower Right"), _("Lower Left") };
129 int m_choiceCornerEndNChoices = sizeof( m_choiceCornerEndChoices ) / sizeof( wxString );
130 m_choiceCornerEnd = new wxChoice( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceCornerEndNChoices, m_choiceCornerEndChoices, 0 );
131 m_choiceCornerEnd->SetSelection( 2 );
132 bSizer61->Add( m_choiceCornerEnd, 0, wxBOTTOM|wxRIGHT|wxLEFT, 5 );
133
134
135 m_SizerEndPosition->Add( bSizer61, 0, wxALIGN_CENTER_VERTICAL, 5 );
136
137
138 bSizerUpper->Add( m_SizerEndPosition, 1, wxEXPAND, 5 );
139
140 m_SizerText = new wxBoxSizer( wxVERTICAL );
141
142 m_staticTextTitle = new wxStaticText( this, wxID_ANY, _("Text"), wxDefaultPosition, wxDefaultSize, 0 );
143 m_staticTextTitle->Wrap( -1 );
144 m_SizerText->Add( m_staticTextTitle, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
145
146 m_textCtrlText = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_MULTILINE );
147 m_textCtrlText->SetMinSize( wxSize( 300,-1 ) );
148
149 m_SizerText->Add( m_textCtrlText, 1, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
150
151
152 bSizerUpper->Add( m_SizerText, 1, wxEXPAND, 5 );
153
154
155 bSizerMain->Add( bSizerUpper, 1, wxEXPAND, 5 );
156
157 m_sdbSizerButtons = new wxStdDialogButtonSizer();
158 m_sdbSizerButtonsOK = new wxButton( this, wxID_OK );
160 m_sdbSizerButtonsCancel = new wxButton( this, wxID_CANCEL );
162 m_sdbSizerButtons->Realize();
163
164 bSizerMain->Add( m_sdbSizerButtons, 0, wxEXPAND|wxALL, 5 );
165
166
167 this->SetSizer( bSizerMain );
168 this->Layout();
169 bSizerMain->Fit( this );
170
171 this->Centre( wxBOTH );
172
173 // Connect Events
174 m_sdbSizerButtonsOK->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_NEW_DATAITEM_BASE::OnOKClick ), NULL, this );
175}
176
178{
179 // Disconnect Events
180 m_sdbSizerButtonsOK->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_NEW_DATAITEM_BASE::OnOKClick ), NULL, this );
181
182}
wxStdDialogButtonSizer * m_sdbSizerButtons
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(-1,-1), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...
Definition: dialog_shim.h:88
#define _(s)