12DIALOG_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 )
14 this->SetSizeHints( wxDefaultSize, wxDefaultSize );
16 wxBoxSizer* bSizerMain;
17 bSizerMain =
new wxBoxSizer( wxVERTICAL );
19 wxBoxSizer* bSizerUpper;
20 bSizerUpper =
new wxBoxSizer( wxHORIZONTAL );
22 wxStaticBoxSizer* sbSizerLeft;
23 sbSizerLeft =
new wxStaticBoxSizer(
new wxStaticBox(
this, wxID_ANY,
_(
"Items to Delete") ), wxVERTICAL );
25 m_delZones =
new wxCheckBox( sbSizerLeft->GetStaticBox(), wxID_ANY,
_(
"Zones"), wxDefaultPosition, wxDefaultSize, 0 );
26 sbSizerLeft->Add(
m_delZones, 0, wxBOTTOM|wxRIGHT|wxLEFT, 5 );
28 m_delTexts =
new wxCheckBox( sbSizerLeft->GetStaticBox(), wxID_ANY,
_(
"Text"), wxDefaultPosition, wxDefaultSize, 0 );
29 sbSizerLeft->Add(
m_delTexts, 0, wxBOTTOM|wxLEFT|wxRIGHT, 5 );
31 m_delBoardEdges =
new wxCheckBox( sbSizerLeft->GetStaticBox(), wxID_ANY,
_(
"Board outlines"), wxDefaultPosition, wxDefaultSize, 0 );
34 m_delDrawings =
new wxCheckBox( sbSizerLeft->GetStaticBox(), wxID_ANY,
_(
"Graphics"), wxDefaultPosition, wxDefaultSize, 0 );
35 sbSizerLeft->Add(
m_delDrawings, 0, wxBOTTOM|wxLEFT|wxRIGHT, 5 );
37 m_delFootprints =
new wxCheckBox( sbSizerLeft->GetStaticBox(), wxID_ANY,
_(
"Footprints"), wxDefaultPosition, wxDefaultSize, 0 );
40 m_delTracks =
new wxCheckBox( sbSizerLeft->GetStaticBox(), wxID_ANY,
_(
"Tracks && vias"), wxDefaultPosition, wxDefaultSize, 0 );
41 sbSizerLeft->Add(
m_delTracks, 0, wxBOTTOM|wxLEFT|wxRIGHT, 5 );
43 m_delTeardrops =
new wxCheckBox( sbSizerLeft->GetStaticBox(), wxID_ANY,
_(
"Teardrops"), wxDefaultPosition, wxDefaultSize, 0 );
46 m_delMarkers =
new wxCheckBox( sbSizerLeft->GetStaticBox(), wxID_ANY,
_(
"Markers"), wxDefaultPosition, wxDefaultSize, 0 );
47 sbSizerLeft->Add(
m_delMarkers, 0, wxBOTTOM|wxLEFT|wxRIGHT, 5 );
49 m_delAll =
new wxCheckBox( sbSizerLeft->GetStaticBox(), wxID_ANY,
_(
"Clear board"), wxDefaultPosition, wxDefaultSize, 0 );
50 sbSizerLeft->Add(
m_delAll, 0, wxBOTTOM|wxLEFT|wxRIGHT, 5 );
53 bSizerUpper->Add( sbSizerLeft, 0, wxEXPAND|wxALL, 5 );
55 wxBoxSizer* bSizerRight;
56 bSizerRight =
new wxBoxSizer( wxVERTICAL );
58 sbFilter =
new wxStaticBoxSizer(
new wxStaticBox(
this, wxID_ANY,
_(
"Filter Settings") ), wxVERTICAL );
85 bSizerRight->Add(
sbFilter, 0, wxALL|wxEXPAND, 5 );
87 wxString m_rbLayersOptionChoices[] = {
_(
"All layers"),
_(
"Current layer only") };
88 int m_rbLayersOptionNChoices =
sizeof( m_rbLayersOptionChoices ) /
sizeof( wxString );
89 m_rbLayersOption =
new wxRadioBox(
this, wxID_ANY,
_(
"Layer Filter"), wxDefaultPosition, wxDefaultSize, m_rbLayersOptionNChoices, m_rbLayersOptionChoices, 1, wxRA_SPECIFY_COLS );
94 bSizerUpper->Add( bSizerRight, 0, wxEXPAND, 5 );
97 bSizerMain->Add( bSizerUpper, 1, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
99 wxFlexGridSizer* fgSizer1;
100 fgSizer1 =
new wxFlexGridSizer( 0, 2, 0, 0 );
101 fgSizer1->AddGrowableCol( 1 );
102 fgSizer1->SetFlexibleDirection( wxBOTH );
103 fgSizer1->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
105 m_staticText1 =
new wxStaticText(
this, wxID_ANY,
_(
"Current layer:"), wxDefaultPosition, wxDefaultSize, 0 );
107 fgSizer1->Add(
m_staticText1, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
109 m_textCtrlCurrLayer =
new wxTextCtrl(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_READONLY );
113 bSizerMain->Add( fgSizer1, 0, wxBOTTOM|wxEXPAND|wxLEFT|wxRIGHT, 5 );
122 bSizerMain->Add(
m_sdbSizer1, 0, wxBOTTOM|wxEXPAND|wxTOP, 5 );
125 this->SetSizer( bSizerMain );
127 bSizerMain->Fit(
this );
129 this->Centre( wxBOTH );
virtual void onCheckDeleteTracks(wxCommandEvent &event)
wxCheckBox * m_trackFilterUnlocked
wxCheckBox * m_trackFilterLocked
wxCheckBox * m_trackFilterVias
wxButton * m_sdbSizer1Cancel
virtual void onCheckDeleteDrawings(wxCommandEvent &event)
virtual void onCheckDeleteFootprints(wxCommandEvent &event)
~DIALOG_GLOBAL_DELETION_BASE()
wxCheckBox * m_footprintFilterLocked
wxCheckBox * m_delBoardEdges
wxRadioBox * m_rbLayersOption
wxStdDialogButtonSizer * m_sdbSizer1
virtual void onCheckDeleteBoardOutlines(wxCommandEvent &event)
wxCheckBox * m_footprintFilterUnlocked
wxCheckBox * m_drawingFilterLocked
wxCheckBox * m_delDrawings
wxCheckBox * m_delFootprints
wxCheckBox * m_drawingFilterUnlocked
wxCheckBox * m_delMarkers
wxTextCtrl * m_textCtrlCurrLayer
wxStaticText * m_staticText1
wxCheckBox * m_delTeardrops
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)
wxStaticBoxSizer * sbFilter
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...