KiCad PCB EDA Suite
Loading...
Searching...
No Matches
dialog_draw_layers_settings_base.cpp
Go to the documentation of this file.
1
2// C++ code generated with wxFormBuilder (version 4.0.0-0-g0efcecf)
3// http://www.wxformbuilder.org/
4//
5// PLEASE DO *NOT* EDIT THIS FILE!
7
9
11
12DIALOG_DRAW_LAYERS_SETTINGS_BASE::DIALOG_DRAW_LAYERS_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 m_namiSizer = new wxBoxSizer( wxVERTICAL );
17
18 wxBoxSizer* bSizer3;
19 bSizer3 = new wxBoxSizer( wxHORIZONTAL );
20
21 m_stLayerNameTitle = new wxStaticText( this, wxID_ANY, _("Active layer name:"), wxDefaultPosition, wxDefaultSize, 0 );
22 m_stLayerNameTitle->Wrap( -1 );
23 bSizer3->Add( m_stLayerNameTitle, 0, wxALL, 5 );
24
25 m_stLayerName = new wxStaticText( this, wxID_ANY, _("dummy"), wxDefaultPosition, wxDefaultSize, 0 );
26 m_stLayerName->Wrap( -1 );
27 bSizer3->Add( m_stLayerName, 0, wxALL, 5 );
28
29
30 m_namiSizer->Add( bSizer3, 0, wxEXPAND, 5 );
31
32 wxFlexGridSizer* fgSizer;
33 fgSizer = new wxFlexGridSizer( 3, 3, 0, 0 );
34 fgSizer->AddGrowableCol( 1 );
35 fgSizer->SetFlexibleDirection( wxBOTH );
36 fgSizer->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
37
38 m_stOffsetX = new wxStaticText( this, wxID_ANY, _("Offset X:"), wxDefaultPosition, wxDefaultSize, 0 );
39 m_stOffsetX->Wrap( -1 );
40 fgSizer->Add( m_stOffsetX, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
41
42 m_tcOffsetX = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
43 fgSizer->Add( m_tcOffsetX, 0, wxALL|wxEXPAND, 5 );
44
45 m_stUnitX = new wxStaticText( this, wxID_ANY, _("mm"), wxDefaultPosition, wxDefaultSize, 0 );
46 m_stUnitX->Wrap( -1 );
47 fgSizer->Add( m_stUnitX, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
48
49 m_stOffsetY = new wxStaticText( this, wxID_ANY, _("Offset Y:"), wxDefaultPosition, wxDefaultSize, 0 );
50 m_stOffsetY->Wrap( -1 );
51 fgSizer->Add( m_stOffsetY, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
52
53 m_tcOffsetY = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
54 fgSizer->Add( m_tcOffsetY, 0, wxALL|wxEXPAND, 5 );
55
56 m_stUnitY = new wxStaticText( this, wxID_ANY, _("mm"), wxDefaultPosition, wxDefaultSize, 0 );
57 m_stUnitY->Wrap( -1 );
58 fgSizer->Add( m_stUnitY, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
59
60 m_stLayerRot = new wxStaticText( this, wxID_ANY, _("Rotate counterclockwise:"), wxDefaultPosition, wxDefaultSize, 0 );
61 m_stLayerRot->Wrap( -1 );
62 fgSizer->Add( m_stLayerRot, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
63
64 m_tcRotation = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
65 fgSizer->Add( m_tcRotation, 0, wxALL|wxEXPAND, 5 );
66
67 m_stUnitRot = new wxStaticText( this, wxID_ANY, _("dummy"), wxDefaultPosition, wxDefaultSize, 0 );
68 m_stUnitRot->Wrap( -1 );
69 fgSizer->Add( m_stUnitRot, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
70
71
72 m_namiSizer->Add( fgSizer, 0, wxEXPAND, 5 );
73
74 m_staticline1 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
75 m_namiSizer->Add( m_staticline1, 0, wxALL|wxEXPAND, 5 );
76
77 wxString m_rbScopeChoices[] = { _("Active layer"), _("All layers"), _("All visible layers") };
78 int m_rbScopeNChoices = sizeof( m_rbScopeChoices ) / sizeof( wxString );
79 m_rbScope = new wxRadioBox( this, wxID_ANY, _("Scope"), wxDefaultPosition, wxDefaultSize, m_rbScopeNChoices, m_rbScopeChoices, 1, wxRA_SPECIFY_COLS );
80 m_rbScope->SetSelection( 0 );
81 m_namiSizer->Add( m_rbScope, 0, wxALL, 5 );
82
83 m_staticline2 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
84 m_namiSizer->Add( m_staticline2, 0, wxEXPAND | wxALL, 5 );
85
86 wxBoxSizer* bottomButtonsSizer;
87 bottomButtonsSizer = new wxBoxSizer( wxHORIZONTAL );
88
89 m_sdbSizerStdButtons = new wxStdDialogButtonSizer();
90 m_sdbSizerStdButtonsOK = new wxButton( this, wxID_OK );
92 m_sdbSizerStdButtonsCancel = new wxButton( this, wxID_CANCEL );
94 m_sdbSizerStdButtons->Realize();
95
96 bottomButtonsSizer->Add( m_sdbSizerStdButtons, 1, wxALL|wxEXPAND, 5 );
97
98
99 m_namiSizer->Add( bottomButtonsSizer, 0, wxLEFT|wxEXPAND, 5 );
100
101
102 this->SetSizer( m_namiSizer );
103 this->Layout();
104 m_namiSizer->Fit( this );
105
106 // Connect Events
107 this->Connect( wxEVT_INIT_DIALOG, wxInitDialogEventHandler( DIALOG_DRAW_LAYERS_SETTINGS_BASE::OnInitDlg ) );
108 this->Connect( wxEVT_UPDATE_UI, wxUpdateUIEventHandler( DIALOG_DRAW_LAYERS_SETTINGS_BASE::OnUpdateUI ) );
109}
110
112{
113 // Disconnect Events
114 this->Disconnect( wxEVT_INIT_DIALOG, wxInitDialogEventHandler( DIALOG_DRAW_LAYERS_SETTINGS_BASE::OnInitDlg ) );
115 this->Disconnect( wxEVT_UPDATE_UI, wxUpdateUIEventHandler( DIALOG_DRAW_LAYERS_SETTINGS_BASE::OnUpdateUI ) );
116
117}
virtual void OnInitDlg(wxInitDialogEvent &event)
virtual void OnUpdateUI(wxUpdateUIEvent &event)
DIALOG_DRAW_LAYERS_SETTINGS_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Layers Settings"), 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)