1
/////////////////////////////////////////////////////////////////////////////
2
// Name: dialog_initpcb.cpp
4
// Author: jean-pierre Charras
6
// Created: 15/02/2006 21:42:41
8
// Copyright: License GNU
10
/////////////////////////////////////////////////////////////////////////////
12
// Generated by DialogBlocks (unregistered), 15/02/2006 21:42:41
18
#include "dialog_initpcb.h"
24
* WinEDA_PcbGlobalDeleteFrame type definition
27
IMPLEMENT_DYNAMIC_CLASS( WinEDA_PcbGlobalDeleteFrame, wxDialog )
30
* WinEDA_PcbGlobalDeleteFrame event table definition
33
BEGIN_EVENT_TABLE( WinEDA_PcbGlobalDeleteFrame, wxDialog )
35
////@begin WinEDA_PcbGlobalDeleteFrame event table entries
36
EVT_BUTTON( wxID_OK, WinEDA_PcbGlobalDeleteFrame::OnOkClick )
38
EVT_BUTTON( wxID_CANCEL, WinEDA_PcbGlobalDeleteFrame::OnCancelClick )
40
////@end WinEDA_PcbGlobalDeleteFrame event table entries
45
* WinEDA_PcbGlobalDeleteFrame constructors
48
WinEDA_PcbGlobalDeleteFrame::WinEDA_PcbGlobalDeleteFrame( )
52
WinEDA_PcbGlobalDeleteFrame::WinEDA_PcbGlobalDeleteFrame( WinEDA_PcbFrame* parent, wxWindowID id, const wxString& caption, const wxPoint& pos, const wxSize& size, long style )
55
Create(parent, id, caption, pos, size, style);
59
* WinEDA_PcbGlobalDeleteFrame creator
62
bool WinEDA_PcbGlobalDeleteFrame::Create( wxWindow* parent, wxWindowID id, const wxString& caption, const wxPoint& pos, const wxSize& size, long style )
64
////@begin WinEDA_PcbGlobalDeleteFrame member initialisation
73
m_TrackFilterAR = NULL;
74
m_TrackFilterLocked = NULL;
75
////@end WinEDA_PcbGlobalDeleteFrame member initialisation
77
////@begin WinEDA_PcbGlobalDeleteFrame creation
78
SetExtraStyle(GetExtraStyle()|wxWS_EX_BLOCK_EVENTS);
79
wxDialog::Create( parent, id, caption, pos, size, style );
82
GetSizer()->Fit(this);
83
GetSizer()->SetSizeHints(this);
85
////@end WinEDA_PcbGlobalDeleteFrame creation
90
* Control creation for WinEDA_PcbGlobalDeleteFrame
93
void WinEDA_PcbGlobalDeleteFrame::CreateControls()
96
SetFont(*g_DialogFont);
97
////@begin WinEDA_PcbGlobalDeleteFrame content construction
98
// Generated by DialogBlocks, 15/02/2006 22:10:20 (unregistered)
100
WinEDA_PcbGlobalDeleteFrame* itemDialog1 = this;
102
wxBoxSizer* itemBoxSizer2 = new wxBoxSizer(wxHORIZONTAL);
103
itemDialog1->SetSizer(itemBoxSizer2);
105
wxStaticBox* itemStaticBoxSizer3Static = new wxStaticBox(itemDialog1, wxID_ANY, _("Items to delete"));
106
wxStaticBoxSizer* itemStaticBoxSizer3 = new wxStaticBoxSizer(itemStaticBoxSizer3Static, wxVERTICAL);
107
itemBoxSizer2->Add(itemStaticBoxSizer3, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
109
m_DelZones = new wxCheckBox( itemDialog1, ID_CHECKBOX, _("Delete Zones"), wxDefaultPosition, wxDefaultSize, wxCHK_2STATE );
110
m_DelZones->SetValue(false);
111
itemStaticBoxSizer3->Add(m_DelZones, 0, wxALIGN_LEFT|wxALL, 5);
113
m_DelTexts = new wxCheckBox( itemDialog1, ID_CHECKBOX1, _("Delete Texts"), wxDefaultPosition, wxDefaultSize, wxCHK_2STATE );
114
m_DelTexts->SetValue(false);
115
itemStaticBoxSizer3->Add(m_DelTexts, 0, wxALIGN_LEFT|wxALL, 5);
117
m_DelEdges = new wxCheckBox( itemDialog1, ID_CHECKBOX2, _("Delete Edges"), wxDefaultPosition, wxDefaultSize, wxCHK_2STATE );
118
m_DelEdges->SetValue(false);
119
itemStaticBoxSizer3->Add(m_DelEdges, 0, wxALIGN_LEFT|wxALL, 5);
121
m_DelDrawings = new wxCheckBox( itemDialog1, ID_CHECKBOX3, _("Delete Drawings"), wxDefaultPosition, wxDefaultSize, wxCHK_2STATE );
122
m_DelDrawings->SetValue(false);
123
itemStaticBoxSizer3->Add(m_DelDrawings, 0, wxALIGN_LEFT|wxALL, 5);
125
m_DelModules = new wxCheckBox( itemDialog1, ID_CHECKBOX4, _("Delete Modules"), wxDefaultPosition, wxDefaultSize, 0 );
126
m_DelModules->SetValue(false);
127
itemStaticBoxSizer3->Add(m_DelModules, 0, wxALIGN_LEFT|wxALL, 5);
129
m_DelTracks = new wxCheckBox( itemDialog1, ID_CHECKBOX5, _("Delete Tracks"), wxDefaultPosition, wxDefaultSize, wxCHK_2STATE );
130
m_DelTracks->SetValue(false);
131
itemStaticBoxSizer3->Add(m_DelTracks, 0, wxALIGN_LEFT|wxALL, 5);
133
m_DelMarkers = new wxCheckBox( itemDialog1, ID_CHECKBOX6, _("Delete Markers"), wxDefaultPosition, wxDefaultSize, wxCHK_2STATE );
134
m_DelMarkers->SetValue(false);
135
itemStaticBoxSizer3->Add(m_DelMarkers, 0, wxALIGN_LEFT|wxALL, 5);
137
m_DelAlls = new wxCheckBox( itemDialog1, ID_CHECKBOX7, _("Clear Board"), wxDefaultPosition, wxDefaultSize, wxCHK_2STATE );
138
m_DelAlls->SetValue(false);
139
itemStaticBoxSizer3->Add(m_DelAlls, 0, wxALIGN_LEFT|wxALL, 5);
141
wxBoxSizer* itemBoxSizer12 = new wxBoxSizer(wxVERTICAL);
142
itemBoxSizer2->Add(itemBoxSizer12, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5);
144
wxStaticBox* itemStaticBoxSizer13Static = new wxStaticBox(itemDialog1, wxID_ANY, _("Track Filter"));
145
wxStaticBoxSizer* itemStaticBoxSizer13 = new wxStaticBoxSizer(itemStaticBoxSizer13Static, wxVERTICAL);
146
itemBoxSizer12->Add(itemStaticBoxSizer13, 0, wxGROW|wxALL, 5);
148
m_TrackFilterAR = new wxCheckBox( itemDialog1, ID_CHECKBOX8, _("Include AutoRouted Tracks"), wxDefaultPosition, wxDefaultSize, wxCHK_2STATE );
149
m_TrackFilterAR->SetValue(false);
150
itemStaticBoxSizer13->Add(m_TrackFilterAR, 0, wxALIGN_LEFT|wxALL, 5);
152
m_TrackFilterLocked = new wxCheckBox( itemDialog1, ID_CHECKBOX9, _("Include Locked Tracks"), wxDefaultPosition, wxDefaultSize, wxCHK_2STATE );
153
m_TrackFilterLocked->SetValue(false);
154
itemStaticBoxSizer13->Add(m_TrackFilterLocked, 0, wxALIGN_LEFT|wxALL, 5);
156
itemBoxSizer12->Add(5, 5, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
158
wxBoxSizer* itemBoxSizer17 = new wxBoxSizer(wxVERTICAL);
159
itemBoxSizer12->Add(itemBoxSizer17, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
161
wxButton* itemButton18 = new wxButton( itemDialog1, wxID_OK, _("&OK"), wxDefaultPosition, wxDefaultSize, 0 );
162
itemBoxSizer17->Add(itemButton18, 0, wxGROW|wxALL, 5);
164
wxButton* itemButton19 = new wxButton( itemDialog1, wxID_CANCEL, _("&Cancel"), wxDefaultPosition, wxDefaultSize, 0 );
165
itemBoxSizer17->Add(itemButton19, 0, wxGROW|wxALL, 5);
167
////@end WinEDA_PcbGlobalDeleteFrame content construction
171
* Should we show tooltips?
174
bool WinEDA_PcbGlobalDeleteFrame::ShowToolTips()
180
* Get bitmap resources
183
wxBitmap WinEDA_PcbGlobalDeleteFrame::GetBitmapResource( const wxString& name )
186
////@begin WinEDA_PcbGlobalDeleteFrame bitmap retrieval
189
////@end WinEDA_PcbGlobalDeleteFrame bitmap retrieval
196
wxIcon WinEDA_PcbGlobalDeleteFrame::GetIconResource( const wxString& name )
199
////@begin WinEDA_PcbGlobalDeleteFrame icon retrieval
202
////@end WinEDA_PcbGlobalDeleteFrame icon retrieval
205
* wxEVT_COMMAND_BUTTON_CLICKED event handler for wxID_OK
208
void WinEDA_PcbGlobalDeleteFrame::OnOkClick( wxCommandEvent& event )
210
AcceptPcbDelete(event);
214
* wxEVT_COMMAND_BUTTON_CLICKED event handler for wxID_CANCEL
217
void WinEDA_PcbGlobalDeleteFrame::OnCancelClick( wxCommandEvent& event )
219
////@begin wxEVT_COMMAND_BUTTON_CLICKED event handler for wxID_CANCEL in WinEDA_PcbGlobalDeleteFrame.
220
// Before editing this code, remove the block markers.
222
////@end wxEVT_COMMAND_BUTTON_CLICKED event handler for wxID_CANCEL in WinEDA_PcbGlobalDeleteFrame.