Changeset 41372 in vbox
- Timestamp:
- May 21, 2012 4:53:33 PM (12 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox
- Files:
-
- 60 edited
-
Makefile.kmk (modified) (8 diffs)
-
src/VBoxMediaManagerDlg.cpp (modified) (4 diffs)
-
src/globals/VBoxGlobal.cpp (modified) (4 diffs)
-
src/widgets/VBoxOSTypeSelectorWidget.cpp (modified) (1 diff)
-
src/wizards/UIWizard.cpp (modified) (3 diffs)
-
src/wizards/UIWizardPage.cpp (modified) (1 diff)
-
src/wizards/UIWizardPage.h (modified) (1 diff)
-
src/wizards/clonevd/UIWizardCloneVD.cpp (modified) (3 diffs)
-
src/wizards/clonevd/UIWizardCloneVD.h (modified) (3 diffs)
-
src/wizards/clonevd/UIWizardCloneVDPageBasic1.cpp (modified) (2 diffs)
-
src/wizards/clonevd/UIWizardCloneVDPageBasic1.h (modified) (2 diffs)
-
src/wizards/clonevd/UIWizardCloneVDPageBasic2.cpp (modified) (1 diff)
-
src/wizards/clonevd/UIWizardCloneVDPageBasic2.h (modified) (2 diffs)
-
src/wizards/clonevd/UIWizardCloneVDPageBasic3.cpp (modified) (1 diff)
-
src/wizards/clonevd/UIWizardCloneVDPageBasic3.h (modified) (2 diffs)
-
src/wizards/clonevd/UIWizardCloneVDPageBasic4.cpp (modified) (4 diffs)
-
src/wizards/clonevd/UIWizardCloneVDPageBasic4.h (modified) (2 diffs)
-
src/wizards/clonevd/UIWizardCloneVDPageExpert.cpp (modified) (3 diffs)
-
src/wizards/clonevd/UIWizardCloneVDPageExpert.h (modified) (1 diff)
-
src/wizards/clonevm/UIWizardCloneVMPageBasic1.cpp (modified) (3 diffs)
-
src/wizards/clonevm/UIWizardCloneVMPageBasic1.h (modified) (1 diff)
-
src/wizards/clonevm/UIWizardCloneVMPageBasic2.cpp (modified) (1 diff)
-
src/wizards/clonevm/UIWizardCloneVMPageBasic3.cpp (modified) (1 diff)
-
src/wizards/exportappliance/UIWizardExportApp.cpp (modified) (1 diff)
-
src/wizards/exportappliance/UIWizardExportAppPageBasic1.cpp (modified) (2 diffs)
-
src/wizards/exportappliance/UIWizardExportAppPageBasic1.h (modified) (2 diffs)
-
src/wizards/exportappliance/UIWizardExportAppPageBasic2.cpp (modified) (1 diff)
-
src/wizards/exportappliance/UIWizardExportAppPageBasic3.cpp (modified) (5 diffs)
-
src/wizards/exportappliance/UIWizardExportAppPageBasic4.cpp (modified) (2 diffs)
-
src/wizards/exportappliance/UIWizardExportAppPageBasic4.h (modified) (2 diffs)
-
src/wizards/exportappliance/UIWizardExportAppPageExpert.cpp (modified) (2 diffs)
-
src/wizards/exportappliance/UIWizardExportAppPageExpert.h (modified) (2 diffs)
-
src/wizards/firstrun/UIWizardFirstRun.cpp (modified) (3 diffs)
-
src/wizards/firstrun/UIWizardFirstRun.h (modified) (1 diff)
-
src/wizards/firstrun/UIWizardFirstRunPageBasic2.cpp (modified) (3 diffs)
-
src/wizards/firstrun/UIWizardFirstRunPageBasic2.h (modified) (1 diff)
-
src/wizards/importappliance/UIWizardImportApp.cpp (modified) (1 diff)
-
src/wizards/importappliance/UIWizardImportAppPageBasic1.cpp (modified) (1 diff)
-
src/wizards/importappliance/UIWizardImportAppPageBasic2.cpp (modified) (1 diff)
-
src/wizards/importappliance/UIWizardImportAppPageExpert.cpp (modified) (4 diffs)
-
src/wizards/importappliance/UIWizardImportAppPageExpert.h (modified) (2 diffs)
-
src/wizards/newvd/UIWizardNewVD.cpp (modified) (3 diffs)
-
src/wizards/newvd/UIWizardNewVD.h (modified) (3 diffs)
-
src/wizards/newvd/UIWizardNewVDPageBasic1.cpp (modified) (1 diff)
-
src/wizards/newvd/UIWizardNewVDPageBasic1.h (modified) (2 diffs)
-
src/wizards/newvd/UIWizardNewVDPageBasic2.cpp (modified) (1 diff)
-
src/wizards/newvd/UIWizardNewVDPageBasic2.h (modified) (2 diffs)
-
src/wizards/newvd/UIWizardNewVDPageBasic3.cpp (modified) (3 diffs)
-
src/wizards/newvd/UIWizardNewVDPageBasic3.h (modified) (2 diffs)
-
src/wizards/newvd/UIWizardNewVDPageExpert.cpp (modified) (1 diff)
-
src/wizards/newvd/UIWizardNewVDPageExpert.h (modified) (1 diff)
-
src/wizards/newvm/UIWizardNewVM.cpp (modified) (6 diffs)
-
src/wizards/newvm/UIWizardNewVM.h (modified) (2 diffs)
-
src/wizards/newvm/UIWizardNewVMPageBasic2.cpp (modified) (1 diff)
-
src/wizards/newvm/UIWizardNewVMPageBasic3.cpp (modified) (3 diffs)
-
src/wizards/newvm/UIWizardNewVMPageBasic3.h (modified) (1 diff)
-
src/wizards/newvm/UIWizardNewVMPageBasic4.cpp (modified) (5 diffs)
-
src/wizards/newvm/UIWizardNewVMPageBasic4.h (modified) (1 diff)
-
src/wizards/newvm/UIWizardNewVMPageExpert.cpp (modified) (2 diffs)
-
src/wizards/newvm/UIWizardNewVMPageExpert.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/Makefile.kmk
r41107 r41372 361 361 src/wizards/UIWizardPage.h \ 362 362 src/wizards/newvm/UIWizardNewVM.h \ 363 src/wizards/newvm/UIWizardNewVMPageBasic1.h \364 363 src/wizards/newvm/UIWizardNewVMPageBasic2.h \ 365 364 src/wizards/newvm/UIWizardNewVMPageBasic3.h \ 366 365 src/wizards/newvm/UIWizardNewVMPageBasic4.h \ 367 src/wizards/newvm/UIWizardNewVMPageBasic5.h \368 366 src/wizards/newvm/UIWizardNewVMPageExpert.h \ 369 367 src/wizards/newvd/UIWizardNewVD.h \ … … 371 369 src/wizards/newvd/UIWizardNewVDPageBasic2.h \ 372 370 src/wizards/newvd/UIWizardNewVDPageBasic3.h \ 373 src/wizards/newvd/UIWizardNewVDPageBasic4.h \374 371 src/wizards/newvd/UIWizardNewVDPageExpert.h \ 375 372 src/wizards/clonevm/UIWizardCloneVM.h \ … … 383 380 src/wizards/clonevd/UIWizardCloneVDPageBasic3.h \ 384 381 src/wizards/clonevd/UIWizardCloneVDPageBasic4.h \ 385 src/wizards/clonevd/UIWizardCloneVDPageBasic5.h \386 382 src/wizards/clonevd/UIWizardCloneVDPageExpert.h \ 387 383 src/wizards/exportappliance/UIWizardExportApp.h \ … … 396 392 src/wizards/importappliance/UIWizardImportAppPageExpert.h \ 397 393 src/wizards/firstrun/UIWizardFirstRun.h \ 398 src/wizards/firstrun/UIWizardFirstRunPageBasic1.h \ 399 src/wizards/firstrun/UIWizardFirstRunPageBasic2.h \ 400 src/wizards/firstrun/UIWizardFirstRunPageBasic3.h \ 401 src/wizards/firstrun/UIWizardFirstRunPageExpert.h 394 src/wizards/firstrun/UIWizardFirstRunPageBasic2.h 402 395 403 396 VirtualBox_QT_MOCHDRS.darwin += \ … … 577 570 src/wizards/UIWizardPage.cpp \ 578 571 src/wizards/newvm/UIWizardNewVM.cpp \ 579 src/wizards/newvm/UIWizardNewVMPageBasic1.cpp \580 572 src/wizards/newvm/UIWizardNewVMPageBasic2.cpp \ 581 573 src/wizards/newvm/UIWizardNewVMPageBasic3.cpp \ 582 574 src/wizards/newvm/UIWizardNewVMPageBasic4.cpp \ 583 src/wizards/newvm/UIWizardNewVMPageBasic5.cpp \584 575 src/wizards/newvm/UIWizardNewVMPageExpert.cpp \ 585 576 src/wizards/newvd/UIWizardNewVD.cpp \ … … 587 578 src/wizards/newvd/UIWizardNewVDPageBasic2.cpp \ 588 579 src/wizards/newvd/UIWizardNewVDPageBasic3.cpp \ 589 src/wizards/newvd/UIWizardNewVDPageBasic4.cpp \590 580 src/wizards/newvd/UIWizardNewVDPageExpert.cpp \ 591 581 src/wizards/clonevm/UIWizardCloneVM.cpp \ … … 599 589 src/wizards/clonevd/UIWizardCloneVDPageBasic3.cpp \ 600 590 src/wizards/clonevd/UIWizardCloneVDPageBasic4.cpp \ 601 src/wizards/clonevd/UIWizardCloneVDPageBasic5.cpp \602 591 src/wizards/clonevd/UIWizardCloneVDPageExpert.cpp \ 603 592 src/wizards/exportappliance/UIWizardExportApp.cpp \ … … 612 601 src/wizards/importappliance/UIWizardImportAppPageExpert.cpp \ 613 602 src/wizards/firstrun/UIWizardFirstRun.cpp \ 614 src/wizards/firstrun/UIWizardFirstRunPageBasic1.cpp \ 615 src/wizards/firstrun/UIWizardFirstRunPageBasic2.cpp \ 616 src/wizards/firstrun/UIWizardFirstRunPageBasic3.cpp \ 617 src/wizards/firstrun/UIWizardFirstRunPageExpert.cpp 603 src/wizards/firstrun/UIWizardFirstRunPageBasic2.cpp 618 604 619 605 VirtualBox_SOURCES.win += \ -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxMediaManagerDlg.cpp
r40870 r41372 625 625 mRefreshAction->setShortcut (QKeySequence (QKeySequence::Refresh)); 626 626 627 mNewAction->setStatusTip (tr ("Create a new virtual hard d isk"));627 mNewAction->setStatusTip (tr ("Create a new virtual hard drive")); 628 628 mAddAction->setStatusTip (tr ("Add an existing medium")); 629 629 mCopyAction->setStatusTip (tr ("Copy an existing medium")); … … 1007 1007 switch (type) 1008 1008 { 1009 case VBoxDefs::MediumType_HardDisk: 1010 { 1011 filterList = vboxGlobal().HDDBackends(); 1012 title = VBoxGlobal::tr("Please choose a virtual hard drive file"); 1013 allType = VBoxGlobal::tr("All virtual hard drive files (%1)"); 1014 break; 1015 } 1009 1016 case VBoxDefs::MediumType_DVD: 1010 1017 { 1011 1018 filterList = vboxGlobal().DVDBackends(); 1012 title = tr ("Select a CD/DVD-ROM disk image file"); 1013 allType = tr ("CD/DVD-ROM disk"); 1014 break; 1015 } 1016 case VBoxDefs::MediumType_HardDisk: 1017 { 1018 filterList = vboxGlobal().HDDBackends(); 1019 title = tr ("Select a hard disk image file"); 1020 allType = tr ("hard disk"); 1019 title = VBoxGlobal::tr("Please choose a virtual optical disk file"); 1020 allType = VBoxGlobal::tr("All virtual optical disk files (%1)"); 1021 1021 break; 1022 1022 } … … 1024 1024 { 1025 1025 filterList = vboxGlobal().FloppyBackends(); 1026 title = tr ("Select a floppy disk imagefile");1027 allType = tr ("floppy disk");1026 title = VBoxGlobal::tr("Please choose a virtual floppy disk file"); 1027 allType = VBoxGlobal::tr("All virtual floppy disk files (%1)"); 1028 1028 break; 1029 1029 } … … 1042 1042 } 1043 1043 if (!allPrefix.isEmpty()) 1044 backends.insert (0, tr ("All %1 images (%2)").arg (allType). arg (allPrefix.join(" ").trimmed()));1044 backends.insert(0, allType.arg(allPrefix.join(" ").trimmed())); 1045 1045 backends << tr ("All files (*)"); 1046 1046 filter = backends.join (";;").trimmed(); -
trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.cpp
r41331 r41372 2690 2690 { 2691 2691 filters = vboxGlobal().HDDBackends(); 2692 strTitle = tr ("Choose a virtual hard diskfile");2693 allType = tr ("hard disk");2692 strTitle = tr("Please choose a virtual hard drive file"); 2693 allType = tr("All virtual hard drive files (%1)"); 2694 2694 strLastFolder = virtualBox().GetExtraData(VBoxDefs::GUI_RecentFolderHD); 2695 2695 if (strLastFolder.isEmpty()) … … 2702 2702 { 2703 2703 filters = vboxGlobal().DVDBackends(); 2704 strTitle = tr ("Choose a virtual CD/DVDdisk file");2705 allType = tr ("CD/DVD-ROM disk");2704 strTitle = tr("Please choose a virtual optical disk file"); 2705 allType = tr("All virtual optical disk files (%1)"); 2706 2706 strLastFolder = virtualBox().GetExtraData(VBoxDefs::GUI_RecentFolderCD); 2707 2707 if (strLastFolder.isEmpty()) … … 2714 2714 { 2715 2715 filters = vboxGlobal().FloppyBackends(); 2716 strTitle = tr ("Choose a virtual floppy disk file");2717 allType = tr ("floppy disk");2716 strTitle = tr("Please choose a virtual floppy disk file"); 2717 allType = tr("All virtual floppy disk files (%1)"); 2718 2718 strLastFolder = virtualBox().GetExtraData(VBoxDefs::GUI_RecentFolderFD); 2719 2719 if (strLastFolder.isEmpty()) … … 2740 2740 } 2741 2741 if (!prefixes.isEmpty()) 2742 backends.insert(0, tr("All %1 images (%2)").arg(allType).arg(prefixes.join(" ").trimmed()));2742 backends.insert(0, allType.arg(prefixes.join(" ").trimmed())); 2743 2743 backends << tr("All files (*)"); 2744 2744 strFilter = backends.join(";;").trimmed(); -
trunk/src/VBox/Frontends/VirtualBox/src/widgets/VBoxOSTypeSelectorWidget.cpp
r39968 r41372 152 152 void VBoxOSTypeSelectorWidget::retranslateUi() 153 153 { 154 mTxFamilyName->setText (tr (" Operating &System:"));154 mTxFamilyName->setText (tr ("&Type:")); 155 155 mCbFamily->setWhatsThis (tr ("Displays the operating system family that " 156 156 "you plan to install into this virtual machine.")); -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/UIWizard.cpp
r41021 r41372 39 39 void UIWizard::sltCurrentIdChanged(int iId) 40 40 { 41 /* Enable 1st button (Hide/Show Description) for 1st page only: */ 42 setOption(QWizard::HaveCustomButton1, iId == 0); 41 /* Hide/show description button disabled by default: */ 42 bool fIsHideShowDescriptionButtonAvailable = false; 43 /* Enable hide/show description button for 1st page: */ 44 if (iId == 0) 45 fIsHideShowDescriptionButtonAvailable = true; 46 /* But first-run wizard has no such button anyway: */ 47 if (m_type == UIWizardType_FirstRun) 48 fIsHideShowDescriptionButtonAvailable = false; 49 /* Set a flag for hide/show description button finally: */ 50 setOption(QWizard::HaveCustomButton1, fIsHideShowDescriptionButtonAvailable); 43 51 } 44 52 … … 401 409 case UIWizardType_NewVD: 402 410 case UIWizardType_CloneVD: 411 case UIWizardType_ExportAppliance: 403 412 dRatio += 0.3; 413 break; 414 case UIWizardType_FirstRun: 415 dRatio += 0.4; 404 416 break; 405 417 default: … … 532 544 UIWizardMode UIWizard::loadModeForType(UIWizardType type) 533 545 { 534 /* Default mode is Basic: */ 535 UIWizardMode mode = UIWizardMode_Basic; 546 /* Some wizard use only basic mode: */ 547 if (type == UIWizardType_FirstRun) 548 return UIWizardMode_Basic; 536 549 /* Get mode from extra-data: */ 537 550 QStringList wizards = vboxGlobal().virtualBox().GetExtraDataStringList(VBoxDefs::GUI_HideDescriptionForWizards); 538 551 if (wizards.contains(nameForType(type))) 539 mode =UIWizardMode_Expert;552 return UIWizardMode_Expert; 540 553 /* Return mode: */ 541 return mode;542 } 543 554 return UIWizardMode_Basic; 555 } 556 -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/UIWizardPage.cpp
r41021 r41372 70 70 } 71 71 72 QString UIWizardPage::standardHelpText() const73 {74 return tr("Use the <b>%1</b> button to go to the next page of the wizard and the "75 "<b>%2</b> button to return to the previous page. "76 "You can also press <b>%3</b> if you want to cancel the execution "77 "of this wizard.</p>")78 .arg(VBoxGlobal::replaceHtmlEntities(VBoxGlobal::removeAccelMark(wizard()->buttonText(QWizard::NextButton).remove(" >"))))79 .arg(VBoxGlobal::replaceHtmlEntities(VBoxGlobal::removeAccelMark(wizard()->buttonText(QWizard::BackButton).remove("< "))))80 #ifdef Q_WS_MAC81 .arg(QKeySequence("ESC").toString()); /* There is no button shown on Mac OS X, so just say the key sequence. */82 #else /* Q_WS_MAC */83 .arg(VBoxGlobal::replaceHtmlEntities(VBoxGlobal::removeAccelMark(wizard()->buttonText(QWizard::CancelButton))));84 #endif /* Q_WS_MAC */85 }86 87 72 void UIWizardPage::startProcessing() 88 73 { -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/UIWizardPage.h
r41021 r41372 67 67 /* Helpers: */ 68 68 UIWizard* wizard() const; 69 QString standardHelpText() const;70 69 void startProcessing(); 71 70 void endProcessing(); -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/clonevd/UIWizardCloneVD.cpp
r41331 r41372 27 27 #include "UIWizardCloneVDPageBasic3.h" 28 28 #include "UIWizardCloneVDPageBasic4.h" 29 #include "UIWizardCloneVDPageBasic5.h"30 29 #include "UIWizardCloneVDPageExpert.h" 31 30 #include "VBoxGlobal.h" … … 102 101 103 102 /* Translate wizard: */ 104 setWindowTitle(tr("Copy Virtual Disk"));103 setWindowTitle(tr("Copy Virtual Hard Drive")); 105 104 setButtonText(QWizard::FinishButton, tr("Copy")); 106 105 } … … 117 116 setPage(Page3, new UIWizardCloneVDPageBasic3); 118 117 setPage(Page4, new UIWizardCloneVDPageBasic4); 119 setPage(Page5, new UIWizardCloneVDPageBasic5);120 118 break; 121 119 } -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/clonevd/UIWizardCloneVD.h
r41331 r41372 24 24 #include "COMDefs.h" 25 25 26 /* Clone Virtual Diskwizard: */26 /* Clone Virtual Hard Drive wizard: */ 27 27 class UIWizardCloneVD : public UIWizard 28 28 { … … 37 37 Page2, 38 38 Page3, 39 Page4, 40 Page5 39 Page4 41 40 }; 42 41 … … 59 58 60 59 /* Who will be able to copy virtual-disk: */ 61 friend class UIWizardCloneVDPageBasic 5;60 friend class UIWizardCloneVDPageBasic4; 62 61 friend class UIWizardCloneVDPageExpert; 63 62 -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/clonevd/UIWizardCloneVDPageBasic1.cpp
r41021 r41372 104 104 /* Call to base-class: */ 105 105 onHandleOpenSourceDiskClick(); 106 107 /* Broadcast complete-change: */ 108 emit completeChanged(); 106 109 } 107 110 … … 109 112 { 110 113 /* Translate page: */ 111 setTitle(UIWizardCloneVD::tr(" Welcome to the Copy Virtual Disk wizard!"));114 setTitle(UIWizardCloneVD::tr("Hard drive to copy")); 112 115 113 116 /* Translate widgets: */ 114 m_pLabel->setText(UIWizardCloneVD::tr("<p>This wizard will help you to copy a virtual disk.</p>")); 115 m_pLabel->setText(m_pLabel->text() + QString("<p>%1</p>").arg(standardHelpText())); 116 m_pLabel->setText(m_pLabel->text() + UIWizardCloneVD::tr("Please select the virtual disk which you would like " 117 "to copy if it is not already selected. You can either " 118 "choose one from the list or use the folder icon " 119 "beside the list to select a virtual disk file.")); 120 m_pSourceDiskCnt->setTitle(UIWizardCloneVD::tr("Virtual disk to copy")); 121 m_pSourceDiskOpenButton->setToolTip(UIWizardCloneVD::tr("Choose a virtual hard disk file...")); 117 m_pLabel->setText(UIWizardCloneVD::tr("<p>Please select the virtual hard drive file that you would like to copy " 118 "if it is not already selected. You can either choose one from the list " 119 "or use the folder icon beside the list to select one.</p>")); 120 m_pSourceDiskCnt->setTitle(UIWizardCloneVD::tr("Hard drive to ©")); 121 m_pSourceDiskOpenButton->setToolTip(UIWizardCloneVD::tr("Choose a virtual hard drive file to copy...")); 122 122 } 123 123 -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/clonevd/UIWizardCloneVDPageBasic1.h
r41021 r41372 30 30 class QIRichTextLabel; 31 31 32 /* 1st page of the Clone Virtual Diskwizard (base part): */32 /* 1st page of the Clone Virtual Hard Drive wizard (base part): */ 33 33 class UIWizardCloneVDPage1 : public UIWizardPageBase 34 34 { … … 51 51 }; 52 52 53 /* 1st page of the Clone Virtual Diskwizard (basic extension): */53 /* 1st page of the Clone Virtual Hard Drive wizard (basic extension): */ 54 54 class UIWizardCloneVDPageBasic1 : public UIWizardPage, public UIWizardCloneVDPage1 55 55 { -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/clonevd/UIWizardCloneVDPageBasic2.cpp
r41331 r41372 137 137 { 138 138 /* Translate page: */ 139 setTitle(UIWizardCloneVD::tr(" Virtual disk file type"));139 setTitle(UIWizardCloneVD::tr("File type")); 140 140 141 141 /* Translate widgets: */ 142 m_pLabel->setText(UIWizardCloneVD::tr("Please choose the type of file that you would like " 143 "to use for the new virtual disk. If you do not need " 144 "to use it with other virtualization software you can " 145 "leave this setting unchanged.")); 142 m_pLabel->setText(UIWizardCloneVD::tr("Please choose the type of file that you would like to use " 143 "for the new virtual hard drive. If you do not need to use it " 144 "with other virtualization software you can leave this setting unchanged.")); 146 145 m_pFormatCnt->setTitle(UIWizardCloneVD::tr("File &type")); 147 146 QList<QAbstractButton*> buttons = m_pFormatButtonGroup->buttons(); -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/clonevd/UIWizardCloneVDPageBasic2.h
r41021 r41372 31 31 class QIRichTextLabel; 32 32 33 /* 2nd page of the Clone Virtual Diskwizard (base part): */33 /* 2nd page of the Clone Virtual Hard Drive wizard (base part): */ 34 34 class UIWizardCloneVDPage2 : public UIWizardPageBase 35 35 { … … 55 55 }; 56 56 57 /* 2nd page of the Clone Virtual Diskwizard (basic extension): */57 /* 2nd page of the Clone Virtual Hard Drive wizard (basic extension): */ 58 58 class UIWizardCloneVDPageBasic2 : public UIWizardPage, public UIWizardCloneVDPage2 59 59 { -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/clonevd/UIWizardCloneVDPageBasic3.cpp
r41021 r41372 122 122 { 123 123 /* Translate page: */ 124 setTitle(UIWizardCloneVD::tr(" Virtual disk storage details"));124 setTitle(UIWizardCloneVD::tr("Storage details")); 125 125 126 126 /* Translate widgets: */ 127 m_pDescriptionLabel->setText(UIWizardCloneVD::tr("Please choose whether the new virtual diskfile should be "127 m_pDescriptionLabel->setText(UIWizardCloneVD::tr("Please choose whether the new virtual hard drive file should be " 128 128 "allocated as it is used or if it should be created fully allocated.")); 129 m_pDynamicLabel->setText(UIWizardCloneVD::tr("<p>A <b>dynamically allocated</b> virtual disk file will only use space on"130 " your physical hard diskas it fills up (up to a <b>fixed maximum size</b>), "129 m_pDynamicLabel->setText(UIWizardCloneVD::tr("<p>A <b>dynamically allocated</b> hard drive file will only use space " 130 "on your physical hard drive as it fills up (up to a <b>fixed maximum size</b>), " 131 131 "although it will not shrink again automatically when space on it is freed.</p>")); 132 m_pFixedLabel->setText(UIWizardCloneVD::tr("<p>A <b>fixed size</b> virtual diskfile may take longer to create on some "132 m_pFixedLabel->setText(UIWizardCloneVD::tr("<p>A <b>fixed size</b> hard drive file may take longer to create on some " 133 133 "systems but is often faster to use.</p>")); 134 m_pSplitLabel->setText(UIWizardCloneVD::tr("<p>You can also choose to <b>split</b> the virtual diskinto several files "134 m_pSplitLabel->setText(UIWizardCloneVD::tr("<p>You can also choose to <b>split</b> the hard drive file into several files " 135 135 "of up to two gigabytes each. This is mainly useful if you wish to store the " 136 136 "virtual machine on removable USB devices or old systems, some of which cannot " 137 137 "handle very large files.")); 138 139 138 m_pVariantCnt->setTitle(UIWizardCloneVD::tr("Storage details")); 140 139 m_pDynamicalButton->setText(UIWizardCloneVD::tr("&Dynamically allocated")); -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/clonevd/UIWizardCloneVDPageBasic3.h
r41021 r41372 30 30 class QIRichTextLabel; 31 31 32 /* 3rd page of the Clone Virtual Diskwizard (base part): */32 /* 3rd page of the Clone Virtual Hard Drive wizard (base part): */ 33 33 class UIWizardCloneVDPage3 : public UIWizardPageBase 34 34 { … … 50 50 }; 51 51 52 /* 3rd page of the Clone Virtual Diskwizard (basic extension): */52 /* 3rd page of the Clone Virtual Hard Drive wizard (basic extension): */ 53 53 class UIWizardCloneVDPageBasic3 : public UIWizardPage, public UIWizardCloneVDPage3 54 54 { -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/clonevd/UIWizardCloneVDPageBasic4.cpp
r41021 r41372 79 79 QString strChosenFilePath = QIFileDialog::getSaveFileName(folder.absoluteFilePath(strFileName), 80 80 strBackendsList, thisImp(), 81 VBoxGlobal::tr("Choose a virtual hard diskfile"));81 UIWizardCloneVD::tr("Please choose a location for new virtual hard drive file")); 82 82 83 83 /* If there was something really chosen: */ … … 197 197 { 198 198 /* Translate page: */ 199 setTitle(UIWizardCloneVD::tr(" Virtual disk filelocation"));199 setTitle(UIWizardCloneVD::tr("Copy location")); 200 200 201 201 /* Translate widgets: */ 202 m_pLabel->setText(UIWizardCloneVD::tr("Please type the name of the new virtual diskfile into the box below or "202 m_pLabel->setText(UIWizardCloneVD::tr("Please type the name of the new virtual hard drive file into the box below or " 203 203 "click on the folder icon to select a different folder to create the file in.")); 204 m_pDestinationCnt->setTitle(UIWizardCloneVD::tr(" &Location"));205 m_pDestinationDiskOpenButton->setToolTip(UIWizardCloneVD::tr("Choose a virtual hard diskfile..."));204 m_pDestinationCnt->setTitle(UIWizardCloneVD::tr("Copy &location")); 205 m_pDestinationDiskOpenButton->setToolTip(UIWizardCloneVD::tr("Choose a location for new virtual hard drive file...")); 206 206 } 207 207 … … 218 218 m_strDefaultExtension = defaultExtension(field("mediumFormat").value<CMediumFormat>()); 219 219 /* Compose default-name for virtual-disk copy: */ 220 QString strMediumName = UIWizardCloneVD::tr("%1_copy", "copied virtual diskname").arg(sourceFileInfo.baseName());220 QString strMediumName = UIWizardCloneVD::tr("%1_copy", "copied virtual hard drive name").arg(sourceFileInfo.baseName()); 221 221 /* Set default-name as text for location editor: */ 222 222 m_pDestinationDiskEditor->setText(strMediumName); … … 231 231 bool UIWizardCloneVDPageBasic4::validatePage() 232 232 { 233 /* Make sure such virtual-disk doesn't exists already: */ 233 /* Initial result: */ 234 bool fResult = true; 235 236 /* Make sure such file doesn't exists already: */ 234 237 QString strMediumPath(mediumPath()); 235 if (QFileInfo(strMediumPath).exists())236 {238 fResult = !QFileInfo(strMediumPath).exists(); 239 if (!fResult) 237 240 msgCenter().sayCannotOverwriteHardDiskStorage(this, strMediumPath); 238 return false; 239 } 240 return true; 241 } 242 241 242 if (fResult) 243 { 244 /* Lock finish button: */ 245 startProcessing(); 246 247 /* Try to copy virtual hard drive file: */ 248 fResult = qobject_cast<UIWizardCloneVD*>(wizard())->copyVirtualDisk(); 249 250 /* Unlock finish button: */ 251 endProcessing(); 252 } 253 254 /* Return result: */ 255 return fResult; 256 } 257 -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/clonevd/UIWizardCloneVDPageBasic4.h
r41021 r41372 34 34 class QIRichTextLabel; 35 35 36 /* 4th page of the Clone Virtual Diskwizard (base part): */36 /* 4th page of the Clone Virtual Hard Drive wizard (base part): */ 37 37 class UIWizardCloneVDPage4 : public UIWizardPageBase 38 38 { … … 66 66 }; 67 67 68 /* 4th page of the Clone Virtual Diskwizard (basic extension): */68 /* 4th page of the Clone Virtual Hard Drive wizard (basic extension): */ 69 69 class UIWizardCloneVDPageBasic4 : public UIWizardPage, public UIWizardCloneVDPage4 70 70 { -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/clonevd/UIWizardCloneVDPageExpert.cpp
r41331 r41372 191 191 m_strDefaultPath = sourceFileInfo.absolutePath(); 192 192 /* Compose name for virtual-disk copy: */ 193 QString strMediumName = UIWizardCloneVD::tr("%1_copy", "copied virtual diskname").arg(sourceFileInfo.baseName());193 QString strMediumName = UIWizardCloneVD::tr("%1_copy", "copied virtual hard drive name").arg(sourceFileInfo.baseName()); 194 194 /* Set text to location editor: */ 195 195 m_pDestinationDiskEditor->setText(strMediumName); … … 203 203 /* Call to base-class: */ 204 204 onHandleOpenSourceDiskClick(); 205 206 /* Broadcast complete-change: */ 207 emit completeChanged(); 205 208 } 206 209 … … 235 238 { 236 239 /* Translate widgets: */ 237 m_pSourceDiskCnt->setTitle(UIWizardCloneVD::tr(" &Source virtual disk"));238 m_pSourceDiskOpenButton->setToolTip(UIWizardCloneVD::tr("Choose a virtual hard d isk file..."));239 m_pDestinationCnt->setTitle(UIWizardCloneVD::tr(" &Destination virtual disk"));240 m_pDestinationDiskOpenButton->setToolTip(UIWizardCloneVD::tr("Choose a virtual hard diskfile..."));240 m_pSourceDiskCnt->setTitle(UIWizardCloneVD::tr("Hard drive to ©")); 241 m_pSourceDiskOpenButton->setToolTip(UIWizardCloneVD::tr("Choose a virtual hard drive file to copy...")); 242 m_pDestinationCnt->setTitle(UIWizardCloneVD::tr("Copy &location")); 243 m_pDestinationDiskOpenButton->setToolTip(UIWizardCloneVD::tr("Choose a location for new virtual hard drive file...")); 241 244 m_pFormatCnt->setTitle(UIWizardCloneVD::tr("File &type")); 242 245 QList<QAbstractButton*> buttons = m_pFormatButtonGroup->buttons(); -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/clonevd/UIWizardCloneVDPageExpert.h
r41021 r41372 25 25 #include "UIWizardCloneVDPageBasic3.h" 26 26 #include "UIWizardCloneVDPageBasic4.h" 27 #include "UIWizardCloneVDPageBasic5.h"28 27 29 /* Expert page of the Clone Virtual Diskwizard: */28 /* Expert page of the Clone Virtual Hard Drive wizard: */ 30 29 class UIWizardCloneVDPageExpert : public UIWizardPage, 31 30 public UIWizardCloneVDPage1, 32 31 public UIWizardCloneVDPage2, 33 32 public UIWizardCloneVDPage3, 34 public UIWizardCloneVDPage4, 35 public UIWizardCloneVDPage5 33 public UIWizardCloneVDPage4 36 34 { 37 35 Q_OBJECT; -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/clonevm/UIWizardCloneVMPageBasic1.cpp
r41021 r41372 57 57 { 58 58 m_pLabel1 = new QIRichTextLabel(this); 59 m_pLabel2 = new QIRichTextLabel(this);60 59 m_pNameCnt = new QGroupBox(this); 61 60 { … … 71 70 m_pReinitMACsCheckBox = new QCheckBox(this); 72 71 pMainLayout->addWidget(m_pLabel1); 73 pMainLayout->addWidget(m_pLabel2);74 72 pMainLayout->addWidget(m_pNameCnt); 75 73 pMainLayout->addWidget(m_pReinitMACsCheckBox); … … 88 86 { 89 87 /* Translate page: */ 90 setTitle(UIWizardCloneVM::tr(" Welcome to the Clone Virtual Machine wizard!"));88 setTitle(UIWizardCloneVM::tr("Name")); 91 89 92 90 /* Translate widgets: */ 93 m_pLabel1->setText(UIWizardCloneVM::tr("<p> This wizard will help you to create a clone of your virtual machine.</p>"));94 m_pLabel1->setText(m_pLabel1->text() + QString("<p>%1</p>").arg(standardHelpText()));95 m_pLabel2->setText(UIWizardCloneVM::tr("<p>Please choose a name for the new virtual machine:</p>"));91 m_pLabel1->setText(UIWizardCloneVM::tr("<p>Please choose a name for the new virtual machine. " 92 "The new machine will be a clone of the machine <b>%1</b>.</p>") 93 .arg(m_strOriginalName)); 96 94 m_pNameCnt->setTitle(UIWizardCloneVM::tr("&Name")); 97 95 m_pReinitMACsCheckBox->setToolTip(UIWizardCloneVM::tr("When checked a new unique MAC address will be assigned to all configured network cards.")); -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/clonevm/UIWizardCloneVMPageBasic1.h
r41021 r41372 78 78 /* Widgets: */ 79 79 QIRichTextLabel *m_pLabel1; 80 QIRichTextLabel *m_pLabel2;81 80 }; 82 81 -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/clonevm/UIWizardCloneVMPageBasic2.cpp
r41021 r41372 91 91 { 92 92 /* Translate page: */ 93 setTitle(UIWizardCloneVM::tr(" Cloning Configuration"));93 setTitle(UIWizardCloneVM::tr("Type")); 94 94 95 95 /* Translate widgets: */ 96 QString strLabel = UIWizardCloneVM::tr("<p>Please select the type of the clone.</p><p>If you choose <b>Full Clone</b> an exact copy " 97 "(including all virtual disk images) of the original VM will be created. If you select <b>Linked Clone</b>, " 98 "a new VM will be created, but the virtual disk images will point to the virtual disk images of original VM.</p>"); 96 QString strLabel = UIWizardCloneVM::tr("<p>Please select the type of the clone.</p>" 97 "<p>If you choose <b>Full clone</b>, " 98 "an exact copy (including all virtual hard drive images) " 99 "of the original VM will be created.</p>" 100 "<p>If you select <b>Linked clone</b>, " 101 "a new VM will be created, but the virtual hard drive images " 102 "will point to the virtual hard drive images of original VM.</p>"); 99 103 if (m_fAdditionalInfo) 100 strLabel += UIWizardCloneVM::tr("<p>Note that a new snapshot within the source VM is created in case you select <b>Linked Clone</b>.</p>");104 strLabel += UIWizardCloneVM::tr("<p>Note that a new snapshot within the source VM is created in case you select <b>Linked clone</b>.</p>"); 101 105 m_pLabel->setText(strLabel); 102 106 103 107 m_pCloneTypeCnt->setTitle(UIWizardCloneVM::tr("&Type")); 104 m_pFullCloneRadio->setText(UIWizardCloneVM::tr("Full Clone"));105 m_pLinkedCloneRadio->setText(UIWizardCloneVM::tr("Linked Clone"));108 m_pFullCloneRadio->setText(UIWizardCloneVM::tr("Full clone")); 109 m_pLinkedCloneRadio->setText(UIWizardCloneVM::tr("Linked clone")); 106 110 } 107 111 -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/clonevm/UIWizardCloneVMPageBasic3.cpp
r41021 r41372 92 92 { 93 93 /* Translate page: */ 94 setTitle(UIWizardCloneVM::tr(" Cloning Configuration"));94 setTitle(UIWizardCloneVM::tr("Mode")); 95 95 96 96 /* Translate widgets: */ 97 const QString strGeneral = UIWizardCloneVM::tr(" Please choose which parts of the virtual machine should be cloned.");98 const QString strOpt1 = UIWizardCloneVM::tr(" If you select <b>Current machine state</b>, only the current state"99 "o f the virtual machine is cloned.");100 const QString strOpt2 = UIWizardCloneVM::tr(" If you select <b>Current machine and all child states</b> the current state"101 " of the virtual machine and any states of child snapshots are cloned.");102 const QString strOpt3 = UIWizardCloneVM::tr(" If you select <b>All states</b>, the current machine state"103 " and all snapshots are cloned.");97 const QString strGeneral = UIWizardCloneVM::tr("<p>Please choose which parts of the virtual machine should be cloned.</p>"); 98 const QString strOpt1 = UIWizardCloneVM::tr("<p>If you select <b>Current machine state</b>, " 99 "only the current state of the virtual machine is cloned.</p>"); 100 const QString strOpt2 = UIWizardCloneVM::tr("<p>If you select <b>Current machine and all child states</b>, " 101 "the current state of the virtual machine and any states of child snapshots are cloned.</p>"); 102 const QString strOpt3 = UIWizardCloneVM::tr("<p>If you select <b>All states</b>, " 103 "the current machine state and all snapshots are cloned.</p>"); 104 104 if (m_fShowChildsOption) 105 105 m_pLabel->setText(QString("<p>%1</p><p>%2 %3 %4</p>") -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/exportappliance/UIWizardExportApp.cpp
r41021 r41372 232 232 233 233 /* Translate wizard: */ 234 setWindowTitle(tr(" Appliance Export Wizard"));234 setWindowTitle(tr("Export Virtual Appliance")); 235 235 setButtonText(QWizard::CustomButton2, tr("Restore Defaults")); 236 236 setButtonText(QWizard::FinishButton, tr("Export")); -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/exportappliance/UIWizardExportAppPageBasic1.cpp
r41021 r41372 108 108 { 109 109 m_pLabel = new QIRichTextLabel(this); 110 m_pVMSelectorLabel = new QILabelSeparator(this);111 {112 m_pVMSelectorLabel->hide();113 }114 110 m_pVMSelector = new QListWidget(this); 115 111 { 116 112 m_pVMSelector->setAlternatingRowColors(true); 117 113 m_pVMSelector->setSelectionMode(QAbstractItemView::ExtendedSelection); 118 m_pVMSelectorLabel->setBuddy(m_pVMSelector);119 114 } 120 115 pMainLayout->addWidget(m_pLabel); 121 pMainLayout->addWidget(m_pVMSelectorLabel);122 116 pMainLayout->addWidget(m_pVMSelector); 123 117 populateVMSelectorItems(selectedVMNames); … … 135 129 { 136 130 /* Translate page: */ 137 setTitle(UIWizardExportApp::tr(" Welcome to the Appliance Export wizard!"));131 setTitle(UIWizardExportApp::tr("Virtual machines to export")); 138 132 139 133 /* Translate widgets: */ 140 m_pLabel->setText(UIWizardExportApp::tr("<p>This wizard will guide you through the process of " 141 "exporting an appliance.</p><p>%1</p><p>Please select " 142 "the virtual machines that should be added to the " 143 "appliance. You can select more than one. Please note " 144 "that these machines have to be turned off before they " 145 "can be exported.</p>") 146 .arg(standardHelpText())); 147 m_pVMSelectorLabel->setText(UIWizardExportApp::tr("VM &List")); 134 m_pLabel->setText(UIWizardExportApp::tr("<p>Please select the virtual machines that should be added to the appliance. " 135 "You can select more than one. Please note that these machines have to be " 136 "turned off before they can be exported.</p>")); 148 137 } 149 138 -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/exportappliance/UIWizardExportAppPageBasic1.h
r41021 r41372 24 24 25 25 /* Forward declarations: */ 26 class QILabelSeparator;27 26 class QListWidget; 28 27 class QIRichTextLabel; … … 46 45 47 46 /* Widgets: */ 48 QILabelSeparator *m_pVMSelectorLabel;49 47 QListWidget *m_pVMSelector; 50 48 }; -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/exportappliance/UIWizardExportAppPageBasic2.cpp
r41021 r41372 113 113 { 114 114 /* Translate page: */ 115 setTitle(UIWizardExportApp::tr("Appliance Export Settings"));115 setTitle(UIWizardExportApp::tr("Appliance settings")); 116 116 117 117 /* Translate widgets: */ 118 m_pLabel->setText(UIWizardExportApp::tr("Please specify the target for the OVF export. " 119 "You can choose between a local file system export, " 120 "uploading the OVF to the Sun Cloud service " 121 "or an S3 storage server.")); 122 m_pTypeCnt->setTitle(UIWizardExportApp::tr("&Destination")); 123 m_pTypeLocalFilesystem->setText(UIWizardExportApp::tr("&Local Filesystem ")); 118 m_pLabel->setText(UIWizardExportApp::tr("Please choose where to create the virtual appliance. " 119 "You can create it on your own computer, " 120 "on the Sun Cloud service or on an S3 storage server.")); 121 m_pTypeCnt->setTitle(UIWizardExportApp::tr("Create on")); 122 m_pTypeLocalFilesystem->setText(UIWizardExportApp::tr("&This computer")); 124 123 m_pTypeSunCloud->setText(UIWizardExportApp::tr("Sun &Cloud")); 125 124 m_pTypeSimpleStorageSystem->setText(UIWizardExportApp::tr("&Simple Storage System (S3)")); -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/exportappliance/UIWizardExportAppPageBasic3.cpp
r41021 r41372 270 270 { 271 271 /* Translate page: */ 272 setTitle(UIWizardExportApp::tr("Appliance Export Settings"));272 setTitle(UIWizardExportApp::tr("Appliance settings")); 273 273 274 274 /* Translate objects: */ … … 280 280 m_pBucketLabel->setText(UIWizardExportApp::tr("&Bucket:")); 281 281 m_pFileSelectorLabel->setText(UIWizardExportApp::tr("&File:")); 282 m_pFileSelector->setFileDialogTitle(UIWizardExportApp::tr(" Select a file to export into"));282 m_pFileSelector->setFileDialogTitle(UIWizardExportApp::tr("Please choose a virtual appliance file")); 283 283 m_pFileSelector->setFileFilters(UIWizardExportApp::tr("Open Virtualization Format Archive (%1)").arg("*.ova") + ";;" + 284 284 UIWizardExportApp::tr("Open Virtualization Format (%1)").arg("*.ovf")); … … 287 287 m_pManifestCheckbox->setToolTip(UIWizardExportApp::tr("Create a Manifest file for automatic data integrity checks on import.")); 288 288 m_pManifestCheckbox->setText(UIWizardExportApp::tr("Write &Manifest file")); 289 290 /* Refresh current settings: */ 291 refreshCurrentSettings(); 289 292 } 290 293 … … 293 296 /* Translate page: */ 294 297 retranslateUi(); 295 296 /* Refresh current settings: */297 refreshCurrentSettings();298 298 } 299 299 … … 345 345 case Filesystem: 346 346 { 347 m_pLabel->setText(tr("Please choose a filename to export the OVF/OVA to. " 348 "If you use an <i>ova</i> file name extension, then all the files " 349 "will be combined into one Open Virtualization Format Archive. " 350 "If you use an <i>ovf</i> extension, several files " 351 "will be written separately. Other extensions are not allowed.")); 347 m_pLabel->setText(tr("<p>Please choose a filename to export the OVF/OVA to.</p>" 348 "<p>If you use an <i>ova</i> extension, " 349 "then all the files will be combined into one Open Virtualization Format Archive.</p>" 350 "<p>If you use an <i>ovf</i> extension, " 351 "several files will be written separately.</p>" 352 "<p>Other extensions are not allowed.</p>")); 352 353 m_pFileSelector->setFocus(); 353 354 break; -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/exportappliance/UIWizardExportAppPageBasic4.cpp
r41021 r41372 82 82 { 83 83 m_pLabel = new QIRichTextLabel(this); 84 m_pVMApplianceLabel = new QILabelSeparator(this);85 {86 m_pVMApplianceLabel->hide();87 }88 84 m_pApplianceWidget = new UIApplianceExportEditorWidget(this); 89 85 { 90 86 m_pApplianceWidget->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::MinimumExpanding); 91 m_pVMApplianceLabel->setBuddy(m_pApplianceWidget);92 87 } 93 88 pMainLayout->addWidget(m_pLabel); 94 pMainLayout->addWidget(m_pVMApplianceLabel);95 89 pMainLayout->addWidget(m_pApplianceWidget); 96 90 } … … 105 99 { 106 100 /* Translate page: */ 107 setTitle(UIWizardExportApp::tr("Appliance Export Settings"));101 setTitle(UIWizardExportApp::tr("Appliance settings")); 108 102 109 103 /* Translate widgets: */ 110 m_pLabel->setText(UIWizardExportApp::tr("Here you can change additional configuration " 111 "values of the selected virtual machines. " 112 "You can modify most of the properties shown " 113 "by double-clicking on the items.")); 114 m_pVMApplianceLabel->setText(UIWizardExportApp::tr("&Settings")); 104 m_pLabel->setText(UIWizardExportApp::tr("This is the descriptive information which will be added " 105 "to the virtual appliance. You can change it by double " 106 "clicking on individual lines.")); 115 107 } 116 108 -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/exportappliance/UIWizardExportAppPageBasic4.h
r41021 r41372 28 28 29 29 /* Forward declarations: */ 30 class QILabelSeparator;31 30 class UIWizardExportApp; 32 31 class QIRichTextLabel; … … 47 46 48 47 /* Widgets: */ 49 QILabelSeparator *m_pVMApplianceLabel;50 48 UIApplianceExportEditorWidget *m_pApplianceWidget; 51 49 }; -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/exportappliance/UIWizardExportAppPageExpert.cpp
r41230 r41372 188 188 m_strDefaultApplianceName = UIWizardExportApp::tr("Appliance"); 189 189 /* Translate widgets: */ 190 m_pVMSelectorLabel->setText(UIWizardExportApp::tr("V M &List"));191 m_pVMApplianceLabel->setText(UIWizardExportApp::tr(" &Settings"));190 m_pVMSelectorLabel->setText(UIWizardExportApp::tr("Virtual &machines to export")); 191 m_pVMApplianceLabel->setText(UIWizardExportApp::tr("Appliance &settings")); 192 192 m_pTypeCnt->setTitle(UIWizardExportApp::tr("&Destination")); 193 193 m_pTypeLocalFilesystem->setText(UIWizardExportApp::tr("&Local Filesystem ")); … … 199 199 m_pBucketLabel->setText(UIWizardExportApp::tr("&Bucket:")); 200 200 m_pFileSelectorLabel->setText(UIWizardExportApp::tr("&File:")); 201 m_pFileSelector->setFileDialogTitle(UIWizardExportApp::tr(" Select a file to export into"));201 m_pFileSelector->setFileDialogTitle(UIWizardExportApp::tr("Please choose a virtual appliance file")); 202 202 m_pFileSelector->setFileFilters(UIWizardExportApp::tr("Open Virtualization Format Archive (%1)").arg("*.ova") + ";;" + 203 203 UIWizardExportApp::tr("Open Virtualization Format (%1)").arg("*.ovf")); -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/exportappliance/UIWizardExportAppPageExpert.h
r41021 r41372 25 25 #include "UIWizardExportAppPageBasic3.h" 26 26 #include "UIWizardExportAppPageBasic4.h" 27 28 /* Forward declarations: */ 29 class QILabelSeparator; 27 30 28 31 /* Expert page of the Export Appliance wizard: */ … … 82 85 bool isComplete() const; 83 86 bool validatePage(); 87 88 /* Widgets: */ 89 QILabelSeparator *m_pVMSelectorLabel; 90 QILabelSeparator *m_pVMApplianceLabel; 84 91 }; 85 92 -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/firstrun/UIWizardFirstRun.cpp
r41021 r41372 20 20 /* Local includes: */ 21 21 #include "UIWizardFirstRun.h" 22 #include "UIWizardFirstRunPageBasic1.h"23 22 #include "UIWizardFirstRunPageBasic2.h" 24 #include "UIWizardFirstRunPageBasic3.h"25 #include "UIWizardFirstRunPageExpert.h"26 23 #include "VBoxGlobal.h" 27 24 #include "UIMessageCenter.h" … … 92 89 93 90 /* Translate wizard: */ 94 setWindowTitle(tr(" First Run Wizard"));91 setWindowTitle(tr("Select start-up disk")); 95 92 setButtonText(QWizard::FinishButton, tr("Start")); 96 93 } … … 103 100 case UIWizardMode_Basic: 104 101 { 105 setPage(Page1, new UIWizardFirstRunPageBasic1(m_fHardDiskWasSet)); 106 setPage(Page2, new UIWizardFirstRunPageBasic2(m_machine.GetId(), m_fHardDiskWasSet)); 107 setPage(Page3, new UIWizardFirstRunPageBasic3(m_fHardDiskWasSet)); 102 setPage(Page1, new UIWizardFirstRunPageBasic2(m_machine.GetId(), m_fHardDiskWasSet)); 108 103 break; 109 104 } 110 105 case UIWizardMode_Expert: 111 106 { 112 setPage(PageExpert, new UIWizardFirstRunPageExpert(m_machine.GetId(), m_fHardDiskWasSet));107 AssertMsgFailed(("First-run wizard has no expert-mode!")); 113 108 break; 114 109 } -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/firstrun/UIWizardFirstRun.h
r41021 r41372 54 54 55 55 /* Who will be able to export appliance: */ 56 friend class UIWizardFirstRunPageBasic3; 57 friend class UIWizardFirstRunPageExpert; 56 friend class UIWizardFirstRunPageBasic2; 58 57 59 58 private: -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/firstrun/UIWizardFirstRunPageBasic2.cpp
r41021 r41372 64 64 QVBoxLayout *pMainLayout = new QVBoxLayout(this); 65 65 { 66 pMainLayout->setContentsMargins(8, 0, 8, 0); 66 67 m_pLabel = new QIRichTextLabel(this); 67 68 m_pSourceCnt = new QGroupBox(this); … … 107 108 void UIWizardFirstRunPageBasic2::retranslateUi() 108 109 { 109 /* Translate page: */110 setTitle(UIWizardFirstRun::tr("Select Installation Media"));111 112 110 /* Translate widgets: */ 113 111 if (m_fBootHardDiskWasSet) 114 m_pLabel->setText(UIWizardFirstRun::tr("<p>Select the media which contains the setup program " 115 "of the operating system you want to install. This media must be bootable, " 116 "otherwise the setup program will not be able to start.</p>")); 112 m_pLabel->setText(UIWizardFirstRun::tr("<p>Please select a virtual optical disk file " 113 "or a physical optical drive containing a disk " 114 "to start your new virtual machine from.</p>" 115 "<p>The disk should be suitable for starting a computer from " 116 "and should contain the operating system you wish to install " 117 "on the virtual machine if you want to do that now. " 118 "The disk will be ejected from the virtual drive " 119 "automatically next time you switch the virtual machine off, " 120 "but you can also do this yourself if needed using the Devices menu.</p>")); 117 121 else 118 m_pLabel->setText(UIWizardFirstRun::tr("<p>Select the media that contains the operating system " 119 "you want to work with. This media must be bootable, " 120 "otherwise the operating system will not be able to start.</p>")); 121 m_pSourceCnt->setTitle(UIWizardFirstRun::tr("Media Source")); 122 m_pSelectMediaButton->setToolTip(VBoxGlobal::tr("Choose a virtual CD/DVD disk file")); 122 m_pLabel->setText(UIWizardFirstRun::tr("<p>Please select a virtual optical disk file " 123 "or a physical optical drive containing a disk " 124 "to start your new virtual machine from.</p>" 125 "<p>The disk should be suitable for starting a computer from. " 126 "As this virtual machine has no hard drive " 127 "you will not be able to install an operating system on it at the moment.</p>")); 128 m_pSourceCnt->setTitle(UIWizardFirstRun::tr("Start-up disk")); 129 m_pSelectMediaButton->setToolTip(UIWizardFirstRun::tr("Choose a virtual optical disk file...")); 123 130 } 124 131 … … 135 142 } 136 143 144 bool UIWizardFirstRunPageBasic2::validatePage() 145 { 146 /* Initial result: */ 147 bool fResult = true; 148 149 /* Lock finish button: */ 150 startProcessing(); 151 152 /* Try to insert chosen medium: */ 153 if (fResult) 154 fResult = qobject_cast<UIWizardFirstRun*>(wizard())->insertMedium(); 155 156 /* Unlock finish button: */ 157 endProcessing(); 158 159 /* Return result: */ 160 return fResult; 161 } 162 137 163 QString UIWizardFirstRunPageBasic2::source() const 138 164 { -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/firstrun/UIWizardFirstRunPageBasic2.h
r41021 r41372 87 87 bool isComplete() const; 88 88 89 /* Validation stuff: */ 90 bool validatePage(); 91 89 92 /* Stuff for 'source' field: */ 90 93 QString source() const; -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/importappliance/UIWizardImportApp.cpp
r41021 r41372 210 210 211 211 /* Translate wizard: */ 212 setWindowTitle(tr(" Appliance Import Wizard"));212 setWindowTitle(tr("Import Virtual Applicance")); 213 213 setButtonText(QWizard::CustomButton2, tr("Restore Defaults")); 214 214 setButtonText(QWizard::FinishButton, tr("Import")); -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/importappliance/UIWizardImportAppPageBasic1.cpp
r41021 r41372 57 57 { 58 58 /* Translate page: */ 59 setTitle(UIWizardImportApp::tr(" Welcome to the Appliance Import wizard!"));59 setTitle(UIWizardImportApp::tr("Appliance to import")); 60 60 61 61 /* Translate widgets: */ 62 m_pLabel->setText(UIWizardImportApp::tr("<p>This wizard will guide you through importing an appliance.</p>" 63 "<p>%1</p><p>VirtualBox currently supports importing appliances " 64 "saved in the Open Virtualization Format (OVF). To continue, " 65 "select the file to import below:</p>") 66 .arg(standardHelpText())); 62 m_pLabel->setText(UIWizardImportApp::tr("<p>VirtualBox currently supports importing appliances " 63 "saved in the Open Virtualization Format (OVF). " 64 "To continue, select the file to import below.</p>")); 67 65 m_pFileSelector->setChooseButtonText(UIWizardImportApp::tr("Open appliance...")); 68 66 m_pFileSelector->setFileDialogTitle(UIWizardImportApp::tr("Select an appliance to import")); -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/importappliance/UIWizardImportAppPageBasic2.cpp
r41021 r41372 54 54 { 55 55 /* Translate page: */ 56 setTitle(UIWizardImportApp::tr("Appliance Import Settings"));56 setTitle(UIWizardImportApp::tr("Appliance settings")); 57 57 58 58 /* Translate widgets: */ -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/importappliance/UIWizardImportAppPageExpert.cpp
r41021 r41372 26 26 #include "UIWizardImportApp.h" 27 27 #include "VBoxGlobal.h" 28 #include "QILabelSeparator.h" 28 29 #include "VBoxFilePathSelectorWidget.h" 29 30 #include "UIApplianceImportEditorWidget.h" … … 35 36 { 36 37 pMainLayout->setContentsMargins(8, 6, 8, 6); 38 m_pVMApplianceLabel = new QILabelSeparator(this); 37 39 m_pFileSelector = new VBoxEmptyFileSelector(this); 38 40 { … … 45 47 m_pApplianceWidget->setFile(strFileName); 46 48 } 49 pMainLayout->addWidget(m_pVMApplianceLabel); 47 50 pMainLayout->addWidget(m_pFileSelector); 48 51 pMainLayout->addWidget(m_pApplianceWidget); … … 73 76 { 74 77 /* Translate widgets: */ 78 m_pVMApplianceLabel->setText(UIWizardImportApp::tr("Appliance to import")); 75 79 m_pFileSelector->setChooseButtonText(UIWizardImportApp::tr("Open appliance...")); 76 80 m_pFileSelector->setFileDialogTitle(UIWizardImportApp::tr("Select an appliance to import")); -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/importappliance/UIWizardImportAppPageExpert.h
r41021 r41372 23 23 #include "UIWizardImportAppPageBasic1.h" 24 24 #include "UIWizardImportAppPageBasic2.h" 25 26 /* Forward declarations: */ 27 class QILabelSeparator; 25 28 26 29 /* Expert page of the Import Appliance wizard: */ … … 53 56 bool isComplete() const; 54 57 bool validatePage(); 58 59 /* Widgets: */ 60 QILabelSeparator *m_pVMApplianceLabel; 55 61 }; 56 62 -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvd/UIWizardNewVD.cpp
r41331 r41372 26 26 #include "UIWizardNewVDPageBasic2.h" 27 27 #include "UIWizardNewVDPageBasic3.h" 28 #include "UIWizardNewVDPageBasic4.h"29 28 #include "UIWizardNewVDPageExpert.h" 30 29 #include "VBoxGlobal.h" … … 102 101 103 102 /* Translate wizard: */ 104 setWindowTitle(tr("Create New Virtual Disk"));103 setWindowTitle(tr("Create Virtual Hard Drive")); 105 104 setButtonText(QWizard::FinishButton, tr("Create")); 106 105 } … … 116 115 setPage(Page2, new UIWizardNewVDPageBasic2); 117 116 setPage(Page3, new UIWizardNewVDPageBasic3(m_strDefaultName, m_strDefaultPath, m_uDefaultSize)); 118 setPage(Page4, new UIWizardNewVDPageBasic4);119 117 break; 120 118 } -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvd/UIWizardNewVD.h
r41331 r41372 24 24 #include "COMDefs.h" 25 25 26 /* New Virtual Diskwizard: */26 /* New Virtual Hard Drive wizard: */ 27 27 class UIWizardNewVD : public UIWizard 28 28 { … … 36 36 Page1, 37 37 Page2, 38 Page3, 39 Page4 38 Page3 40 39 }; 41 40 … … 60 59 61 60 /* Who will be able to create virtual-disk: */ 62 friend class UIWizardNewVDPageBasic 4;61 friend class UIWizardNewVDPageBasic3; 63 62 friend class UIWizardNewVDPageExpert; 64 63 -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvd/UIWizardNewVDPageBasic1.cpp
r41331 r41372 137 137 { 138 138 /* Translate page: */ 139 setTitle(UIWizardNewVD::tr(" Welcome to the New Virtual Disk wizard!"));139 setTitle(UIWizardNewVD::tr("File type")); 140 140 141 141 /* Translate widgets: */ 142 m_pLabel->setText(UIWizardNewVD::tr("<p>This wizard will help you to create a new virtual disk for your virtual machine.</p>")); 143 m_pLabel->setText(m_pLabel->text() + QString("<p>%1</p>").arg(standardHelpText())); 144 m_pLabel->setText(m_pLabel->text() + UIWizardNewVD::tr("<p>Please choose the type of file that you would like " 145 "to use for the new virtual disk. If you do not need " 146 "to use it with other virtualization software you can " 147 "leave this setting unchanged.</p>")); 142 m_pLabel->setText(UIWizardNewVD::tr("Please choose the type of file that you would like to use " 143 "for the new virtual hard drive. If you do not need to use it " 144 "with other virtualization software you can leave this setting unchanged.")); 148 145 m_pFormatCnt->setTitle(UIWizardNewVD::tr("File &type")); 149 146 QList<QAbstractButton*> buttons = m_pFormatButtonGroup->buttons(); -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvd/UIWizardNewVDPageBasic1.h
r41021 r41372 31 31 class QIRichTextLabel; 32 32 33 /* 1st page of the New Virtual Diskwizard (base part): */33 /* 1st page of the New Virtual Hard Drive wizard (base part): */ 34 34 class UIWizardNewVDPage1 : public UIWizardPageBase 35 35 { … … 55 55 }; 56 56 57 /* 1st page of the New Virtual Diskwizard (basic extension): */57 /* 1st page of the New Virtual Hard Drive wizard (basic extension): */ 58 58 class UIWizardNewVDPageBasic1 : public UIWizardPage, public UIWizardNewVDPage1 59 59 { -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvd/UIWizardNewVDPageBasic2.cpp
r41021 r41372 122 122 { 123 123 /* Translate page: */ 124 setTitle(UIWizardNewVD::tr(" Virtual disk storage details"));124 setTitle(UIWizardNewVD::tr("Storage details")); 125 125 126 126 /* Translate widgets: */ 127 m_pDescriptionLabel->setText(UIWizardNewVD::tr("Please choose whether the new virtual diskfile should be "127 m_pDescriptionLabel->setText(UIWizardNewVD::tr("Please choose whether the new virtual hard drive file should be " 128 128 "allocated as it is used or if it should be created fully allocated.")); 129 m_pDynamicLabel->setText(UIWizardNewVD::tr("<p>A <b>dynamically allocated</b> virtual disk file will only use space on"130 " your physical hard diskas it fills up (up to a <b>fixed maximum size</b>), "129 m_pDynamicLabel->setText(UIWizardNewVD::tr("<p>A <b>dynamically allocated</b> hard drive file will only use space " 130 "on your physical hard drive as it fills up (up to a <b>fixed maximum size</b>), " 131 131 "although it will not shrink again automatically when space on it is freed.</p>")); 132 m_pFixedLabel->setText(UIWizardNewVD::tr("<p>A <b>fixed size</b> virtual diskfile may take longer to create on some "132 m_pFixedLabel->setText(UIWizardNewVD::tr("<p>A <b>fixed size</b> hard drive file may take longer to create on some " 133 133 "systems but is often faster to use.</p>")); 134 m_pSplitLabel->setText(UIWizardNewVD::tr("<p>You can also choose to <b>split</b> the virtual diskinto several files "134 m_pSplitLabel->setText(UIWizardNewVD::tr("<p>You can also choose to <b>split</b> the hard drive file into several files " 135 135 "of up to two gigabytes each. This is mainly useful if you wish to store the " 136 136 "virtual machine on removable USB devices or old systems, some of which cannot " -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvd/UIWizardNewVDPageBasic2.h
r41021 r41372 30 30 class QIRichTextLabel; 31 31 32 /* 2nd page of the New Virtual Diskwizard (base part): */32 /* 2nd page of the New Virtual Hard Drive wizard (base part): */ 33 33 class UIWizardNewVDPage2 : public UIWizardPageBase 34 34 { … … 50 50 }; 51 51 52 /* 2nd page of the New Virtual Diskwizard (basic extension): */52 /* 2nd page of the New Virtual Hard Drive wizard (basic extension): */ 53 53 class UIWizardNewVDPageBasic2 : public UIWizardPage, public UIWizardNewVDPage2 54 54 { -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvd/UIWizardNewVDPageBasic3.cpp
r41021 r41372 89 89 QString strChosenFilePath = QIFileDialog::getSaveFileName(folder.absoluteFilePath(strFileName), 90 90 strBackendsList, thisImp(), 91 VBoxGlobal::tr(" Choose a virtual hard diskfile"));91 VBoxGlobal::tr("Please choose a location for new virtual hard drive file")); 92 92 93 93 /* If there was something really chosen: */ … … 367 367 { 368 368 /* Translate page: */ 369 setTitle(UIWizardNewVD::tr(" Virtual disk file location and size"));369 setTitle(UIWizardNewVD::tr("Location and size")); 370 370 371 371 /* Translate widgets: */ 372 m_pLocationLabel->setText(UIWizardNewVD::tr("Please type the name of the new virtual diskfile into the box below or "372 m_pLocationLabel->setText(UIWizardNewVD::tr("Please type the name of the new virtual hard drive file into the box below or " 373 373 "click on the folder icon to select a different folder to create the file in.")); 374 374 m_pLocationCnt->setTitle(UIWizardNewVD::tr("&Location")); 375 m_pSizeLabel->setText(UIWizardNewVD::tr("Select the size of the virtual disk in megabytes. This size will be reported " 376 "to the Guest OS as the maximum size of this virtual disk.")); 375 m_pLocationOpenButton->setToolTip(UIWizardNewVD::tr("Choose a location for new virtual hard drive file...")); 376 m_pSizeLabel->setText(UIWizardNewVD::tr("Select the size of the virtual hard drive in megabytes. This size will be reported " 377 "to the Guest OS as the maximum size of this hard drive.")); 377 378 m_pSizeCnt->setTitle(UIWizardNewVD::tr("&Size")); 378 379 } … … 398 399 bool UIWizardNewVDPageBasic3::validatePage() 399 400 { 400 /* Make sure such virtual-disk doesn't exists already: */ 401 /* Initial result: */ 402 bool fResult = true; 403 404 /* Make sure such file doesn't exists already: */ 401 405 QString strMediumPath(mediumPath()); 402 if (QFileInfo(strMediumPath).exists())403 {406 fResult = !QFileInfo(strMediumPath).exists(); 407 if (!fResult) 404 408 msgCenter().sayCannotOverwriteHardDiskStorage(this, strMediumPath); 405 return false; 406 } 407 return true; 408 } 409 409 410 if (fResult) 411 { 412 /* Lock finish button: */ 413 startProcessing(); 414 415 /* Try to create virtual hard drive file: */ 416 fResult = qobject_cast<UIWizardNewVD*>(wizard())->createVirtualDisk(); 417 418 /* Unlock finish button: */ 419 endProcessing(); 420 } 421 422 /* Return result: */ 423 return fResult; 424 } 425 -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvd/UIWizardNewVDPageBasic3.h
r41021 r41372 33 33 class QIRichTextLabel; 34 34 35 /* 3rd page of the New Virtual Diskwizard (base part): */35 /* 3rd page of the New Virtual Hard Drive wizard (base part): */ 36 36 class UIWizardNewVDPage3 : public UIWizardPageBase 37 37 { … … 82 82 }; 83 83 84 /* 3rd page of the New Virtual Diskwizard (basic extension): */84 /* 3rd page of the New Virtual Hard Drive wizard (basic extension): */ 85 85 class UIWizardNewVDPageBasic3 : public UIWizardPage, public UIWizardNewVDPage3 86 86 { -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvd/UIWizardNewVDPageExpert.cpp
r41331 r41372 256 256 /* Translate widgets: */ 257 257 m_pLocationCnt->setTitle(UIWizardNewVD::tr("&Location")); 258 m_pLocationOpenButton->setToolTip(UIWizardNewVD::tr("Choose a virtual hard d iskfile..."));258 m_pLocationOpenButton->setToolTip(UIWizardNewVD::tr("Choose a virtual hard drive file...")); 259 259 m_pSizeCnt->setTitle(UIWizardNewVD::tr("&Size")); 260 260 m_pFormatCnt->setTitle(UIWizardNewVD::tr("File &type")); -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvd/UIWizardNewVDPageExpert.h
r41021 r41372 24 24 #include "UIWizardNewVDPageBasic2.h" 25 25 #include "UIWizardNewVDPageBasic3.h" 26 #include "UIWizardNewVDPageBasic4.h"27 26 28 /* Expert page of the New Virtual Diskwizard: */27 /* Expert page of the New Virtual Hard Drive wizard: */ 29 28 class UIWizardNewVDPageExpert : public UIWizardPage, 30 29 public UIWizardNewVDPage1, 31 30 public UIWizardNewVDPage2, 32 public UIWizardNewVDPage3, 33 public UIWizardNewVDPage4 31 public UIWizardNewVDPage3 34 32 { 35 33 Q_OBJECT; -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVM.cpp
r41021 r41372 20 20 /* Local includes: */ 21 21 #include "UIWizardNewVM.h" 22 #include "UIWizardNewVMPageBasic1.h"23 22 #include "UIWizardNewVMPageBasic2.h" 24 23 #include "UIWizardNewVMPageBasic3.h" 25 24 #include "UIWizardNewVMPageBasic4.h" 26 #include "UIWizardNewVMPageBasic5.h"27 25 #include "UIWizardNewVMPageExpert.h" 28 26 #include "VBoxDefs.h" … … 69 67 } 70 68 71 /* The FirstRun wizard is to be shown only when we don't attach any virtual diskor attach a new (empty) one.72 * Selecting an existing virtual diskwill cancel the FirstRun wizard. */69 /* The FirstRun wizard is to be shown only when we don't attach any virtual hard drive or attach a new (empty) one. 70 * Selecting an existing virtual hard drive will cancel the FirstRun wizard. */ 73 71 if (field("virtualDiskId").toString().isNull() || !field("virtualDisk").value<CMedium>().isNull()) 74 72 m_machine.SetExtraData(VBoxDefs::GUI_FirstRun, "yes"); … … 200 198 201 199 QString strId = field("virtualDiskId").toString(); 202 /* Boot virtual disk: */200 /* Boot virtual hard drive: */ 203 201 if (!strId.isNull()) 204 202 { … … 249 247 } 250 248 251 /* Ensure we don't try to delete a newly created virtual diskon success: */249 /* Ensure we don't try to delete a newly created virtual hard drive on success: */ 252 250 if (!field("virtualDisk").value<CMedium>().isNull()) 253 251 field("virtualDisk").value<CMedium>().detach(); … … 262 260 263 261 /* Translate wizard: */ 264 setWindowTitle(tr("Create NewVirtual Machine"));262 setWindowTitle(tr("Create Virtual Machine")); 265 263 setButtonText(QWizard::FinishButton, tr("Create")); 266 264 } … … 273 271 case UIWizardMode_Basic: 274 272 { 275 setPage(Page1, new UIWizardNewVMPageBasic1); 276 setPage(Page2, new UIWizardNewVMPageBasic2); 277 setPage(Page3, new UIWizardNewVMPageBasic3); 278 setPage(Page4, new UIWizardNewVMPageBasic4); 279 setPage(Page5, new UIWizardNewVMPageBasic5); 273 setPage(Page1, new UIWizardNewVMPageBasic2); 274 setPage(Page2, new UIWizardNewVMPageBasic3); 275 setPage(Page3, new UIWizardNewVMPageBasic4); 280 276 break; 281 277 } -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVM.h
r41021 r41372 37 37 Page2, 38 38 Page3, 39 Page4, 40 Page5 39 Page4 41 40 }; 42 41 … … 56 55 57 56 /* Who will be able to create virtual-machine: */ 58 friend class UIWizardNewVMPageBasic 5;57 friend class UIWizardNewVMPageBasic4; 59 58 friend class UIWizardNewVMPageExpert; 60 59 -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMPageBasic2.cpp
r41021 r41372 281 281 { 282 282 /* Translate page: */ 283 setTitle(UIWizardNewVM::tr(" VM Name and OS Type"));283 setTitle(UIWizardNewVM::tr("Name and operating system")); 284 284 285 285 /* Translate widgets: */ 286 m_pLabel->setText(UIWizardNewVM::tr(" <p>Enter a name for the new virtual machine and select the type of the guest operating system"287 " you plan to install onto the virtual machine.</p><p>The name of the virtual machine usually"288 " indicates its software and hardware configuration. It will be used by all VirtualBox components"289 "to identify your virtual machine.</p>"));286 m_pLabel->setText(UIWizardNewVM::tr("Please choose a descriptive name for the new virtual machine " 287 "and select the type of operating system you intend to install on it. " 288 "The name you choose will be used throughout VirtualBox " 289 "to identify this machine.")); 290 290 m_pNameCnt->setTitle(UIWizardNewVM::tr("&Name")); 291 m_pTypeCnt->setTitle(UIWizardNewVM::tr("O S &Type"));291 m_pTypeCnt->setTitle(UIWizardNewVM::tr("Operating system")); 292 292 } 293 293 -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMPageBasic3.cpp
r41021 r41372 61 61 { 62 62 m_pLabel1 = new QIRichTextLabel(this); 63 m_pLabel2 = new QIRichTextLabel(this);64 63 m_pMemoryCnt = new QGroupBox(this); 65 64 { … … 102 101 } 103 102 pMainLayout->addWidget(m_pLabel1); 104 pMainLayout->addWidget(m_pLabel2);105 103 pMainLayout->addWidget(m_pMemoryCnt); 106 104 pMainLayout->addStretch(); … … 136 134 { 137 135 /* Translate page: */ 138 setTitle(UIWizardNewVM::tr("Memory "));136 setTitle(UIWizardNewVM::tr("Memory size")); 139 137 140 138 /* Translate widgets: */ 141 m_pLabel1->setText(UIWizardNewVM::tr("<p>Select the amount of base memory (RAM) in megabytes to be allocated to the virtual machine.</p>"));142 139 QString strRecommendedRAM = field("type").value<CGuestOSType>().isNull() ? 143 140 QString() : QString::number(field("type").value<CGuestOSType>().GetRecommendedRAM()); 144 m_pLabel2->setText(UIWizardNewVM::tr("The recommended base memory size is <b>%1</b> MB.").arg(strRecommendedRAM)); 145 m_pMemoryCnt->setTitle(UIWizardNewVM::tr("Base &Memory Size")); 141 m_pLabel1->setText(UIWizardNewVM::tr("<p>Select the amount of memory (RAM) in megabytes " 142 "to be allocated to the virtual machine.</p>" 143 "<p>The recommended memory size is <b>%1</b> MB.</p>") 144 .arg(strRecommendedRAM)); 145 m_pMemoryCnt->setTitle(UIWizardNewVM::tr("&Memory size")); 146 146 m_pRamUnits->setText(VBoxGlobal::tr("MB", "size suffix MBytes=1024 KBytes")); 147 147 m_pRamMin->setText(QString("%1 %2").arg(m_pRamSlider->minRAM()).arg(VBoxGlobal::tr("MB", "size suffix MBytes=1024 KBytes"))); -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMPageBasic3.h
r41021 r41372 80 80 /* Widgets: */ 81 81 QIRichTextLabel *m_pLabel1; 82 QIRichTextLabel *m_pLabel2;83 82 }; 84 83 -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMPageBasic4.cpp
r41021 r41372 80 80 bool UIWizardNewVMPage4::getWithNewVirtualDiskWizard() 81 81 { 82 /* Create New Virtual Diskwizard: */82 /* Create New Virtual Hard Drive wizard: */ 83 83 UIWizardNewVD dlg(thisImp(), 84 84 fieldImp("machineBaseName").toString(), … … 132 132 { 133 133 m_pLabel1 = new QIRichTextLabel(this); 134 m_pLabel2 = new QIRichTextLabel(this);135 134 m_pDiskCnt = new QGroupBox(this); 136 135 { … … 165 164 } 166 165 pMainLayout->addWidget(m_pLabel1); 167 pMainLayout->addWidget(m_pLabel2);168 166 pMainLayout->addWidget(m_pDiskCnt); 169 167 pMainLayout->addStretch(); … … 205 203 { 206 204 /* Translate page: */ 207 setTitle(UIWizardNewVM::tr(" Virtual Hard Disk"));205 setTitle(UIWizardNewVM::tr("Hard drive")); 208 206 209 207 /* Translate widgets: */ 210 m_pLabel1->setText(UIWizardNewVM::tr("<p>If you wish you can now add a start-up disk to the new machine. "211 "You can either create a new virtual disk or select one from the list "212 "or from another location using the folder icon.</p>"213 "<p>If you need a more complex virtual disk setup you can skip this step "214 "and make the changes to the machine settings once the machine is created.</p>"));215 208 QString strRecommendedHDD = field("type").value<CGuestOSType>().isNull() ? QString() : 216 209 VBoxGlobal::formatSize(field("type").value<CGuestOSType>().GetRecommendedHDD()); 217 m_pLabel2->setText(UIWizardNewVM::tr("The recommended size of the start-up disk is <b>%1</b>.").arg(strRecommendedHDD)); 218 m_pDiskCnt->setTitle(UIWizardNewVM::tr("Start-up &Disk")); 219 m_pDiskCreate->setText(UIWizardNewVM::tr("&Create new hard disk")); 220 m_pDiskPresent->setText(UIWizardNewVM::tr("&Use existing hard disk")); 221 m_pVMMButton->setToolTip(UIWizardNewVM::tr("Choose a virtual hard disk file...")); 210 m_pLabel1->setText(UIWizardNewVM::tr("<p>If you wish you can add a virtual hard drive to the new machine. " 211 "You can either create a new hard drive file or select one from the list " 212 "or from another location using the folder icon.</p>" 213 "<p>If you need a more complex storage set-up you can skip this step " 214 "and make the changes to the machine settings once the machine is created.</p>" 215 "<p>The recommended size of the hard drive is <b>%1</b>.</p>") 216 .arg(strRecommendedHDD)); 217 m_pDiskCnt->setTitle(UIWizardNewVM::tr("Hard &drive")); 218 m_pDiskCreate->setText(UIWizardNewVM::tr("&Create new virtual hard drive")); 219 m_pDiskPresent->setText(UIWizardNewVM::tr("&Use existing virtual hard drive file")); 220 m_pVMMButton->setToolTip(UIWizardNewVM::tr("Choose a virtual hard drive file...")); 222 221 } 223 222 … … 267 266 else if (m_pDiskCreate->isChecked()) 268 267 { 269 /* Show the New Virtual Diskwizard: */268 /* Show the New Virtual Hard Drive wizard: */ 270 269 fResult = getWithNewVirtualDiskWizard(); 270 } 271 272 if (fResult) 273 { 274 /* Lock finish button: */ 275 startProcessing(); 276 277 /* Try to create VM: */ 278 fResult = qobject_cast<UIWizardNewVM*>(wizard())->createVM(); 279 280 /* Unlock finish button: */ 281 endProcessing(); 271 282 } 272 283 -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMPageBasic4.h
r41021 r41372 122 122 /* Widgets: */ 123 123 QIRichTextLabel *m_pLabel1; 124 QIRichTextLabel *m_pLabel2;125 124 }; 126 125 -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMPageExpert.cpp
r41230 r41372 238 238 /* Translate widgets: */ 239 239 m_pNameCnt->setTitle(UIWizardNewVM::tr("&Name")); 240 m_pTypeCnt->setTitle(UIWizardNewVM::tr("O S &Type"));241 m_pMemoryCnt->setTitle(UIWizardNewVM::tr(" Base &Memory Size"));240 m_pTypeCnt->setTitle(UIWizardNewVM::tr("Operating system")); 241 m_pMemoryCnt->setTitle(UIWizardNewVM::tr("&Memory size")); 242 242 m_pRamUnits->setText(VBoxGlobal::tr("MB", "size suffix MBytes=1024 KBytes")); 243 243 m_pRamMin->setText(QString("%1 %2").arg(m_pRamSlider->minRAM()).arg(VBoxGlobal::tr("MB", "size suffix MBytes=1024 KBytes"))); 244 244 m_pRamMax->setText(QString("%1 %2").arg(m_pRamSlider->maxRAM()).arg(VBoxGlobal::tr("MB", "size suffix MBytes=1024 KBytes"))); 245 m_pDiskCnt->setTitle(UIWizardNewVM::tr(" Start-up &Disk"));246 m_pDiskCreate->setText(UIWizardNewVM::tr("&Create new hard disk"));247 m_pDiskPresent->setText(UIWizardNewVM::tr("&Use existing hard disk"));248 m_pVMMButton->setToolTip(UIWizardNewVM::tr("Choose a virtual hard d iskfile..."));245 m_pDiskCnt->setTitle(UIWizardNewVM::tr("Hard &drive")); 246 m_pDiskCreate->setText(UIWizardNewVM::tr("&Create new virtual hard drive")); 247 m_pDiskPresent->setText(UIWizardNewVM::tr("&Use existing virtual hard drive file")); 248 m_pVMMButton->setToolTip(UIWizardNewVM::tr("Choose a virtual hard drive file...")); 249 249 } 250 250 … … 296 296 if (m_pDiskCnt->isChecked() && m_pDiskCreate->isChecked()) 297 297 { 298 /* Show the New Virtual Diskwizard if necessary: */298 /* Show the New Virtual Hard Drive wizard if necessary: */ 299 299 fResult = getWithNewVirtualDiskWizard(); 300 300 } -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMPageExpert.h
r41021 r41372 21 21 22 22 /* Local includes: */ 23 #include "UIWizardNewVMPageBasic1.h"24 23 #include "UIWizardNewVMPageBasic2.h" 25 24 #include "UIWizardNewVMPageBasic3.h" 26 25 #include "UIWizardNewVMPageBasic4.h" 27 #include "UIWizardNewVMPageBasic5.h"28 26 29 27 /* Expert page of the New Virtual Machine wizard: */ 30 28 class UIWizardNewVMPageExpert : public UIWizardPage, 31 public UIWizardNewVMPage1,32 29 public UIWizardNewVMPage2, 33 30 public UIWizardNewVMPage3, 34 public UIWizardNewVMPage4, 35 public UIWizardNewVMPage5 31 public UIWizardNewVMPage4 36 32 { 37 33 Q_OBJECT;
Note:
See TracChangeset
for help on using the changeset viewer.

