12DIALOG_CLEANUP_GRAPHICS_BASE::DIALOG_CLEANUP_GRAPHICS_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( wxVERTICAL );
22 m_createRectanglesOpt =
new wxCheckBox(
this, wxID_ANY,
_(
"Merge lines into rectangles"), wxDefaultPosition, wxDefaultSize, 0 );
25 m_deleteRedundantOpt =
new wxCheckBox(
this, wxID_ANY,
_(
"Delete redundant graphics"), wxDefaultPosition, wxDefaultSize, 0 );
28 m_mergePadsOpt =
new wxCheckBox(
this, wxID_ANY,
_(
"Merge overlapping graphics into pads"), wxDefaultPosition, wxDefaultSize, 0 );
31 wxBoxSizer* bSizerMargins;
32 bSizerMargins =
new wxBoxSizer( wxVERTICAL );
34 m_nettieHint =
new wxStaticText(
this, wxID_ANY,
_(
"(Pads which appear in a Net Tie pad group will not be considered for merging.)"), wxDefaultPosition, wxDefaultSize, 0 );
39 bSizerUpper->Add( bSizerMargins, 1, wxEXPAND|wxALL, 3 );
41 m_fixBoardOutlines =
new wxCheckBox(
this, wxID_ANY,
_(
"Fix discontinuities in board outlines"), wxDefaultPosition, wxDefaultSize, 0 );
46 m_toleranceLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Tolerance:"), wxDefaultPosition, wxDefaultSize, 0 );
50 m_toleranceCtrl =
new wxTextCtrl(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
53 m_toleranceUnits =
new wxStaticText(
this, wxID_ANY,
_(
"unit"), wxDefaultPosition, wxDefaultSize, 0 );
61 bSizerMain->Add( bSizerUpper, 0, wxEXPAND|wxALL, 5 );
63 wxBoxSizer* bLowerSizer;
64 bLowerSizer =
new wxBoxSizer( wxVERTICAL );
66 bLowerSizer->SetMinSize( wxSize( 660,250 ) );
67 staticChangesLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Changes to be applied:"), wxDefaultPosition, wxDefaultSize, 0 );
71 m_changesDataView =
new wxDataViewCtrl(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxDV_NO_HEADER );
75 bSizerMain->Add( bLowerSizer, 1, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
84 bSizerMain->Add(
m_sdbSizer, 0, wxBOTTOM|wxEXPAND|wxLEFT|wxRIGHT, 5 );
87 this->SetSizer( bSizerMain );
89 bSizerMain->Fit(
this );
91 this->Centre( wxBOTH );
wxButton * m_sdbSizerCancel
~DIALOG_CLEANUP_GRAPHICS_BASE()
virtual void OnSelectItem(wxDataViewEvent &event)
wxBoxSizer * m_toleranceSizer
virtual void OnLeftDClickItem(wxMouseEvent &event)
virtual void OnCheckBox(wxCommandEvent &event)
wxStaticText * m_nettieHint
wxStaticText * m_toleranceUnits
wxCheckBox * m_mergePadsOpt
wxDataViewCtrl * m_changesDataView
wxStdDialogButtonSizer * m_sdbSizer
wxCheckBox * m_createRectanglesOpt
wxStaticText * m_toleranceLabel
wxCheckBox * m_deleteRedundantOpt
wxStaticText * staticChangesLabel
wxTextCtrl * m_toleranceCtrl
wxCheckBox * m_fixBoardOutlines
DIALOG_CLEANUP_GRAPHICS_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Cleanup Graphics"), 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...