KiCad PCB EDA Suite
dialog_unit_entry_base.cpp
Go to the documentation of this file.
1
2// C++ code generated with wxFormBuilder (version Oct 26 2018)
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 wxBoxSizer* bSizerMain;
17 bSizerMain = new wxBoxSizer( wxVERTICAL );
18
19 wxBoxSizer* bSizerContent;
20 bSizerContent = new wxBoxSizer( wxVERTICAL );
21
22 m_label = new wxStaticText( this, wxID_ANY, _("MyLabel"), wxDefaultPosition, wxDefaultSize, 0 );
23 m_label->Wrap( -1 );
24 bSizerContent->Add( m_label, 0, wxALL|wxEXPAND, 5 );
25
26 wxBoxSizer* bSizerTextAndUnit;
27 bSizerTextAndUnit = new wxBoxSizer( wxHORIZONTAL );
28
29 m_textCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
30 m_textCtrl->SetMinSize( wxSize( 300,-1 ) );
31
32 bSizerTextAndUnit->Add( m_textCtrl, 0, wxBOTTOM|wxRIGHT|wxLEFT|wxEXPAND, 5 );
33
34 m_unit_label = new wxStaticText( this, wxID_ANY, _("unit"), wxDefaultPosition, wxDefaultSize, 0 );
35 m_unit_label->Wrap( -1 );
36 bSizerTextAndUnit->Add( m_unit_label, 0, wxALL, 5 );
37
38
39 bSizerContent->Add( bSizerTextAndUnit, 1, wxEXPAND, 5 );
40
41
42 bSizerMain->Add( bSizerContent, 1, wxALL|wxEXPAND, 5 );
43
44 m_sdbSizer1 = new wxStdDialogButtonSizer();
45 m_sdbSizer1OK = new wxButton( this, wxID_OK );
46 m_sdbSizer1->AddButton( m_sdbSizer1OK );
47 m_sdbSizer1Cancel = new wxButton( this, wxID_CANCEL );
48 m_sdbSizer1->AddButton( m_sdbSizer1Cancel );
49 m_sdbSizer1->Realize();
50
51 bSizerMain->Add( m_sdbSizer1, 0, wxALL|wxALIGN_RIGHT, 5 );
52
53
54 this->SetSizer( bSizerMain );
55 this->Layout();
56 bSizerMain->Fit( this );
57
58 this->Centre( wxBOTH );
59}
60
62{
63}
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...
Definition: dialog_shim.h:83
~WX_UNIT_ENTRY_DIALOG_BASE()
wxStaticText * m_unit_label
WX_UNIT_ENTRY_DIALOG_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=wxEmptyString, 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)