| 315 | } |
| 316 | |
| 317 | FileConflictDialog::FileConflictDialog( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxDialog( parent, id, title, pos, size, style ) |
| 318 | { |
| 319 | this->SetSizeHints( wxDefaultSize, wxDefaultSize ); |
| 320 | |
| 321 | wxGridBagSizer* gbSizer1; |
| 322 | gbSizer1 = new wxGridBagSizer( 0, 0 ); |
| 323 | gbSizer1->SetFlexibleDirection( wxBOTH ); |
| 324 | gbSizer1->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED ); |
| 325 | |
| 326 | m_staticText91 = new wxStaticText( this, wxID_ANY, wxT("That name is already in use.\nPlease specify another:"), wxDefaultPosition, wxDefaultSize, wxALIGN_CENTER_HORIZONTAL ); |
| 327 | m_staticText91->Wrap( -1 ); |
| 328 | gbSizer1->Add( m_staticText91, wxGBPosition( 0, 0 ), wxGBSpan( 1, 2 ), wxALIGN_CENTER_HORIZONTAL|wxALL, 5 ); |
| 329 | |
| 330 | m_staticText7 = new wxStaticText( this, wxID_ANY, wxT("Old name:"), wxDefaultPosition, wxDefaultSize, 0 ); |
| 331 | m_staticText7->Wrap( -1 ); |
| 332 | gbSizer1->Add( m_staticText7, wxGBPosition( 1, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxALL, 5 ); |
| 333 | |
| 334 | newNameText = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxSize( 300,-1 ), 0 ); |
| 335 | gbSizer1->Add( newNameText, wxGBPosition( 2, 1 ), wxGBSpan( 1, 1 ), wxALL|wxEXPAND, 5 ); |
| 336 | |
| 337 | m_staticText9 = new wxStaticText( this, wxID_ANY, wxT("New name:"), wxDefaultPosition, wxDefaultSize, 0 ); |
| 338 | m_staticText9->Wrap( -1 ); |
| 339 | gbSizer1->Add( m_staticText9, wxGBPosition( 2, 0 ), wxGBSpan( 1, 1 ), wxALIGN_CENTER_VERTICAL|wxALL, 5 ); |
| 340 | |
| 341 | oldNameText = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_READONLY ); |
| 342 | oldNameText->Enable( false ); |
| 343 | |
| 344 | gbSizer1->Add( oldNameText, wxGBPosition( 1, 1 ), wxGBSpan( 1, 1 ), wxALL|wxEXPAND, 5 ); |
| 345 | |
| 346 | buttons_ = new wxStdDialogButtonSizer(); |
| 347 | buttons_OK = new wxButton( this, wxID_OK ); |
| 348 | buttons_->AddButton( buttons_OK ); |
| 349 | buttons_Cancel = new wxButton( this, wxID_CANCEL ); |
| 350 | buttons_->AddButton( buttons_Cancel ); |
| 351 | buttons_->Realize(); |
| 352 | |
| 353 | gbSizer1->Add( buttons_, wxGBPosition( 3, 0 ), wxGBSpan( 1, 2 ), wxALL|wxEXPAND, 5 ); |
| 354 | |
| 355 | |
| 356 | this->SetSizer( gbSizer1 ); |
| 357 | this->Layout(); |
| 358 | gbSizer1->Fit( this ); |
| 359 | |
| 360 | this->Centre( wxBOTH ); |
| 361 | } |
| 362 | |
| 363 | FileConflictDialog::~FileConflictDialog() |
| 364 | { |