12DIALOG_UNUSED_PAD_LAYERS_BASE::DIALOG_UNUSED_PAD_LAYERS_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( wxSize( -1,-1 ), wxDefaultSize );
19 bSizer2 =
new wxBoxSizer( wxHORIZONTAL );
21 wxFlexGridSizer* fgSizerProps;
22 fgSizerProps =
new wxFlexGridSizer( 0, 2, 0, 5 );
23 fgSizerProps->SetFlexibleDirection( wxVERTICAL );
24 fgSizerProps->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
26 wxString m_rbScopeChoices[] = {
_(
"&Vias"),
_(
"&Pads") };
27 int m_rbScopeNChoices =
sizeof( m_rbScopeChoices ) /
sizeof( wxString );
28 m_rbScope =
new wxRadioBox(
this, wxID_ANY,
_(
"Scope"), wxDefaultPosition, wxDefaultSize, m_rbScopeNChoices, m_rbScopeChoices, 1, wxRA_SPECIFY_COLS );
30 fgSizerProps->Add(
m_rbScope, 1, wxEXPAND|wxTOP|wxBOTTOM|wxRIGHT, 5 );
32 wxString m_rbActionChoices[] = {
_(
"&Remove unused layers"),
_(
"Res&tore unused layers") };
33 int m_rbActionNChoices =
sizeof( m_rbActionChoices ) /
sizeof( wxString );
34 m_rbAction =
new wxRadioBox(
this, wxID_ANY,
_(
"Action"), wxDefaultPosition, wxDefaultSize, m_rbActionNChoices, m_rbActionChoices, 1, wxRA_SPECIFY_COLS );
36 fgSizerProps->Add(
m_rbAction, 1, wxEXPAND|wxTOP|wxBOTTOM|wxRIGHT, 5 );
38 m_cbSelectedOnly =
new wxCheckBox(
this, wxID_ANY,
_(
"&Selection only"), wxDefaultPosition, wxDefaultSize, 0 );
41 m_cbPreservePads =
new wxCheckBox(
this, wxID_ANY,
_(
"Keep &outside layers"), wxDefaultPosition, wxDefaultSize, 0 );
45 bSizer2->Add( fgSizerProps, 0, wxEXPAND|wxALL, 5 );
47 wxBoxSizer* bSizerPreview;
48 bSizerPreview =
new wxBoxSizer( wxVERTICAL );
51 bSizerPreview->Add( 0, 0, 0, wxEXPAND, 5 );
53 m_image =
new wxStaticBitmap(
this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, 0 );
54 bSizerPreview->Add(
m_image, 0, wxTOP|wxRIGHT|wxLEFT, 10 );
57 bSizerPreview->Add( 0, 0, 0, wxEXPAND, 5 );
60 bSizer2->Add( bSizerPreview, 1, wxEXPAND|wxLEFT|wxRIGHT, 5 );
63 m_MainSizer->Add( bSizer2, 6, wxEXPAND|wxRIGHT|wxLEFT, 5 );
65 m_staticline2 =
new wxStaticLine(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
82 this->Centre( wxBOTH );
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...
wxButton * m_StdButtonsOK
virtual void syncImages(wxCommandEvent &event)
wxButton * m_StdButtonsCancel
wxCheckBox * m_cbPreservePads
DIALOG_UNUSED_PAD_LAYERS_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Remove Unused Pads"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
wxStdDialogButtonSizer * m_StdButtons
wxCheckBox * m_cbSelectedOnly
wxStaticLine * m_staticline2
~DIALOG_UNUSED_PAD_LAYERS_BASE()