14DIALOG_OUTSET_ITEMS_BASE::DIALOG_OUTSET_ITEMS_BASE( wxWindow* parent, wxWindowID
id,
const wxString& title,
const wxPoint& pos,
const wxSize& size,
long style ) :
DIALOG_SHIM( parent, id, title, pos, size, style )
16 this->SetSizeHints( wxSize( -1,-1 ), wxDefaultSize );
18 wxBoxSizer* bMainSizer;
19 bMainSizer =
new wxBoxSizer( wxVERTICAL );
21 wxGridBagSizer* gbSizer1;
22 gbSizer1 =
new wxGridBagSizer( 0, 0 );
23 gbSizer1->SetFlexibleDirection( wxBOTH );
24 gbSizer1->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_ALL );
26 m_outsetLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Outset:"), wxDefaultPosition, wxSize( -1,-1 ), 0 );
28 gbSizer1->Add(
m_outsetLabel, wxGBPosition( 0, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxALIGN_RIGHT|wxALL, 5 );
30 m_outsetEntry =
new wxComboBox(
this, wxID_ANY,
_(
"0.1"), wxDefaultPosition, wxDefaultSize, 0, NULL, 0 );
31 gbSizer1->Add(
m_outsetEntry, wxGBPosition( 0, 1 ), wxGBSpan( 1, 2 ), wxALL|wxEXPAND, 5 );
33 m_outsetUnit =
new wxStaticText(
this, wxID_ANY,
_(
"mm"), wxDefaultPosition, wxDefaultSize, 0 );
35 gbSizer1->Add(
m_outsetUnit, wxGBPosition( 0, 3 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxALL, 5 );
37 m_roundToGrid =
new wxCheckBox(
this, wxID_ANY,
_(
"Round outwards to grid multiples (when possible)"), wxDefaultPosition, wxDefaultSize, 0 );
39 m_roundToGrid->SetToolTip(
_(
"This is only possible for rectangular outsets.") );
41 gbSizer1->Add(
m_roundToGrid, wxGBPosition( 2, 0 ), wxGBSpan( 1, 4 ), wxALL|wxEXPAND, 5 );
43 m_roundCorners =
new wxCheckBox(
this, wxID_ANY,
_(
"Round corners (when possible)"), wxDefaultPosition, wxDefaultSize, 0 );
44 gbSizer1->Add(
m_roundCorners, wxGBPosition( 1, 0 ), wxGBSpan( 1, 4 ), wxALL|wxEXPAND, 5 );
46 m_gridRoundingLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Grid size:"), wxDefaultPosition, wxSize( -1,-1 ), 0 );
48 gbSizer1->Add(
m_gridRoundingLabel, wxGBPosition( 3, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxALIGN_RIGHT|wxALL, 5 );
50 m_gridRoundingEntry =
new wxComboBox(
this, wxID_ANY,
_(
"0.01"), wxDefaultPosition, wxDefaultSize, 0, NULL, 0 );
51 gbSizer1->Add(
m_gridRoundingEntry, wxGBPosition( 3, 1 ), wxGBSpan( 1, 2 ), wxALL|wxEXPAND, 5 );
53 m_gridRoundingUnit =
new wxStaticText(
this, wxID_ANY,
_(
"mm"), wxDefaultPosition, wxDefaultSize, 0 );
55 gbSizer1->Add(
m_gridRoundingUnit, wxGBPosition( 3, 3 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxALL, 5 );
57 m_staticline2 =
new wxStaticLine(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
58 gbSizer1->Add(
m_staticline2, wxGBPosition( 4, 0 ), wxGBSpan( 1, 4 ), wxALL|wxEXPAND, 5 );
60 m_copyLayers =
new wxCheckBox(
this, wxID_ANY,
_(
"Copy item layers"), wxDefaultPosition, wxDefaultSize, 0 );
61 gbSizer1->Add(
m_copyLayers, wxGBPosition( 5, 0 ), wxGBSpan( 1, 4 ), wxALL|wxEXPAND, 5 );
63 m_layerLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Layer:"), wxDefaultPosition, wxSize( -1,-1 ), 0 );
65 gbSizer1->Add(
m_layerLabel, wxGBPosition( 6, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxALIGN_RIGHT|wxALL, 5 );
68 gbSizer1->Add(
m_LayerSelectionCtrl, wxGBPosition( 6, 1 ), wxGBSpan( 1, 3 ), wxALL|wxEXPAND, 5 );
70 m_copyWidths =
new wxCheckBox(
this, wxID_ANY,
_(
"Copy item widths (if possible)"), wxDefaultPosition, wxDefaultSize, 0 );
71 m_copyWidths->SetToolTip(
_(
"This is not possible for items like pads, which will still use the value below.") );
73 gbSizer1->Add(
m_copyWidths, wxGBPosition( 7, 0 ), wxGBSpan( 1, 4 ), wxALL, 5 );
75 m_lineWidthLabel =
new wxStaticText(
this, wxID_ANY,
_(
"Line width:"), wxDefaultPosition, wxSize( -1,-1 ), 0 );
77 gbSizer1->Add(
m_lineWidthLabel, wxGBPosition( 8, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxALIGN_RIGHT|wxALL, 5 );
79 m_lineWidthEntry =
new wxComboBox(
this, wxID_ANY,
_(
"0.1"), wxDefaultPosition, wxDefaultSize, 0, NULL, 0 );
80 gbSizer1->Add(
m_lineWidthEntry, wxGBPosition( 8, 1 ), wxGBSpan( 1, 1 ), wxALL|wxEXPAND, 5 );
82 m_lineWidthUnit =
new wxStaticText(
this, wxID_ANY,
_(
"mm"), wxDefaultPosition, wxDefaultSize, 0 );
84 gbSizer1->Add(
m_lineWidthUnit, wxGBPosition( 8, 2 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxALL, 5 );
86 m_layerDefaultBtn =
new wxButton(
this, wxID_ANY,
_(
"Layer default"), wxDefaultPosition, wxDefaultSize, 0 );
87 gbSizer1->Add(
m_layerDefaultBtn, wxGBPosition( 8, 3 ), wxGBSpan( 1, 1 ), wxALL, 5 );
89 m_staticline21 =
new wxStaticLine(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
90 gbSizer1->Add(
m_staticline21, wxGBPosition( 9, 0 ), wxGBSpan( 1, 4 ), wxEXPAND | wxALL, 5 );
92 m_deleteSourceItems =
new wxCheckBox(
this, wxID_ANY,
_(
"Delete source items after outset"), wxDefaultPosition, wxDefaultSize, 0 );
93 m_deleteSourceItems->SetToolTip(
_(
"This is not possible for items like pads, which will still use the value below.") );
98 gbSizer1->AddGrowableCol( 1 );
100 bMainSizer->Add( gbSizer1, 1, wxEXPAND, 5 );
102 wxBoxSizer* bSizerBottom;
103 bSizerBottom =
new wxBoxSizer( wxHORIZONTAL );
106 bSizerBottom->Add( 40, 0, 1, wxEXPAND, 5 );
115 bSizerBottom->Add(
m_stdButtons, 0, wxBOTTOM|wxTOP, 5 );
118 bMainSizer->Add( bSizerBottom, 0, wxEXPAND|wxTOP, 5 );
121 this->SetSizer( bMainSizer );
123 bMainSizer->Fit(
this );
wxStaticText * m_outsetLabel
virtual void OnLayerDefaultClick(wxCommandEvent &event)
wxStaticLine * m_staticline2
PCB_LAYER_BOX_SELECTOR * m_LayerSelectionCtrl
wxStaticText * m_gridRoundingUnit
wxCheckBox * m_roundCorners
wxButton * m_layerDefaultBtn
wxCheckBox * m_deleteSourceItems
wxStaticLine * m_staticline21
wxCheckBox * m_roundToGrid
wxComboBox * m_gridRoundingEntry
wxButton * m_stdButtonsCancel
wxCheckBox * m_copyWidths
wxStaticText * m_layerLabel
wxCheckBox * m_copyLayers
virtual void OnCopyLayersChecked(wxCommandEvent &event)
wxStaticText * m_gridRoundingLabel
wxStaticText * m_lineWidthLabel
wxButton * m_stdButtonsOK
DIALOG_OUTSET_ITEMS_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Outset Items"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
wxStdDialogButtonSizer * m_stdButtons
virtual void OnOkClick(wxCommandEvent &event)
virtual void OnRoundToGridChecked(wxCommandEvent &event)
wxComboBox * m_lineWidthEntry
~DIALOG_OUTSET_ITEMS_BASE()
wxComboBox * m_outsetEntry
virtual void OnClose(wxCloseEvent &event)
wxStaticText * m_outsetUnit
wxStaticText * m_lineWidthUnit
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...
Class to display a pcb layer list in a wxBitmapComboBox.