KiCad PCB EDA Suite
Loading...
Searching...
No Matches
dialog_unit_entry_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
12WX_UNIT_ENTRY_DIALOG_BASE::WX_UNIT_ENTRY_DIALOG_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 bSizerMain = new wxBoxSizer( wxVERTICAL );
17
18 wxBoxSizer* bSizerContent;
19 bSizerContent = new wxBoxSizer( wxHORIZONTAL );
20
21 m_label = new wxStaticText( this, wxID_ANY, _("MyLabel"), wxDefaultPosition, wxDefaultSize, 0 );
22 m_label->Wrap( -1 );
23 bSizerContent->Add( m_label, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM|wxLEFT, 5 );
24
25 m_textCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
26 bSizerContent->Add( m_textCtrl, 1, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
27
28 m_unit_label = new wxStaticText( this, wxID_ANY, _("unit"), wxDefaultPosition, wxDefaultSize, 0 );
29 m_unit_label->Wrap( -1 );
30 bSizerContent->Add( m_unit_label, 0, wxTOP|wxBOTTOM|wxRIGHT|wxALIGN_CENTER_VERTICAL, 5 );
31
32
33 bSizerMain->Add( bSizerContent, 1, wxEXPAND|wxRIGHT|wxLEFT, 5 );
34
35 wxBoxSizer* bSizerButtons;
36 bSizerButtons = new wxBoxSizer( wxHORIZONTAL );
37
38
39 bSizerButtons->Add( 100, 0, 1, 0, 5 );
40
41 m_sdbSizer1 = new wxStdDialogButtonSizer();
42 m_sdbSizer1OK = new wxButton( this, wxID_OK );
43 m_sdbSizer1->AddButton( m_sdbSizer1OK );
44 m_sdbSizer1Cancel = new wxButton( this, wxID_CANCEL );
45 m_sdbSizer1->AddButton( m_sdbSizer1Cancel );
46 m_sdbSizer1->Realize();
47
48 bSizerButtons->Add( m_sdbSizer1, 0, wxALL, 5 );
49
50
51 bSizerMain->Add( bSizerButtons, 1, wxEXPAND, 5 );
52
53
54 this->SetSizer( bSizerMain );
55 this->Layout();
56 bSizerMain->Fit( this );
57
58 this->Centre( wxBOTH );
59}
60
62{
63}
64
65WX_PT_ENTRY_DIALOG_BASE::WX_PT_ENTRY_DIALOG_BASE( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : DIALOG_SHIM( parent, id, title, pos, size, style )
66{
67 this->SetSizeHints( wxDefaultSize, wxDefaultSize );
68
69 bSizerMain = new wxBoxSizer( wxVERTICAL );
70
71 wxFlexGridSizer* fgSizer;
72 fgSizer = new wxFlexGridSizer( 0, 3, 5, 0 );
73 fgSizer->AddGrowableCol( 1 );
74 fgSizer->SetFlexibleDirection( wxBOTH );
75 fgSizer->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
76
77 m_labelX = new wxStaticText( this, wxID_ANY, _("X label:"), wxDefaultPosition, wxDefaultSize, 0 );
78 m_labelX->Wrap( -1 );
79 fgSizer->Add( m_labelX, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
80
81 m_textCtrlX = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
82 fgSizer->Add( m_textCtrlX, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT|wxEXPAND, 5 );
83
84 m_unitsX = new wxStaticText( this, wxID_ANY, _("unit"), wxDefaultPosition, wxDefaultSize, 0 );
85 m_unitsX->Wrap( -1 );
86 fgSizer->Add( m_unitsX, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
87
88 m_labelY = new wxStaticText( this, wxID_ANY, _("Y label:"), wxDefaultPosition, wxDefaultSize, 0 );
89 m_labelY->Wrap( -1 );
90 fgSizer->Add( m_labelY, 0, wxALIGN_CENTER_VERTICAL|wxLEFT, 5 );
91
92 m_textCtrlY = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
93 fgSizer->Add( m_textCtrlY, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT|wxEXPAND, 5 );
94
95 m_unitsY = new wxStaticText( this, wxID_ANY, _("unit"), wxDefaultPosition, wxDefaultSize, 0 );
96 m_unitsY->Wrap( -1 );
97 fgSizer->Add( m_unitsY, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
98
99
100 bSizerMain->Add( fgSizer, 1, wxEXPAND|wxALL, 5 );
101
102 wxBoxSizer* bSizerButtons;
103 bSizerButtons = new wxBoxSizer( wxHORIZONTAL );
104
105
106 bSizerButtons->Add( 100, 0, 1, wxALIGN_CENTER_VERTICAL, 5 );
107
108 m_sdbSizer1 = new wxStdDialogButtonSizer();
109 m_sdbSizer1OK = new wxButton( this, wxID_OK );
110 m_sdbSizer1->AddButton( m_sdbSizer1OK );
111 m_sdbSizer1Cancel = new wxButton( this, wxID_CANCEL );
112 m_sdbSizer1->AddButton( m_sdbSizer1Cancel );
113 m_sdbSizer1->Realize();
114
115 bSizerButtons->Add( m_sdbSizer1, 0, wxALL, 5 );
116
117
118 bSizerMain->Add( bSizerButtons, 0, wxEXPAND, 5 );
119
120
121 this->SetSizer( bSizerMain );
122 this->Layout();
123 bSizerMain->Fit( this );
124
125 this->Centre( wxBOTH );
126}
127
129{
130}
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...
Definition: dialog_shim.h:88
wxBoxSizer * bSizerMain
wxStaticText * m_unitsY
WX_PT_ENTRY_DIALOG_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Move Point to Location"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
~WX_PT_ENTRY_DIALOG_BASE()
wxStaticText * m_labelX
wxStaticText * m_labelY
wxStaticText * m_unitsX
wxButton * m_sdbSizer1Cancel
wxStdDialogButtonSizer * m_sdbSizer1
wxTextCtrl * m_textCtrlY
wxTextCtrl * m_textCtrlX
wxButton * m_sdbSizer1OK
~WX_UNIT_ENTRY_DIALOG_BASE()
wxStaticText * m_unit_label
wxBoxSizer * bSizerMain
WX_UNIT_ENTRY_DIALOG_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Title"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
wxStaticText * m_label
wxButton * m_sdbSizer1OK
wxButton * m_sdbSizer1Cancel
wxTextCtrl * m_textCtrl
wxStdDialogButtonSizer * m_sdbSizer1
#define _(s)