KiCad PCB EDA Suite
Loading...
Searching...
No Matches
dialog_target_properties_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_TARGET_PROPERTIES_BASE::DIALOG_TARGET_PROPERTIES_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 wxFlexGridSizer* fgSizer;
23 fgSizer = new wxFlexGridSizer( 0, 3, 0, 0 );
24 fgSizer->AddGrowableCol( 1 );
25 fgSizer->SetFlexibleDirection( wxBOTH );
26 fgSizer->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
27
28 m_sizeLabel = new wxStaticText( this, wxID_ANY, _("Size:"), wxDefaultPosition, wxDefaultSize, 0 );
29 m_sizeLabel->Wrap( -1 );
30 fgSizer->Add( m_sizeLabel, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
31
32 m_sizeCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
33 fgSizer->Add( m_sizeCtrl, 0, wxALL|wxEXPAND, 5 );
34
35 m_sizeUnits = new wxStaticText( this, wxID_ANY, _("unit"), wxDefaultPosition, wxDefaultSize, 0 );
36 m_sizeUnits->Wrap( -1 );
37 fgSizer->Add( m_sizeUnits, 0, wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM|wxRIGHT, 5 );
38
39 m_thicknessLabel = new wxStaticText( this, wxID_ANY, _("Thickness:"), wxDefaultPosition, wxDefaultSize, 0 );
40 m_thicknessLabel->Wrap( -1 );
41 fgSizer->Add( m_thicknessLabel, 0, wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
42
43 m_thicknessCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
44 fgSizer->Add( m_thicknessCtrl, 0, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
45
46 m_thicknessUnits = new wxStaticText( this, wxID_ANY, _("unit"), wxDefaultPosition, wxDefaultSize, 0 );
47 m_thicknessUnits->Wrap( -1 );
48 fgSizer->Add( m_thicknessUnits, 0, wxALIGN_CENTER_VERTICAL|wxBOTTOM|wxRIGHT, 5 );
49
50 m_staticTextShape = new wxStaticText( this, wxID_ANY, _("Shape:"), wxDefaultPosition, wxDefaultSize, 0 );
51 m_staticTextShape->Wrap( -1 );
52 fgSizer->Add( m_staticTextShape, 0, wxTOP|wxBOTTOM|wxLEFT|wxALIGN_CENTER_VERTICAL, 5 );
53
54 wxString m_TargetShapeChoices[] = { _("+"), _("X") };
55 int m_TargetShapeNChoices = sizeof( m_TargetShapeChoices ) / sizeof( wxString );
56 m_TargetShape = new wxChoice( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_TargetShapeNChoices, m_TargetShapeChoices, 0 );
57 m_TargetShape->SetSelection( 0 );
58 fgSizer->Add( m_TargetShape, 0, wxALL|wxEXPAND, 5 );
59
60
61 fgSizer->Add( 0, 0, 1, wxEXPAND, 5 );
62
63
64 bSizerUpper->Add( fgSizer, 1, wxBOTTOM|wxEXPAND, 5 );
65
66
67 bSizerMain->Add( bSizerUpper, 1, wxALL|wxEXPAND, 5 );
68
69 m_sdbSizerButts = new wxStdDialogButtonSizer();
70 m_sdbSizerButtsOK = new wxButton( this, wxID_OK );
72 m_sdbSizerButtsCancel = new wxButton( this, wxID_CANCEL );
74 m_sdbSizerButts->Realize();
75
76 bSizerMain->Add( m_sdbSizerButts, 0, wxBOTTOM|wxEXPAND|wxTOP, 5 );
77
78
79 this->SetSizer( bSizerMain );
80 this->Layout();
81 bSizerMain->Fit( this );
82
83 this->Centre( wxBOTH );
84}
85
87{
88}
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...
Definition: dialog_shim.h:88
DIALOG_TARGET_PROPERTIES_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Target Properties"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
#define _(s)