KiCad PCB EDA Suite
Loading...
Searching...
No Matches
dialog_drill_groups_base.cpp
Go to the documentation of this file.
1
2// C++ code generated with wxFormBuilder (version 4.2.1-0-g80c4cb6a)
3// http://www.wxformbuilder.org/
4//
5// PLEASE DO *NOT* EDIT THIS FILE!
7
9
11
12DIALOG_DRILL_GROUPS_BASE::DIALOG_DRILL_GROUPS_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* bMain;
17 bMain = new wxBoxSizer( wxVERTICAL );
18
19 wxBoxSizer* bProfile;
20 bProfile = new wxBoxSizer( wxHORIZONTAL );
21
22 m_profileLabel = new wxStaticText( this, wxID_ANY, _("Profile:"), wxDefaultPosition, wxDefaultSize, 0 );
23 m_profileLabel->Wrap( -1 );
24 bProfile->Add( m_profileLabel, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
25
26 m_profileName = new wxStaticText( this, wxID_ANY, _("-"), wxDefaultPosition, wxDefaultSize, 0 );
27 m_profileName->Wrap( -1 );
28 bProfile->Add( m_profileName, 1, wxALIGN_CENTER_VERTICAL, 5 );
29
30 m_freezeAssignments = new wxCheckBox( this, wxID_ANY, _("Freeze assignments"), wxDefaultPosition, wxDefaultSize, 0 );
31 m_freezeAssignments->SetValue(true);
32 bProfile->Add( m_freezeAssignments, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
33
34
35 bMain->Add( bProfile, 0, wxEXPAND|wxALL, 5 );
36
37 m_groupGrid = new WX_GRID( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
38
39 // Grid
40 m_groupGrid->CreateGrid( 0, 6 );
41 m_groupGrid->EnableEditing( true );
42 m_groupGrid->EnableGridLines( true );
43 m_groupGrid->SetGridLineColour( wxSystemSettings::GetColour( wxSYS_COLOUR_ACTIVEBORDER ) );
44 m_groupGrid->EnableDragGridSize( false );
45 m_groupGrid->SetMargins( 0, 0 );
46
47 // Columns
48 m_groupGrid->EnableDragColMove( false );
49 m_groupGrid->EnableDragColSize( true );
50 m_groupGrid->SetColLabelSize( 22 );
51 m_groupGrid->SetColLabelAlignment( wxALIGN_CENTER, wxALIGN_CENTER );
52
53 // Rows
54 m_groupGrid->EnableDragRowSize( false );
55 m_groupGrid->SetRowLabelSize( 0 );
56 m_groupGrid->SetRowLabelAlignment( wxALIGN_CENTER, wxALIGN_CENTER );
57
58 // Label Appearance
59
60 // Cell Defaults
61 m_groupGrid->SetDefaultCellAlignment( wxALIGN_LEFT, wxALIGN_CENTER );
62 bMain->Add( m_groupGrid, 1, wxEXPAND|wxALL, 5 );
63
64 wxStaticBoxSizer* sbDetail;
65 sbDetail = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Selected group") ), wxVERTICAL );
66
67 wxFlexGridSizer* fgDetail;
68 fgDetail = new wxFlexGridSizer( 0, 2, 5, 5 );
69 fgDetail->AddGrowableCol( 1 );
70 fgDetail->SetFlexibleDirection( wxBOTH );
71 fgDetail->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
72
73 m_markLabel = new wxStaticText( sbDetail->GetStaticBox(), wxID_ANY, _("Mark:"), wxDefaultPosition, wxDefaultSize, 0 );
74 m_markLabel->Wrap( -1 );
75 fgDetail->Add( m_markLabel, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
76
77 wxString m_markCtrlChoices[] = { _("Shape"), _("Letter"), _("Hole size text") };
78 int m_markCtrlNChoices = sizeof( m_markCtrlChoices ) / sizeof( wxString );
79 m_markCtrl = new wxChoice( sbDetail->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, m_markCtrlNChoices, m_markCtrlChoices, 0 );
80 m_markCtrl->SetSelection( 0 );
81 fgDetail->Add( m_markCtrl, 0, wxEXPAND, 5 );
82
83 m_shapeLabel = new wxStaticText( sbDetail->GetStaticBox(), wxID_ANY, _("Shape:"), wxDefaultPosition, wxDefaultSize, 0 );
84 m_shapeLabel->Wrap( -1 );
85 fgDetail->Add( m_shapeLabel, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
86
87 m_shapeCtrl = new wxSpinCtrl( sbDetail->GetStaticBox(), wxID_ANY, wxT("0"), wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, 0, 63, 0 );
88 fgDetail->Add( m_shapeCtrl, 0, wxEXPAND, 5 );
89
90 m_letterLabel = new wxStaticText( sbDetail->GetStaticBox(), wxID_ANY, _("Letter:"), wxDefaultPosition, wxDefaultSize, 0 );
91 m_letterLabel->Wrap( -1 );
92 fgDetail->Add( m_letterLabel, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
93
94 m_letterCtrl = new wxTextCtrl( sbDetail->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
95 fgDetail->Add( m_letterCtrl, 0, wxEXPAND, 5 );
96
97 m_descriptionLabel = new wxStaticText( sbDetail->GetStaticBox(), wxID_ANY, _("Description:"), wxDefaultPosition, wxDefaultSize, 0 );
98 m_descriptionLabel->Wrap( -1 );
99 fgDetail->Add( m_descriptionLabel, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 5 );
100
101 m_descriptionCtrl = new wxTextCtrl( sbDetail->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
102 fgDetail->Add( m_descriptionCtrl, 0, wxEXPAND, 5 );
103
104
105 sbDetail->Add( fgDetail, 0, wxEXPAND|wxALL, 5 );
106
107 wxBoxSizer* bGroupButtons;
108 bGroupButtons = new wxBoxSizer( wxHORIZONTAL );
109
110 m_flashButton = new wxButton( sbDetail->GetStaticBox(), wxID_ANY, _("Flash on Canvas"), wxDefaultPosition, wxDefaultSize, 0 );
111 bGroupButtons->Add( m_flashButton, 0, wxRIGHT, 5 );
112
113
114 sbDetail->Add( bGroupButtons, 0, wxEXPAND|wxALL, 5 );
115
116
117 bMain->Add( sbDetail, 0, wxEXPAND|wxALL, 5 );
118
119 wxBoxSizer* bBottom;
120 bBottom = new wxBoxSizer( wxHORIZONTAL );
121
122 m_closeButton = new wxButton( this, wxID_ANY, _("Close"), wxDefaultPosition, wxDefaultSize, 0 );
123 bBottom->Add( m_closeButton, 0, wxRIGHT, 5 );
124
125
126 bMain->Add( bBottom, 0, wxEXPAND|wxALL, 5 );
127
128
129 this->SetSizer( bMain );
130 this->Layout();
131
132 this->Centre( wxBOTH );
133
134 // Connect Events
135 m_freezeAssignments->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_DRILL_GROUPS_BASE::onFreezeChanged ), NULL, this );
136 m_flashButton->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_DRILL_GROUPS_BASE::onFlash ), NULL, this );
137 m_closeButton->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_DRILL_GROUPS_BASE::onClose ), NULL, this );
138}
139
141{
142 // Disconnect Events
143 m_freezeAssignments->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_DRILL_GROUPS_BASE::onFreezeChanged ), NULL, this );
144 m_flashButton->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_DRILL_GROUPS_BASE::onFlash ), NULL, this );
145 m_closeButton->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_DRILL_GROUPS_BASE::onClose ), NULL, this );
146
147}
virtual void onClose(wxCommandEvent &event)
DIALOG_DRILL_GROUPS_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Drill Groups"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(760, 620), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
virtual void onFlash(wxCommandEvent &event)
virtual void onFreezeChanged(wxCommandEvent &event)
DIALOG_SHIM(wxWindow *aParent, wxWindowID id, const wxString &title, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_FRAME_STYLE|wxRESIZE_BORDER, const wxString &name=wxDialogNameStr)
#define _(s)