KiCad PCB EDA Suite
Loading...
Searching...
No Matches
dialog_grid_settings_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_GRID_SETTINGS_BASE::DIALOG_GRID_SETTINGS_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* bMainSizer;
17 bMainSizer = new wxBoxSizer( wxVERTICAL );
18
19 wxFlexGridSizer* m_fgGrid;
20 m_fgGrid = new wxFlexGridSizer( 0, 3, 0, 0 );
21 m_fgGrid->AddGrowableCol( 1 );
22 m_fgGrid->SetFlexibleDirection( wxBOTH );
23 m_fgGrid->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
24
25 m_staticTextName = new wxStaticText( this, wxID_ANY, _("Name:"), wxDefaultPosition, wxDefaultSize, 0 );
26 m_staticTextName->Wrap( -1 );
27 m_fgGrid->Add( m_staticTextName, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_RIGHT|wxALL, 5 );
28
29 m_textName = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
30 m_fgGrid->Add( m_textName, 1, wxALL|wxEXPAND, 5 );
31
32 m_staticTextOptional = new wxStaticText( this, wxID_ANY, _("(optional)"), wxDefaultPosition, wxDefaultSize, 0 );
33 m_staticTextOptional->Wrap( -1 );
34 m_fgGrid->Add( m_staticTextOptional, 0, wxALIGN_CENTER_VERTICAL|wxALL|wxLEFT, 5 );
35
36 m_staticTextX = new wxStaticText( this, wxID_ANY, _("X:"), wxDefaultPosition, wxDefaultSize, 0 );
37 m_staticTextX->Wrap( -1 );
38 m_fgGrid->Add( m_staticTextX, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_RIGHT|wxALL, 5 );
39
40 m_textX = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
41 m_fgGrid->Add( m_textX, 1, wxALL|wxEXPAND, 5 );
42
43 m_staticTextXUnits = new wxStaticText( this, wxID_ANY, _("unit"), wxDefaultPosition, wxDefaultSize, 0 );
44 m_staticTextXUnits->Wrap( -1 );
45 m_fgGrid->Add( m_staticTextXUnits, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_LEFT|wxALL, 5 );
46
47
48 m_fgGrid->Add( 0, 0, 0, wxEXPAND, 5 );
49
50 m_checkLinked = new wxCheckBox( this, wxID_ANY, _("Linked"), wxDefaultPosition, wxDefaultSize, 0 );
51 m_checkLinked->SetValue(true);
52 m_fgGrid->Add( m_checkLinked, 1, wxALL|wxEXPAND, 5 );
53
54
55 m_fgGrid->Add( 0, 0, 0, wxEXPAND, 5 );
56
57 m_staticTextY = new wxStaticText( this, wxID_ANY, _("Y:"), wxDefaultPosition, wxDefaultSize, 0 );
58 m_staticTextY->Wrap( -1 );
59 m_fgGrid->Add( m_staticTextY, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_RIGHT|wxALL, 5 );
60
61 m_textY = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
62 m_textY->Enable( false );
63
64 m_fgGrid->Add( m_textY, 1, wxALL|wxEXPAND, 5 );
65
66 m_staticTextYUnits = new wxStaticText( this, wxID_ANY, _("unit"), wxDefaultPosition, wxDefaultSize, 0 );
67 m_staticTextYUnits->Wrap( -1 );
68 m_fgGrid->Add( m_staticTextYUnits, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_LEFT|wxALL, 5 );
69
70
71 bMainSizer->Add( m_fgGrid, 0, wxEXPAND, 5 );
72
73 m_stdButtons = new wxStdDialogButtonSizer();
74 m_stdButtonsOK = new wxButton( this, wxID_OK );
75 m_stdButtons->AddButton( m_stdButtonsOK );
76 m_stdButtonsCancel = new wxButton( this, wxID_CANCEL );
77 m_stdButtons->AddButton( m_stdButtonsCancel );
78 m_stdButtons->Realize();
79
80 bMainSizer->Add( m_stdButtons, 1, wxALL|wxEXPAND, 5 );
81
82
83 this->SetSizer( bMainSizer );
84 this->Layout();
85 bMainSizer->Fit( this );
86
87 this->Centre( wxBOTH );
88
89 // Connect Events
90 m_checkLinked->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_GRID_SETTINGS_BASE::OnLinkedChecked ), NULL, this );
91}
92
94{
95 // Disconnect Events
96 m_checkLinked->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_GRID_SETTINGS_BASE::OnLinkedChecked ), NULL, this );
97
98}
wxStdDialogButtonSizer * m_stdButtons
DIALOG_GRID_SETTINGS_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Grid Settings"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxDEFAULT_DIALOG_STYLE)
virtual void OnLinkedChecked(wxCommandEvent &event)
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...
Definition: dialog_shim.h:88
#define _(s)