49 DIALOG_SHIM( aParent, wxID_ANY, aTitle, wxDefaultPosition, wxDefaultSize,
50 wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER ),
54 wxBoxSizer* m_mainSizer =
new wxBoxSizer( wxVERTICAL );
58 m_textFile =
new wxStaticText(
this, wxID_ANY,
_(
"Output File:" ), wxDefaultPosition, wxDefaultSize, 0 );
62 m_outputFileName =
new wxTextCtrl(
this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
63 m_outputFileName->SetToolTip(
_(
"Enter a filename if you do not want to use default file names" ) );
71 m_mainSizer->Add(
m_fileSizer, 0, wxEXPAND | wxALL, 5 );
75 m_mainSizer->Add(
m_optsSizer, 1, wxEXPAND | wxALL, 5 );
77 wxSizer* stdButtons = CreateSeparatedButtonSizer( wxOK | wxCANCEL );
78 m_mainSizer->Add( stdButtons, 0, wxALL | wxEXPAND, 5 );
80 SetSizer( m_mainSizer );
82 if( !aTitle.IsEmpty() )
115 wxFileName brdFile(
m_frame->GetBoard()->GetFileName() );
116 wxString fileDialogName( wxString::Format( wxS(
"%s-gencad" ), brdFile.GetName() ) );
119 wxFileName fn(
Prj().AbsolutePath(
path ) );
121 wxFileDialog dlg(
this,
_(
"Export GenCAD File" ), fn.GetPath(), fileDialogName,
123 if( dlg.ShowModal() == wxID_OK )
DIALOG_SHIM(wxWindow *aParent, wxWindowID id, const wxString &title, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_FRAME_STYLE|wxRESIZE_BORDER, const wxString &name=wxDialogNameStr)