35#include <wx/radiobox.h>
49 wxString aGerberName );
74 const wxString& aGerberName )
86 int aCopperLayerCount, wxString aGerberName )
88 wxDefaultPosition, wxDefaultSize, wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER )
91 wxArrayString layerList;
104 if( aDefaultLayer == *copper_it )
112 layerList.Add(
LSET::Name( *non_copper_it ) );
114 if( aDefaultLayer == *non_copper_it )
120 layerList.Add(
_(
"Hole data" ) );
127 layerList.Add(
_(
"Do not export" ) );
135 wxDefaultSize, layerList, std::min(
int(
m_layerId.size() ), 12 ),
141 wxBoxSizer* mainSizer =
new wxBoxSizer( wxHORIZONTAL );
142 SetSizer( mainSizer );
143 mainSizer->Add(
m_layerRadioBox, 1, wxEXPAND | wxALIGN_TOP | wxALL, 5 );
144 wxBoxSizer* buttonsSizer =
new wxBoxSizer( wxVERTICAL );
145 mainSizer->Add( buttonsSizer, 0, wxALIGN_BOTTOM | wxALL, 5 );
147 button =
new wxButton(
this, wxID_OK,
_(
"OK" ) );
148 button->SetDefault();
149 buttonsSizer->Add( button, 0, wxGROW | wxALL, 5 );
151 button =
new wxButton(
this, wxID_CANCEL,
_(
"Cancel" ) );
152 buttonsSizer->Add( button, 0, wxGROW | wxALL, 5 );
160 GetSizer()->SetSizeHints(
this );
168 wxPostEvent(
this, wxCommandEvent( wxEVT_COMMAND_BUTTON_CLICKED, wxID_OK ) );
174 if( !wxDialog::TransferDataFromWindow() )
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...
LSET is a set of PCB_LAYER_IDs.
copper_layers_iterator copper_layers_end() const
static LSET AllTechMask()
Return a mask holding all technical layers (no CU layer) on both side.
static LSET AllCuMask(int aCuLayerCount=MAX_CU_LAYERS)
Return a mask holding the requested number of Cu PCB_LAYER_IDs.
copper_layers_iterator copper_layers_begin() const
non_copper_layers_iterator non_copper_layers_begin() const
non_copper_layers_iterator non_copper_layers_end() const
static wxString Name(PCB_LAYER_ID aLayerId)
Return the fixed name association with aLayerId.
bool TransferDataFromWindow() override
std::vector< int > m_layerId
void OnLayerSelected(wxCommandEvent &event)
wxRadioBox * m_layerRadioBox
SELECT_LAYER_DIALOG(GERBVIEW_FRAME *parent, int aDefaultLayer, int aCopperLayerCount, wxString aGerberName)
void Format(OUTPUTFORMATTER *out, int aNestLevel, int aCtl, const CPTREE &aTree)
Output a PTREE into s-expression format via an OUTPUTFORMATTER derivative.