| 415 | } |
| 416 | |
| 417 | CreateDirectoryDialog::CreateDirectoryDialog( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxDialog( parent, id, title, pos, size, style ) |
| 418 | { |
| 419 | this->SetSizeHints( wxDefaultSize, wxDefaultSize ); |
| 420 | |
| 421 | wxGridBagSizer* gbSizer1; |
| 422 | gbSizer1 = new wxGridBagSizer( 0, 0 ); |
| 423 | gbSizer1->SetFlexibleDirection( wxBOTH ); |
| 424 | gbSizer1->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED ); |
| 425 | |
| 426 | m_staticText91 = new wxStaticText( this, wxID_ANY, wxT("Please specify the name (and path)\nof the new directory."), wxDefaultPosition, wxDefaultSize, wxALIGN_CENTER_HORIZONTAL ); |
| 427 | m_staticText91->Wrap( -1 ); |
| 428 | gbSizer1->Add( m_staticText91, wxGBPosition( 0, 0 ), wxGBSpan( 1, 2 ), wxALIGN_CENTER_HORIZONTAL|wxALL, 5 ); |
| 429 | |
| 430 | newNameText = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( 300,-1 ), 0 ); |
| 431 | gbSizer1->Add( newNameText, wxGBPosition( 1, 1 ), wxGBSpan( 1, 1 ), wxALL|wxEXPAND, 5 ); |
| 432 | |
| 433 | m_staticText9 = new wxStaticText( this, wxID_ANY, wxT("Name:"), wxDefaultPosition, wxDefaultSize, 0 ); |
| 434 | m_staticText9->Wrap( -1 ); |
| 435 | gbSizer1->Add( m_staticText9, wxGBPosition( 1, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxALL, 5 ); |
| 436 | |
| 437 | buttons_ = new wxStdDialogButtonSizer(); |
| 438 | buttons_OK = new wxButton( this, wxID_OK ); |
| 439 | buttons_->AddButton( buttons_OK ); |
| 440 | buttons_Cancel = new wxButton( this, wxID_CANCEL ); |
| 441 | buttons_->AddButton( buttons_Cancel ); |
| 442 | buttons_->Realize(); |
| 443 | |
| 444 | gbSizer1->Add( buttons_, wxGBPosition( 2, 0 ), wxGBSpan( 1, 2 ), wxALL|wxEXPAND, 5 ); |
| 445 | |
| 446 | |
| 447 | this->SetSizer( gbSizer1 ); |
| 448 | this->Layout(); |
| 449 | gbSizer1->Fit( this ); |
| 450 | |
| 451 | this->Centre( wxBOTH ); |
| 452 | } |
| 453 | |
| 454 | CreateDirectoryDialog::~CreateDirectoryDialog() |
| 455 | { |