KiCad PCB EDA Suite
dialog_global_deletion_base.cpp
Go to the documentation of this file.
1 // C++ code generated with wxFormBuilder (version Jun 5 2014)
3 // http://www.wxformbuilder.org/
4 //
5 // PLEASE DO "NOT" EDIT THIS FILE!
7 
9 
11 
12 DIALOG_GLOBAL_DELETION_BASE::DIALOG_GLOBAL_DELETION_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( wxHORIZONTAL );
21 
22  wxStaticBoxSizer* sbSizerLeft;
23  sbSizerLeft = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Items to Delete") ), wxVERTICAL );
24 
25  m_DelZones = new wxCheckBox( this, wxID_ANY, _("Zones"), wxDefaultPosition, wxDefaultSize, 0 );
26  sbSizerLeft->Add( m_DelZones, 0, wxALL, 5 );
27 
28  m_DelTexts = new wxCheckBox( this, wxID_ANY, _("Text"), wxDefaultPosition, wxDefaultSize, 0 );
29  sbSizerLeft->Add( m_DelTexts, 0, wxALL, 5 );
30 
31  m_DelBoardEdges = new wxCheckBox( this, wxID_ANY, _("Board outlines"), wxDefaultPosition, wxDefaultSize, 0 );
32  sbSizerLeft->Add( m_DelBoardEdges, 0, wxALL, 5 );
33 
34  m_DelDrawings = new wxCheckBox( this, wxID_ANY, _("Drawings"), wxDefaultPosition, wxDefaultSize, 0 );
35  sbSizerLeft->Add( m_DelDrawings, 0, wxALL, 5 );
36 
37  m_DelModules = new wxCheckBox( this, wxID_ANY, _("Footprints"), wxDefaultPosition, wxDefaultSize, 0 );
38  sbSizerLeft->Add( m_DelModules, 0, wxALL, 5 );
39 
40  m_DelTracks = new wxCheckBox( this, wxID_ANY, _("Tracks"), wxDefaultPosition, wxDefaultSize, 0 );
41  sbSizerLeft->Add( m_DelTracks, 0, wxALL, 5 );
42 
43  m_DelMarkers = new wxCheckBox( this, wxID_ANY, _("Markers"), wxDefaultPosition, wxDefaultSize, 0 );
44  sbSizerLeft->Add( m_DelMarkers, 0, wxALL, 5 );
45 
46  m_DelAlls = new wxCheckBox( this, wxID_ANY, _("Clear board"), wxDefaultPosition, wxDefaultSize, 0 );
47  sbSizerLeft->Add( m_DelAlls, 0, wxALL, 5 );
48 
49 
50  bSizerUpper->Add( sbSizerLeft, 2, wxEXPAND|wxALL, 5 );
51 
52  wxBoxSizer* bSizerRight;
53  bSizerRight = new wxBoxSizer( wxVERTICAL );
54 
55  sbFilter = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Filter Settings") ), wxVERTICAL );
56 
57  m_TrackFilterAR = new wxCheckBox( this, wxID_ANY, _("Automatically routed tracks"), wxDefaultPosition, wxDefaultSize, 0 );
58  m_TrackFilterAR->SetValue(true);
59  sbFilter->Add( m_TrackFilterAR, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
60 
61  m_TrackFilterLocked = new wxCheckBox( this, wxID_ANY, _("Locked tracks"), wxDefaultPosition, wxDefaultSize, 0 );
62  sbFilter->Add( m_TrackFilterLocked, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
63 
64  m_TrackFilterNormal = new wxCheckBox( this, wxID_ANY, _("Unlocked tracks"), wxDefaultPosition, wxDefaultSize, 0 );
65  m_TrackFilterNormal->SetValue(true);
66  sbFilter->Add( m_TrackFilterNormal, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
67 
68  m_TrackFilterVias = new wxCheckBox( this, wxID_ANY, _("Vias"), wxDefaultPosition, wxDefaultSize, 0 );
69  m_TrackFilterVias->SetValue(true);
70  sbFilter->Add( m_TrackFilterVias, 0, wxALL, 5 );
71 
72  m_ModuleFilterLocked = new wxCheckBox( this, wxID_ANY, _("Locked footprints"), wxDefaultPosition, wxDefaultSize, 0 );
73  sbFilter->Add( m_ModuleFilterLocked, 0, wxBOTTOM|wxLEFT|wxRIGHT, 5 );
74 
75  m_ModuleFilterNormal = new wxCheckBox( this, wxID_ANY, _("Unlocked footprints"), wxDefaultPosition, wxDefaultSize, 0 );
76  m_ModuleFilterNormal->SetValue(true);
77  sbFilter->Add( m_ModuleFilterNormal, 0, wxBOTTOM|wxLEFT|wxRIGHT, 5 );
78 
79 
80  bSizerRight->Add( sbFilter, 0, wxALL|wxEXPAND, 5 );
81 
82  wxString m_rbLayersOptionChoices[] = { _("All layers"), _("Current layer only") };
83  int m_rbLayersOptionNChoices = sizeof( m_rbLayersOptionChoices ) / sizeof( wxString );
84  m_rbLayersOption = new wxRadioBox( this, wxID_ANY, _("Layer Filter"), wxDefaultPosition, wxDefaultSize, m_rbLayersOptionNChoices, m_rbLayersOptionChoices, 1, wxRA_SPECIFY_COLS );
85  m_rbLayersOption->SetSelection( 0 );
86  bSizerRight->Add( m_rbLayersOption, 0, wxALL|wxEXPAND, 5 );
87 
88 
89  bSizerUpper->Add( bSizerRight, 3, wxALL|wxEXPAND, 5 );
90 
91 
92  bSizerMain->Add( bSizerUpper, 1, wxALL|wxEXPAND, 5 );
93 
94  wxFlexGridSizer* fgSizer1;
95  fgSizer1 = new wxFlexGridSizer( 0, 2, 0, 0 );
96  fgSizer1->AddGrowableCol( 1 );
97  fgSizer1->SetFlexibleDirection( wxBOTH );
98  fgSizer1->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
99 
100  m_staticText1 = new wxStaticText( this, wxID_ANY, _("Current layer:"), wxDefaultPosition, wxDefaultSize, 0 );
101  m_staticText1->Wrap( -1 );
102  fgSizer1->Add( m_staticText1, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
103 
104  m_textCtrlCurrLayer = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_READONLY );
105  m_textCtrlCurrLayer->SetMaxLength( 0 );
106  fgSizer1->Add( m_textCtrlCurrLayer, 0, wxEXPAND|wxALL|wxALIGN_CENTER_VERTICAL, 5 );
107 
108 
109  bSizerMain->Add( fgSizer1, 0, wxEXPAND, 5 );
110 
111  m_staticline1 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
112  bSizerMain->Add( m_staticline1, 0, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
113 
114  m_sdbSizer1 = new wxStdDialogButtonSizer();
115  m_sdbSizer1OK = new wxButton( this, wxID_OK );
116  m_sdbSizer1->AddButton( m_sdbSizer1OK );
117  m_sdbSizer1Cancel = new wxButton( this, wxID_CANCEL );
118  m_sdbSizer1->AddButton( m_sdbSizer1Cancel );
119  m_sdbSizer1->Realize();
120 
121  bSizerMain->Add( m_sdbSizer1, 0, wxALL|wxEXPAND, 5 );
122 
123 
124  this->SetSizer( bSizerMain );
125  this->Layout();
126  bSizerMain->Fit( this );
127 
128  this->Centre( wxBOTH );
129 
130  // Connect Events
131  m_DelModules->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_GLOBAL_DELETION_BASE::OnCheckDeleteModules ), NULL, this );
132  m_DelTracks->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_GLOBAL_DELETION_BASE::OnCheckDeleteTracks ), NULL, this );
133  m_sdbSizer1Cancel->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_GLOBAL_DELETION_BASE::OnCancelClick ), NULL, this );
134  m_sdbSizer1OK->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_GLOBAL_DELETION_BASE::OnOkClick ), NULL, this );
135 }
136 
138 {
139  // Disconnect Events
140  m_DelModules->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_GLOBAL_DELETION_BASE::OnCheckDeleteModules ), NULL, this );
141  m_DelTracks->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_GLOBAL_DELETION_BASE::OnCheckDeleteTracks ), NULL, this );
142  m_sdbSizer1Cancel->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_GLOBAL_DELETION_BASE::OnCancelClick ), NULL, this );
143  m_sdbSizer1OK->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_GLOBAL_DELETION_BASE::OnOkClick ), NULL, this );
144 
145 }
virtual void OnCheckDeleteTracks(wxCommandEvent &event)
virtual void OnCheckDeleteModules(wxCommandEvent &event)
Class DIALOG_SHIM may sit in the inheritance tree between wxDialog and any class written by wxFormBui...
Definition: dialog_shim.h:60
wxStdDialogButtonSizer * m_sdbSizer1
virtual void OnOkClick(wxCommandEvent &event)
DIALOG_GLOBAL_DELETION_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Delete Items"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
virtual void OnCancelClick(wxCommandEvent &event)