| 365 | } |
| 366 | |
| 367 | FileRenameDialog::FileRenameDialog( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxDialog( parent, id, title, pos, size, style ) |
| 368 | { |
| 369 | this->SetSizeHints( wxDefaultSize, wxDefaultSize ); |
| 370 | |
| 371 | wxGridBagSizer* gbSizer1; |
| 372 | gbSizer1 = new wxGridBagSizer( 0, 0 ); |
| 373 | gbSizer1->SetFlexibleDirection( wxBOTH ); |
| 374 | gbSizer1->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED ); |
| 375 | |
| 376 | m_staticText91 = new wxStaticText( this, wxID_ANY, wxT("Please specify the new name\n(and path) of the file."), wxDefaultPosition, wxDefaultSize, wxALIGN_CENTER_HORIZONTAL ); |
| 377 | m_staticText91->Wrap( -1 ); |
| 378 | gbSizer1->Add( m_staticText91, wxGBPosition( 0, 0 ), wxGBSpan( 1, 2 ), wxALIGN_CENTER_HORIZONTAL|wxALL, 5 ); |
| 379 | |
| 380 | m_staticText7 = new wxStaticText( this, wxID_ANY, wxT("Old name:"), wxDefaultPosition, wxDefaultSize, 0 ); |
| 381 | m_staticText7->Wrap( -1 ); |
| 382 | gbSizer1->Add( m_staticText7, wxGBPosition( 1, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxALL, 5 ); |
| 383 | |
| 384 | newNameText = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( 300,-1 ), 0 ); |
| 385 | gbSizer1->Add( newNameText, wxGBPosition( 2, 1 ), wxGBSpan( 1, 1 ), wxALL|wxEXPAND, 5 ); |
| 386 | |
| 387 | m_staticText9 = new wxStaticText( this, wxID_ANY, wxT("New name:"), wxDefaultPosition, wxDefaultSize, 0 ); |
| 388 | m_staticText9->Wrap( -1 ); |
| 389 | gbSizer1->Add( m_staticText9, wxGBPosition( 2, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxALL, 5 ); |
| 390 | |
| 391 | oldNameText = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_READONLY ); |
| 392 | oldNameText->Enable( false ); |
| 393 | |
| 394 | gbSizer1->Add( oldNameText, wxGBPosition( 1, 1 ), wxGBSpan( 1, 1 ), wxALL|wxEXPAND, 5 ); |
| 395 | |
| 396 | buttons_ = new wxStdDialogButtonSizer(); |
| 397 | buttons_OK = new wxButton( this, wxID_OK ); |
| 398 | buttons_->AddButton( buttons_OK ); |
| 399 | buttons_Cancel = new wxButton( this, wxID_CANCEL ); |
| 400 | buttons_->AddButton( buttons_Cancel ); |
| 401 | buttons_->Realize(); |
| 402 | |
| 403 | gbSizer1->Add( buttons_, wxGBPosition( 3, 0 ), wxGBSpan( 1, 2 ), wxALL|wxEXPAND, 5 ); |
| 404 | |
| 405 | |
| 406 | this->SetSizer( gbSizer1 ); |
| 407 | this->Layout(); |
| 408 | gbSizer1->Fit( this ); |
| 409 | |
| 410 | this->Centre( wxBOTH ); |
| 411 | } |
| 412 | |
| 413 | FileRenameDialog::~FileRenameDialog() |
| 414 | { |