MCPcopy Create free account
hub / github.com/davidgiven/fluxengine / GetfileDialog

Method GetfileDialog

src/gui/layout.cpp:271–311  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

269}
270
271GetfileDialog::GetfileDialog( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxDialog( parent, id, title, pos, size, style )
272{
273 this->SetSizeHints( wxDefaultSize, wxDefaultSize );
274
275 wxGridBagSizer* gbSizer1;
276 gbSizer1 = new wxGridBagSizer( 0, 0 );
277 gbSizer1->SetFlexibleDirection( wxBOTH );
278 gbSizer1->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
279
280 m_staticText7 = new wxStaticText( this, wxID_ANY, wxT("File on disk:"), wxDefaultPosition, wxDefaultSize, 0 );
281 m_staticText7->Wrap( -1 );
282 gbSizer1->Add( m_staticText7, wxGBPosition( 0, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxALL, 5 );
283
284 filenameText = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( 300,-1 ), wxTE_READONLY );
285 filenameText->Enable( false );
286
287 gbSizer1->Add( filenameText, wxGBPosition( 0, 1 ), wxGBSpan( 1, 1 ), wxALL|wxEXPAND, 5 );
288
289 m_staticText9 = new wxStaticText( this, wxID_ANY, wxT("File to save as:"), wxDefaultPosition, wxDefaultSize, 0 );
290 m_staticText9->Wrap( -1 );
291 gbSizer1->Add( m_staticText9, wxGBPosition( 1, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxALL, 5 );
292
293 targetFilePicker = new wxFilePickerCtrl( this, wxID_ANY, wxEmptyString, wxT("Select a file"), wxT("*.*"), wxDefaultPosition, wxDefaultSize, wxFLP_OVERWRITE_PROMPT|wxFLP_SAVE|wxFLP_USE_TEXTCTRL );
294 gbSizer1->Add( targetFilePicker, wxGBPosition( 1, 1 ), wxGBSpan( 1, 1 ), wxALL|wxEXPAND, 5 );
295
296 buttons_ = new wxStdDialogButtonSizer();
297 buttons_OK = new wxButton( this, wxID_OK );
298 buttons_->AddButton( buttons_OK );
299 buttons_Cancel = new wxButton( this, wxID_CANCEL );
300 buttons_->AddButton( buttons_Cancel );
301 buttons_->Realize();
302
303 gbSizer1->Add( buttons_, wxGBPosition( 2, 0 ), wxGBSpan( 1, 2 ), wxALL|wxEXPAND, 5 );
304
305
306 this->SetSizer( gbSizer1 );
307 this->Layout();
308 gbSizer1->Fit( this );
309
310 this->Centre( wxBOTH );
311}
312
313GetfileDialog::~GetfileDialog()
314{

Callers

nothing calls this directly

Calls 1

AddMethod · 0.80

Tested by

no test coverage detected