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

Method FormatDialog

src/gui/layout.cpp:458–496  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

456}
457
458FormatDialog::FormatDialog( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxDialog( parent, id, title, pos, size, style )
459{
460 this->SetSizeHints( wxDefaultSize, wxDefaultSize );
461
462 wxGridBagSizer* gbSizer1;
463 gbSizer1 = new wxGridBagSizer( 0, 0 );
464 gbSizer1->SetFlexibleDirection( wxBOTH );
465 gbSizer1->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
466
467 m_staticText91 = new wxStaticText( this, wxID_ANY, wxT("This will erase the entire disk. (But remember that\nyou can always undo changes until you press the 'commit changes' button.)"), wxDefaultPosition, wxDefaultSize, wxALIGN_CENTER_HORIZONTAL );
468 m_staticText91->Wrap( -1 );
469 gbSizer1->Add( m_staticText91, wxGBPosition( 0, 0 ), wxGBSpan( 1, 2 ), wxALIGN_CENTER_HORIZONTAL|wxALL, 5 );
470
471 m_staticText7 = new wxStaticText( this, wxID_ANY, wxT("Volume name:"), wxDefaultPosition, wxDefaultSize, 0 );
472 m_staticText7->Wrap( -1 );
473 gbSizer1->Add( m_staticText7, wxGBPosition( 1, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxALL, 5 );
474
475 volumeNameText = new wxTextCtrl( this, wxID_ANY, wxT("FluxEngineDisk"), wxDefaultPosition, wxDefaultSize, 0 );
476 gbSizer1->Add( volumeNameText, wxGBPosition( 1, 1 ), wxGBSpan( 1, 1 ), wxALL|wxEXPAND, 5 );
477
478 quickFormatCheckBox = new wxCheckBox( this, wxID_ANY, wxT("Quick format: if the disk is not already correctly formatted,\nvery bad things will happen!"), wxDefaultPosition, wxDefaultSize, 0 );
479 gbSizer1->Add( quickFormatCheckBox, wxGBPosition( 2, 1 ), wxGBSpan( 1, 1 ), wxALL|wxEXPAND, 5 );
480
481 buttons_ = new wxStdDialogButtonSizer();
482 buttons_OK = new wxButton( this, wxID_OK );
483 buttons_->AddButton( buttons_OK );
484 buttons_Cancel = new wxButton( this, wxID_CANCEL );
485 buttons_->AddButton( buttons_Cancel );
486 buttons_->Realize();
487
488 gbSizer1->Add( buttons_, wxGBPosition( 3, 0 ), wxGBSpan( 1, 2 ), wxALL|wxEXPAND, 5 );
489
490
491 this->SetSizer( gbSizer1 );
492 this->Layout();
493 gbSizer1->Fit( this );
494
495 this->Centre( wxBOTH );
496}
497
498FormatDialog::~FormatDialog()
499{

Callers

nothing calls this directly

Calls 1

AddMethod · 0.80

Tested by

no test coverage detected