VirtualBox

Changeset 41372 in vbox


Ignore:
Timestamp:
May 21, 2012 4:53:33 PM (12 years ago)
Author:
vboxsync
Message:

FE/Qt: Wizards rework: 1. Better NLS for all the wizards, 2. Removing (reworking, cleanup required) welcome pages, 3. Removing (hiding, cleanup required) summary pages.

Location:
trunk/src/VBox/Frontends/VirtualBox
Files:
60 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/Makefile.kmk

    r41107 r41372  
    361361        src/wizards/UIWizardPage.h \
    362362        src/wizards/newvm/UIWizardNewVM.h \
    363         src/wizards/newvm/UIWizardNewVMPageBasic1.h \
    364363        src/wizards/newvm/UIWizardNewVMPageBasic2.h \
    365364        src/wizards/newvm/UIWizardNewVMPageBasic3.h \
    366365        src/wizards/newvm/UIWizardNewVMPageBasic4.h \
    367         src/wizards/newvm/UIWizardNewVMPageBasic5.h \
    368366        src/wizards/newvm/UIWizardNewVMPageExpert.h \
    369367        src/wizards/newvd/UIWizardNewVD.h \
     
    371369        src/wizards/newvd/UIWizardNewVDPageBasic2.h \
    372370        src/wizards/newvd/UIWizardNewVDPageBasic3.h \
    373         src/wizards/newvd/UIWizardNewVDPageBasic4.h \
    374371        src/wizards/newvd/UIWizardNewVDPageExpert.h \
    375372        src/wizards/clonevm/UIWizardCloneVM.h \
     
    383380        src/wizards/clonevd/UIWizardCloneVDPageBasic3.h \
    384381        src/wizards/clonevd/UIWizardCloneVDPageBasic4.h \
    385         src/wizards/clonevd/UIWizardCloneVDPageBasic5.h \
    386382        src/wizards/clonevd/UIWizardCloneVDPageExpert.h \
    387383        src/wizards/exportappliance/UIWizardExportApp.h \
     
    396392        src/wizards/importappliance/UIWizardImportAppPageExpert.h \
    397393        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
    402395
    403396VirtualBox_QT_MOCHDRS.darwin += \
     
    577570        src/wizards/UIWizardPage.cpp \
    578571        src/wizards/newvm/UIWizardNewVM.cpp \
    579         src/wizards/newvm/UIWizardNewVMPageBasic1.cpp \
    580572        src/wizards/newvm/UIWizardNewVMPageBasic2.cpp \
    581573        src/wizards/newvm/UIWizardNewVMPageBasic3.cpp \
    582574        src/wizards/newvm/UIWizardNewVMPageBasic4.cpp \
    583         src/wizards/newvm/UIWizardNewVMPageBasic5.cpp \
    584575        src/wizards/newvm/UIWizardNewVMPageExpert.cpp \
    585576        src/wizards/newvd/UIWizardNewVD.cpp \
     
    587578        src/wizards/newvd/UIWizardNewVDPageBasic2.cpp \
    588579        src/wizards/newvd/UIWizardNewVDPageBasic3.cpp \
    589         src/wizards/newvd/UIWizardNewVDPageBasic4.cpp \
    590580        src/wizards/newvd/UIWizardNewVDPageExpert.cpp \
    591581        src/wizards/clonevm/UIWizardCloneVM.cpp \
     
    599589        src/wizards/clonevd/UIWizardCloneVDPageBasic3.cpp \
    600590        src/wizards/clonevd/UIWizardCloneVDPageBasic4.cpp \
    601         src/wizards/clonevd/UIWizardCloneVDPageBasic5.cpp \
    602591        src/wizards/clonevd/UIWizardCloneVDPageExpert.cpp \
    603592        src/wizards/exportappliance/UIWizardExportApp.cpp \
     
    612601        src/wizards/importappliance/UIWizardImportAppPageExpert.cpp \
    613602        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
    618604
    619605VirtualBox_SOURCES.win += \
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxMediaManagerDlg.cpp

    r40870 r41372  
    625625    mRefreshAction->setShortcut (QKeySequence (QKeySequence::Refresh));
    626626
    627     mNewAction->setStatusTip (tr ("Create a new virtual hard disk"));
     627    mNewAction->setStatusTip (tr ("Create a new virtual hard drive"));
    628628    mAddAction->setStatusTip (tr ("Add an existing medium"));
    629629    mCopyAction->setStatusTip (tr ("Copy an existing medium"));
     
    10071007    switch (type)
    10081008    {
     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        }
    10091016        case VBoxDefs::MediumType_DVD:
    10101017        {
    10111018            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)");
    10211021            break;
    10221022        }
     
    10241024        {
    10251025            filterList = vboxGlobal().FloppyBackends();
    1026             title = tr ("Select a floppy disk image file");
    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)");
    10281028            break;
    10291029        }
     
    10421042    }
    10431043    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()));
    10451045    backends << tr ("All files (*)");
    10461046    filter = backends.join (";;").trimmed();
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.cpp

    r41331 r41372  
    26902690        {
    26912691            filters = vboxGlobal().HDDBackends();
    2692             strTitle = tr ("Choose a virtual hard disk file");
    2693             allType = tr ("hard disk");
     2692            strTitle = tr("Please choose a virtual hard drive file");
     2693            allType = tr("All virtual hard drive files (%1)");
    26942694            strLastFolder = virtualBox().GetExtraData(VBoxDefs::GUI_RecentFolderHD);
    26952695            if (strLastFolder.isEmpty())
     
    27022702        {
    27032703            filters = vboxGlobal().DVDBackends();
    2704             strTitle = tr ("Choose a virtual CD/DVD disk 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)");
    27062706            strLastFolder = virtualBox().GetExtraData(VBoxDefs::GUI_RecentFolderCD);
    27072707            if (strLastFolder.isEmpty())
     
    27142714        {
    27152715            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)");
    27182718            strLastFolder = virtualBox().GetExtraData(VBoxDefs::GUI_RecentFolderFD);
    27192719            if (strLastFolder.isEmpty())
     
    27402740    }
    27412741    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()));
    27432743    backends << tr("All files (*)");
    27442744    strFilter = backends.join(";;").trimmed();
  • trunk/src/VBox/Frontends/VirtualBox/src/widgets/VBoxOSTypeSelectorWidget.cpp

    r39968 r41372  
    152152void VBoxOSTypeSelectorWidget::retranslateUi()
    153153{
    154     mTxFamilyName->setText (tr ("Operating &System:"));
     154    mTxFamilyName->setText (tr ("&Type:"));
    155155    mCbFamily->setWhatsThis (tr ("Displays the operating system family that "
    156156                                 "you plan to install into this virtual machine."));
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/UIWizard.cpp

    r41021 r41372  
    3939void UIWizard::sltCurrentIdChanged(int iId)
    4040{
    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);
    4351}
    4452
     
    401409        case UIWizardType_NewVD:
    402410        case UIWizardType_CloneVD:
     411        case UIWizardType_ExportAppliance:
    403412            dRatio += 0.3;
     413            break;
     414        case UIWizardType_FirstRun:
     415            dRatio += 0.4;
    404416            break;
    405417        default:
     
    532544UIWizardMode UIWizard::loadModeForType(UIWizardType type)
    533545{
    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;
    536549    /* Get mode from extra-data: */
    537550    QStringList wizards = vboxGlobal().virtualBox().GetExtraDataStringList(VBoxDefs::GUI_HideDescriptionForWizards);
    538551    if (wizards.contains(nameForType(type)))
    539         mode = UIWizardMode_Expert;
     552        return UIWizardMode_Expert;
    540553    /* Return mode: */
    541     return mode;
    542 }
    543 
     554    return UIWizardMode_Basic;
     555}
     556
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/UIWizardPage.cpp

    r41021 r41372  
    7070}
    7171
    72 QString UIWizardPage::standardHelpText() const
    73 {
    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_MAC
    81         .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 
    8772void UIWizardPage::startProcessing()
    8873{
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/UIWizardPage.h

    r41021 r41372  
    6767    /* Helpers: */
    6868    UIWizard* wizard() const;
    69     QString standardHelpText() const;
    7069    void startProcessing();
    7170    void endProcessing();
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/clonevd/UIWizardCloneVD.cpp

    r41331 r41372  
    2727#include "UIWizardCloneVDPageBasic3.h"
    2828#include "UIWizardCloneVDPageBasic4.h"
    29 #include "UIWizardCloneVDPageBasic5.h"
    3029#include "UIWizardCloneVDPageExpert.h"
    3130#include "VBoxGlobal.h"
     
    102101
    103102    /* Translate wizard: */
    104     setWindowTitle(tr("Copy Virtual Disk"));
     103    setWindowTitle(tr("Copy Virtual Hard Drive"));
    105104    setButtonText(QWizard::FinishButton, tr("Copy"));
    106105}
     
    117116            setPage(Page3, new UIWizardCloneVDPageBasic3);
    118117            setPage(Page4, new UIWizardCloneVDPageBasic4);
    119             setPage(Page5, new UIWizardCloneVDPageBasic5);
    120118            break;
    121119        }
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/clonevd/UIWizardCloneVD.h

    r41331 r41372  
    2424#include "COMDefs.h"
    2525
    26 /* Clone Virtual Disk wizard: */
     26/* Clone Virtual Hard Drive wizard: */
    2727class UIWizardCloneVD : public UIWizard
    2828{
     
    3737        Page2,
    3838        Page3,
    39         Page4,
    40         Page5
     39        Page4
    4140    };
    4241
     
    5958
    6059    /* Who will be able to copy virtual-disk: */
    61     friend class UIWizardCloneVDPageBasic5;
     60    friend class UIWizardCloneVDPageBasic4;
    6261    friend class UIWizardCloneVDPageExpert;
    6362
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/clonevd/UIWizardCloneVDPageBasic1.cpp

    r41021 r41372  
    104104    /* Call to base-class: */
    105105    onHandleOpenSourceDiskClick();
     106
     107    /* Broadcast complete-change: */
     108    emit completeChanged();
    106109}
    107110
     
    109112{
    110113    /* Translate page: */
    111     setTitle(UIWizardCloneVD::tr("Welcome to the Copy Virtual Disk wizard!"));
     114    setTitle(UIWizardCloneVD::tr("Hard drive to copy"));
    112115
    113116    /* 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 &copy"));
     121    m_pSourceDiskOpenButton->setToolTip(UIWizardCloneVD::tr("Choose a virtual hard drive file to copy..."));
    122122}
    123123
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/clonevd/UIWizardCloneVDPageBasic1.h

    r41021 r41372  
    3030class QIRichTextLabel;
    3131
    32 /* 1st page of the Clone Virtual Disk wizard (base part): */
     32/* 1st page of the Clone Virtual Hard Drive wizard (base part): */
    3333class UIWizardCloneVDPage1 : public UIWizardPageBase
    3434{
     
    5151};
    5252
    53 /* 1st page of the Clone Virtual Disk wizard (basic extension): */
     53/* 1st page of the Clone Virtual Hard Drive wizard (basic extension): */
    5454class UIWizardCloneVDPageBasic1 : public UIWizardPage, public UIWizardCloneVDPage1
    5555{
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/clonevd/UIWizardCloneVDPageBasic2.cpp

    r41331 r41372  
    137137{
    138138    /* Translate page: */
    139     setTitle(UIWizardCloneVD::tr("Virtual disk file type"));
     139    setTitle(UIWizardCloneVD::tr("File type"));
    140140
    141141    /* 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."));
    146145    m_pFormatCnt->setTitle(UIWizardCloneVD::tr("File &type"));
    147146    QList<QAbstractButton*> buttons = m_pFormatButtonGroup->buttons();
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/clonevd/UIWizardCloneVDPageBasic2.h

    r41021 r41372  
    3131class QIRichTextLabel;
    3232
    33 /* 2nd page of the Clone Virtual Disk wizard (base part): */
     33/* 2nd page of the Clone Virtual Hard Drive wizard (base part): */
    3434class UIWizardCloneVDPage2 : public UIWizardPageBase
    3535{
     
    5555};
    5656
    57 /* 2nd page of the Clone Virtual Disk wizard (basic extension): */
     57/* 2nd page of the Clone Virtual Hard Drive wizard (basic extension): */
    5858class UIWizardCloneVDPageBasic2 : public UIWizardPage, public UIWizardCloneVDPage2
    5959{
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/clonevd/UIWizardCloneVDPageBasic3.cpp

    r41021 r41372  
    122122{
    123123    /* Translate page: */
    124     setTitle(UIWizardCloneVD::tr("Virtual disk storage details"));
     124    setTitle(UIWizardCloneVD::tr("Storage details"));
    125125
    126126    /* Translate widgets: */
    127     m_pDescriptionLabel->setText(UIWizardCloneVD::tr("Please choose whether the new virtual disk file should be "
     127    m_pDescriptionLabel->setText(UIWizardCloneVD::tr("Please choose whether the new virtual hard drive file should be "
    128128                                                     "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 disk as 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>), "
    131131                                                 "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 disk file 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 "
    133133                                               "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 disk into several files "
     134    m_pSplitLabel->setText(UIWizardCloneVD::tr("<p>You can also choose to <b>split</b> the hard drive file into several files "
    135135                                               "of up to two gigabytes each. This is mainly useful if you wish to store the "
    136136                                               "virtual machine on removable USB devices or old systems, some of which cannot "
    137137                                               "handle very large files."));
    138 
    139138    m_pVariantCnt->setTitle(UIWizardCloneVD::tr("Storage details"));
    140139    m_pDynamicalButton->setText(UIWizardCloneVD::tr("&Dynamically allocated"));
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/clonevd/UIWizardCloneVDPageBasic3.h

    r41021 r41372  
    3030class QIRichTextLabel;
    3131
    32 /* 3rd page of the Clone Virtual Disk wizard (base part): */
     32/* 3rd page of the Clone Virtual Hard Drive wizard (base part): */
    3333class UIWizardCloneVDPage3 : public UIWizardPageBase
    3434{
     
    5050};
    5151
    52 /* 3rd page of the Clone Virtual Disk wizard (basic extension): */
     52/* 3rd page of the Clone Virtual Hard Drive wizard (basic extension): */
    5353class UIWizardCloneVDPageBasic3 : public UIWizardPage, public UIWizardCloneVDPage3
    5454{
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/clonevd/UIWizardCloneVDPageBasic4.cpp

    r41021 r41372  
    7979    QString strChosenFilePath = QIFileDialog::getSaveFileName(folder.absoluteFilePath(strFileName),
    8080                                                              strBackendsList, thisImp(),
    81                                                               VBoxGlobal::tr("Choose a virtual hard disk file"));
     81                                                              UIWizardCloneVD::tr("Please choose a location for new virtual hard drive file"));
    8282
    8383    /* If there was something really chosen: */
     
    197197{
    198198    /* Translate page: */
    199     setTitle(UIWizardCloneVD::tr("Virtual disk file location"));
     199    setTitle(UIWizardCloneVD::tr("Copy location"));
    200200
    201201    /* Translate widgets: */
    202     m_pLabel->setText(UIWizardCloneVD::tr("Please type the name of the new virtual disk file 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 "
    203203                                          "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 disk file..."));
     204    m_pDestinationCnt->setTitle(UIWizardCloneVD::tr("Copy &location"));
     205    m_pDestinationDiskOpenButton->setToolTip(UIWizardCloneVD::tr("Choose a location for new virtual hard drive file..."));
    206206}
    207207
     
    218218    m_strDefaultExtension = defaultExtension(field("mediumFormat").value<CMediumFormat>());
    219219    /* Compose default-name for virtual-disk copy: */
    220     QString strMediumName = UIWizardCloneVD::tr("%1_copy", "copied virtual disk name").arg(sourceFileInfo.baseName());
     220    QString strMediumName = UIWizardCloneVD::tr("%1_copy", "copied virtual hard drive name").arg(sourceFileInfo.baseName());
    221221    /* Set default-name as text for location editor: */
    222222    m_pDestinationDiskEditor->setText(strMediumName);
     
    231231bool UIWizardCloneVDPageBasic4::validatePage()
    232232{
    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: */
    234237    QString strMediumPath(mediumPath());
    235     if (QFileInfo(strMediumPath).exists())
    236     {
     238    fResult = !QFileInfo(strMediumPath).exists();
     239    if (!fResult)
    237240        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  
    3434class QIRichTextLabel;
    3535
    36 /* 4th page of the Clone Virtual Disk wizard (base part): */
     36/* 4th page of the Clone Virtual Hard Drive wizard (base part): */
    3737class UIWizardCloneVDPage4 : public UIWizardPageBase
    3838{
     
    6666};
    6767
    68 /* 4th page of the Clone Virtual Disk wizard (basic extension): */
     68/* 4th page of the Clone Virtual Hard Drive wizard (basic extension): */
    6969class UIWizardCloneVDPageBasic4 : public UIWizardPage, public UIWizardCloneVDPage4
    7070{
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/clonevd/UIWizardCloneVDPageExpert.cpp

    r41331 r41372  
    191191    m_strDefaultPath = sourceFileInfo.absolutePath();
    192192    /* Compose name for virtual-disk copy: */
    193     QString strMediumName = UIWizardCloneVD::tr("%1_copy", "copied virtual disk name").arg(sourceFileInfo.baseName());
     193    QString strMediumName = UIWizardCloneVD::tr("%1_copy", "copied virtual hard drive name").arg(sourceFileInfo.baseName());
    194194    /* Set text to location editor: */
    195195    m_pDestinationDiskEditor->setText(strMediumName);
     
    203203    /* Call to base-class: */
    204204    onHandleOpenSourceDiskClick();
     205
     206    /* Broadcast complete-change: */
     207    emit completeChanged();
    205208}
    206209
     
    235238{
    236239    /* Translate widgets: */
    237     m_pSourceDiskCnt->setTitle(UIWizardCloneVD::tr("&Source virtual disk"));
    238     m_pSourceDiskOpenButton->setToolTip(UIWizardCloneVD::tr("Choose a virtual hard disk file..."));
    239     m_pDestinationCnt->setTitle(UIWizardCloneVD::tr("&Destination virtual disk"));
    240     m_pDestinationDiskOpenButton->setToolTip(UIWizardCloneVD::tr("Choose a virtual hard disk file..."));
     240    m_pSourceDiskCnt->setTitle(UIWizardCloneVD::tr("Hard drive to &copy"));
     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..."));
    241244    m_pFormatCnt->setTitle(UIWizardCloneVD::tr("File &type"));
    242245    QList<QAbstractButton*> buttons = m_pFormatButtonGroup->buttons();
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/clonevd/UIWizardCloneVDPageExpert.h

    r41021 r41372  
    2525#include "UIWizardCloneVDPageBasic3.h"
    2626#include "UIWizardCloneVDPageBasic4.h"
    27 #include "UIWizardCloneVDPageBasic5.h"
    2827
    29 /* Expert page of the Clone Virtual Disk wizard: */
     28/* Expert page of the Clone Virtual Hard Drive wizard: */
    3029class UIWizardCloneVDPageExpert : public UIWizardPage,
    3130                                  public UIWizardCloneVDPage1,
    3231                                  public UIWizardCloneVDPage2,
    3332                                  public UIWizardCloneVDPage3,
    34                                   public UIWizardCloneVDPage4,
    35                                   public UIWizardCloneVDPage5
     33                                  public UIWizardCloneVDPage4
    3634{
    3735    Q_OBJECT;
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/clonevm/UIWizardCloneVMPageBasic1.cpp

    r41021 r41372  
    5757    {
    5858        m_pLabel1 = new QIRichTextLabel(this);
    59         m_pLabel2 = new QIRichTextLabel(this);
    6059        m_pNameCnt = new QGroupBox(this);
    6160        {
     
    7170        m_pReinitMACsCheckBox = new QCheckBox(this);
    7271        pMainLayout->addWidget(m_pLabel1);
    73         pMainLayout->addWidget(m_pLabel2);
    7472        pMainLayout->addWidget(m_pNameCnt);
    7573        pMainLayout->addWidget(m_pReinitMACsCheckBox);
     
    8886{
    8987    /* Translate page: */
    90     setTitle(UIWizardCloneVM::tr("Welcome to the Clone Virtual Machine wizard!"));
     88    setTitle(UIWizardCloneVM::tr("Name"));
    9189
    9290    /* 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));
    9694    m_pNameCnt->setTitle(UIWizardCloneVM::tr("&Name"));
    9795    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  
    7878    /* Widgets: */
    7979    QIRichTextLabel *m_pLabel1;
    80     QIRichTextLabel *m_pLabel2;
    8180};
    8281
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/clonevm/UIWizardCloneVMPageBasic2.cpp

    r41021 r41372  
    9191{
    9292    /* Translate page: */
    93     setTitle(UIWizardCloneVM::tr("Cloning Configuration"));
     93    setTitle(UIWizardCloneVM::tr("Type"));
    9494
    9595    /* 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>");
    99103    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>");
    101105    m_pLabel->setText(strLabel);
    102106
    103107    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"));
    106110}
    107111
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/clonevm/UIWizardCloneVMPageBasic3.cpp

    r41021 r41372  
    9292{
    9393    /* Translate page: */
    94     setTitle(UIWizardCloneVM::tr("Cloning Configuration"));
     94    setTitle(UIWizardCloneVM::tr("Mode"));
    9595
    9696    /* 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                                                    "of 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>");
    104104    if (m_fShowChildsOption)
    105105        m_pLabel->setText(QString("<p>%1</p><p>%2 %3 %4</p>")
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/exportappliance/UIWizardExportApp.cpp

    r41021 r41372  
    232232
    233233    /* Translate wizard: */
    234     setWindowTitle(tr("Appliance Export Wizard"));
     234    setWindowTitle(tr("Export Virtual Appliance"));
    235235    setButtonText(QWizard::CustomButton2, tr("Restore Defaults"));
    236236    setButtonText(QWizard::FinishButton, tr("Export"));
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/exportappliance/UIWizardExportAppPageBasic1.cpp

    r41021 r41372  
    108108    {
    109109        m_pLabel = new QIRichTextLabel(this);
    110         m_pVMSelectorLabel = new QILabelSeparator(this);
    111         {
    112             m_pVMSelectorLabel->hide();
    113         }
    114110        m_pVMSelector = new QListWidget(this);
    115111        {
    116112            m_pVMSelector->setAlternatingRowColors(true);
    117113            m_pVMSelector->setSelectionMode(QAbstractItemView::ExtendedSelection);
    118             m_pVMSelectorLabel->setBuddy(m_pVMSelector);
    119114        }
    120115        pMainLayout->addWidget(m_pLabel);
    121         pMainLayout->addWidget(m_pVMSelectorLabel);
    122116        pMainLayout->addWidget(m_pVMSelector);
    123117        populateVMSelectorItems(selectedVMNames);
     
    135129{
    136130    /* Translate page: */
    137     setTitle(UIWizardExportApp::tr("Welcome to the Appliance Export wizard!"));
     131    setTitle(UIWizardExportApp::tr("Virtual machines to export"));
    138132
    139133    /* 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>"));
    148137}
    149138
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/exportappliance/UIWizardExportAppPageBasic1.h

    r41021 r41372  
    2424
    2525/* Forward declarations: */
    26 class QILabelSeparator;
    2726class QListWidget;
    2827class QIRichTextLabel;
     
    4645
    4746    /* Widgets: */
    48     QILabelSeparator *m_pVMSelectorLabel;
    4947    QListWidget *m_pVMSelector;
    5048};
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/exportappliance/UIWizardExportAppPageBasic2.cpp

    r41021 r41372  
    113113{
    114114    /* Translate page: */
    115     setTitle(UIWizardExportApp::tr("Appliance Export Settings"));
     115    setTitle(UIWizardExportApp::tr("Appliance settings"));
    116116
    117117    /* 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"));
    124123    m_pTypeSunCloud->setText(UIWizardExportApp::tr("Sun &Cloud"));
    125124    m_pTypeSimpleStorageSystem->setText(UIWizardExportApp::tr("&Simple Storage System (S3)"));
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/exportappliance/UIWizardExportAppPageBasic3.cpp

    r41021 r41372  
    270270{
    271271    /* Translate page: */
    272     setTitle(UIWizardExportApp::tr("Appliance Export Settings"));
     272    setTitle(UIWizardExportApp::tr("Appliance settings"));
    273273
    274274    /* Translate objects: */
     
    280280    m_pBucketLabel->setText(UIWizardExportApp::tr("&Bucket:"));
    281281    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"));
    283283    m_pFileSelector->setFileFilters(UIWizardExportApp::tr("Open Virtualization Format Archive (%1)").arg("*.ova") + ";;" +
    284284                                    UIWizardExportApp::tr("Open Virtualization Format (%1)").arg("*.ovf"));
     
    287287    m_pManifestCheckbox->setToolTip(UIWizardExportApp::tr("Create a Manifest file for automatic data integrity checks on import."));
    288288    m_pManifestCheckbox->setText(UIWizardExportApp::tr("Write &Manifest file"));
     289
     290    /* Refresh current settings: */
     291    refreshCurrentSettings();
    289292}
    290293
     
    293296    /* Translate page: */
    294297    retranslateUi();
    295 
    296     /* Refresh current settings: */
    297     refreshCurrentSettings();
    298298}
    299299
     
    345345        case Filesystem:
    346346        {
    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>"));
    352353            m_pFileSelector->setFocus();
    353354            break;
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/exportappliance/UIWizardExportAppPageBasic4.cpp

    r41021 r41372  
    8282    {
    8383        m_pLabel = new QIRichTextLabel(this);
    84         m_pVMApplianceLabel = new QILabelSeparator(this);
    85         {
    86             m_pVMApplianceLabel->hide();
    87         }
    8884        m_pApplianceWidget = new UIApplianceExportEditorWidget(this);
    8985        {
    9086            m_pApplianceWidget->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::MinimumExpanding);
    91             m_pVMApplianceLabel->setBuddy(m_pApplianceWidget);
    9287        }
    9388        pMainLayout->addWidget(m_pLabel);
    94         pMainLayout->addWidget(m_pVMApplianceLabel);
    9589        pMainLayout->addWidget(m_pApplianceWidget);
    9690    }
     
    10599{
    106100    /* Translate page: */
    107     setTitle(UIWizardExportApp::tr("Appliance Export Settings"));
     101    setTitle(UIWizardExportApp::tr("Appliance settings"));
    108102
    109103    /* 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."));
    115107}
    116108
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/exportappliance/UIWizardExportAppPageBasic4.h

    r41021 r41372  
    2828
    2929/* Forward declarations: */
    30 class QILabelSeparator;
    3130class UIWizardExportApp;
    3231class QIRichTextLabel;
     
    4746
    4847    /* Widgets: */
    49     QILabelSeparator *m_pVMApplianceLabel;
    5048    UIApplianceExportEditorWidget *m_pApplianceWidget;
    5149};
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/exportappliance/UIWizardExportAppPageExpert.cpp

    r41230 r41372  
    188188    m_strDefaultApplianceName = UIWizardExportApp::tr("Appliance");
    189189    /* Translate widgets: */
    190     m_pVMSelectorLabel->setText(UIWizardExportApp::tr("VM &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"));
    192192    m_pTypeCnt->setTitle(UIWizardExportApp::tr("&Destination"));
    193193    m_pTypeLocalFilesystem->setText(UIWizardExportApp::tr("&Local Filesystem "));
     
    199199    m_pBucketLabel->setText(UIWizardExportApp::tr("&Bucket:"));
    200200    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"));
    202202    m_pFileSelector->setFileFilters(UIWizardExportApp::tr("Open Virtualization Format Archive (%1)").arg("*.ova") + ";;" +
    203203                                    UIWizardExportApp::tr("Open Virtualization Format (%1)").arg("*.ovf"));
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/exportappliance/UIWizardExportAppPageExpert.h

    r41021 r41372  
    2525#include "UIWizardExportAppPageBasic3.h"
    2626#include "UIWizardExportAppPageBasic4.h"
     27
     28/* Forward declarations: */
     29class QILabelSeparator;
    2730
    2831/* Expert page of the Export Appliance wizard: */
     
    8285    bool isComplete() const;
    8386    bool validatePage();
     87
     88    /* Widgets: */
     89    QILabelSeparator *m_pVMSelectorLabel;
     90    QILabelSeparator *m_pVMApplianceLabel;
    8491};
    8592
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/firstrun/UIWizardFirstRun.cpp

    r41021 r41372  
    2020/* Local includes: */
    2121#include "UIWizardFirstRun.h"
    22 #include "UIWizardFirstRunPageBasic1.h"
    2322#include "UIWizardFirstRunPageBasic2.h"
    24 #include "UIWizardFirstRunPageBasic3.h"
    25 #include "UIWizardFirstRunPageExpert.h"
    2623#include "VBoxGlobal.h"
    2724#include "UIMessageCenter.h"
     
    9289
    9390    /* Translate wizard: */
    94     setWindowTitle(tr("First Run Wizard"));
     91    setWindowTitle(tr("Select start-up disk"));
    9592    setButtonText(QWizard::FinishButton, tr("Start"));
    9693}
     
    103100        case UIWizardMode_Basic:
    104101        {
    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));
    108103            break;
    109104        }
    110105        case UIWizardMode_Expert:
    111106        {
    112             setPage(PageExpert, new UIWizardFirstRunPageExpert(m_machine.GetId(), m_fHardDiskWasSet));
     107            AssertMsgFailed(("First-run wizard has no expert-mode!"));
    113108            break;
    114109        }
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/firstrun/UIWizardFirstRun.h

    r41021 r41372  
    5454
    5555    /* Who will be able to export appliance: */
    56     friend class UIWizardFirstRunPageBasic3;
    57     friend class UIWizardFirstRunPageExpert;
     56    friend class UIWizardFirstRunPageBasic2;
    5857
    5958private:
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/firstrun/UIWizardFirstRunPageBasic2.cpp

    r41021 r41372  
    6464    QVBoxLayout *pMainLayout = new QVBoxLayout(this);
    6565    {
     66        pMainLayout->setContentsMargins(8, 0, 8, 0);
    6667        m_pLabel = new QIRichTextLabel(this);
    6768        m_pSourceCnt = new QGroupBox(this);
     
    107108void UIWizardFirstRunPageBasic2::retranslateUi()
    108109{
    109     /* Translate page: */
    110     setTitle(UIWizardFirstRun::tr("Select Installation Media"));
    111 
    112110    /* Translate widgets: */
    113111    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>"));
    117121    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..."));
    123130}
    124131
     
    135142}
    136143
     144bool 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
    137163QString UIWizardFirstRunPageBasic2::source() const
    138164{
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/firstrun/UIWizardFirstRunPageBasic2.h

    r41021 r41372  
    8787    bool isComplete() const;
    8888
     89    /* Validation stuff: */
     90    bool validatePage();
     91
    8992    /* Stuff for 'source' field: */
    9093    QString source() const;
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/importappliance/UIWizardImportApp.cpp

    r41021 r41372  
    210210
    211211    /* Translate wizard: */
    212     setWindowTitle(tr("Appliance Import Wizard"));
     212    setWindowTitle(tr("Import Virtual Applicance"));
    213213    setButtonText(QWizard::CustomButton2, tr("Restore Defaults"));
    214214    setButtonText(QWizard::FinishButton, tr("Import"));
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/importappliance/UIWizardImportAppPageBasic1.cpp

    r41021 r41372  
    5757{
    5858    /* Translate page: */
    59     setTitle(UIWizardImportApp::tr("Welcome to the Appliance Import wizard!"));
     59    setTitle(UIWizardImportApp::tr("Appliance to import"));
    6060
    6161    /* 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>"));
    6765    m_pFileSelector->setChooseButtonText(UIWizardImportApp::tr("Open appliance..."));
    6866    m_pFileSelector->setFileDialogTitle(UIWizardImportApp::tr("Select an appliance to import"));
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/importappliance/UIWizardImportAppPageBasic2.cpp

    r41021 r41372  
    5454{
    5555    /* Translate page: */
    56     setTitle(UIWizardImportApp::tr("Appliance Import Settings"));
     56    setTitle(UIWizardImportApp::tr("Appliance settings"));
    5757
    5858    /* Translate widgets: */
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/importappliance/UIWizardImportAppPageExpert.cpp

    r41021 r41372  
    2626#include "UIWizardImportApp.h"
    2727#include "VBoxGlobal.h"
     28#include "QILabelSeparator.h"
    2829#include "VBoxFilePathSelectorWidget.h"
    2930#include "UIApplianceImportEditorWidget.h"
     
    3536    {
    3637        pMainLayout->setContentsMargins(8, 6, 8, 6);
     38        m_pVMApplianceLabel = new QILabelSeparator(this);
    3739        m_pFileSelector = new VBoxEmptyFileSelector(this);
    3840        {
     
    4547            m_pApplianceWidget->setFile(strFileName);
    4648        }
     49        pMainLayout->addWidget(m_pVMApplianceLabel);
    4750        pMainLayout->addWidget(m_pFileSelector);
    4851        pMainLayout->addWidget(m_pApplianceWidget);
     
    7376{
    7477    /* Translate widgets: */
     78    m_pVMApplianceLabel->setText(UIWizardImportApp::tr("Appliance to import"));
    7579    m_pFileSelector->setChooseButtonText(UIWizardImportApp::tr("Open appliance..."));
    7680    m_pFileSelector->setFileDialogTitle(UIWizardImportApp::tr("Select an appliance to import"));
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/importappliance/UIWizardImportAppPageExpert.h

    r41021 r41372  
    2323#include "UIWizardImportAppPageBasic1.h"
    2424#include "UIWizardImportAppPageBasic2.h"
     25
     26/* Forward declarations: */
     27class QILabelSeparator;
    2528
    2629/* Expert page of the Import Appliance wizard: */
     
    5356    bool isComplete() const;
    5457    bool validatePage();
     58
     59    /* Widgets: */
     60    QILabelSeparator *m_pVMApplianceLabel;
    5561};
    5662
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvd/UIWizardNewVD.cpp

    r41331 r41372  
    2626#include "UIWizardNewVDPageBasic2.h"
    2727#include "UIWizardNewVDPageBasic3.h"
    28 #include "UIWizardNewVDPageBasic4.h"
    2928#include "UIWizardNewVDPageExpert.h"
    3029#include "VBoxGlobal.h"
     
    102101
    103102    /* Translate wizard: */
    104     setWindowTitle(tr("Create New Virtual Disk"));
     103    setWindowTitle(tr("Create Virtual Hard Drive"));
    105104    setButtonText(QWizard::FinishButton, tr("Create"));
    106105}
     
    116115            setPage(Page2, new UIWizardNewVDPageBasic2);
    117116            setPage(Page3, new UIWizardNewVDPageBasic3(m_strDefaultName, m_strDefaultPath, m_uDefaultSize));
    118             setPage(Page4, new UIWizardNewVDPageBasic4);
    119117            break;
    120118        }
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvd/UIWizardNewVD.h

    r41331 r41372  
    2424#include "COMDefs.h"
    2525
    26 /* New Virtual Disk wizard: */
     26/* New Virtual Hard Drive wizard: */
    2727class UIWizardNewVD : public UIWizard
    2828{
     
    3636        Page1,
    3737        Page2,
    38         Page3,
    39         Page4
     38        Page3
    4039    };
    4140
     
    6059
    6160    /* Who will be able to create virtual-disk: */
    62     friend class UIWizardNewVDPageBasic4;
     61    friend class UIWizardNewVDPageBasic3;
    6362    friend class UIWizardNewVDPageExpert;
    6463
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvd/UIWizardNewVDPageBasic1.cpp

    r41331 r41372  
    137137{
    138138    /* Translate page: */
    139     setTitle(UIWizardNewVD::tr("Welcome to the New Virtual Disk wizard!"));
     139    setTitle(UIWizardNewVD::tr("File type"));
    140140
    141141    /* 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."));
    148145    m_pFormatCnt->setTitle(UIWizardNewVD::tr("File &type"));
    149146    QList<QAbstractButton*> buttons = m_pFormatButtonGroup->buttons();
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvd/UIWizardNewVDPageBasic1.h

    r41021 r41372  
    3131class QIRichTextLabel;
    3232
    33 /* 1st page of the New Virtual Disk wizard (base part): */
     33/* 1st page of the New Virtual Hard Drive wizard (base part): */
    3434class UIWizardNewVDPage1 : public UIWizardPageBase
    3535{
     
    5555};
    5656
    57 /* 1st page of the New Virtual Disk wizard (basic extension): */
     57/* 1st page of the New Virtual Hard Drive wizard (basic extension): */
    5858class UIWizardNewVDPageBasic1 : public UIWizardPage, public UIWizardNewVDPage1
    5959{
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvd/UIWizardNewVDPageBasic2.cpp

    r41021 r41372  
    122122{
    123123    /* Translate page: */
    124     setTitle(UIWizardNewVD::tr("Virtual disk storage details"));
     124    setTitle(UIWizardNewVD::tr("Storage details"));
    125125
    126126    /* Translate widgets: */
    127     m_pDescriptionLabel->setText(UIWizardNewVD::tr("Please choose whether the new virtual disk file should be "
     127    m_pDescriptionLabel->setText(UIWizardNewVD::tr("Please choose whether the new virtual hard drive file should be "
    128128                                                   "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 disk as 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>), "
    131131                                               "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 disk file 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 "
    133133                                             "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 disk into several files "
     134    m_pSplitLabel->setText(UIWizardNewVD::tr("<p>You can also choose to <b>split</b> the hard drive file into several files "
    135135                                             "of up to two gigabytes each. This is mainly useful if you wish to store the "
    136136                                             "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  
    3030class QIRichTextLabel;
    3131
    32 /* 2nd page of the New Virtual Disk wizard (base part): */
     32/* 2nd page of the New Virtual Hard Drive wizard (base part): */
    3333class UIWizardNewVDPage2 : public UIWizardPageBase
    3434{
     
    5050};
    5151
    52 /* 2nd page of the New Virtual Disk wizard (basic extension): */
     52/* 2nd page of the New Virtual Hard Drive wizard (basic extension): */
    5353class UIWizardNewVDPageBasic2 : public UIWizardPage, public UIWizardNewVDPage2
    5454{
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvd/UIWizardNewVDPageBasic3.cpp

    r41021 r41372  
    8989    QString strChosenFilePath = QIFileDialog::getSaveFileName(folder.absoluteFilePath(strFileName),
    9090                                                              strBackendsList, thisImp(),
    91                                                               VBoxGlobal::tr("Choose a virtual hard disk file"));
     91                                                              VBoxGlobal::tr("Please choose a location for new virtual hard drive file"));
    9292
    9393    /* If there was something really chosen: */
     
    367367{
    368368    /* Translate page: */
    369     setTitle(UIWizardNewVD::tr("Virtual disk file location and size"));
     369    setTitle(UIWizardNewVD::tr("Location and size"));
    370370
    371371    /* Translate widgets: */
    372     m_pLocationLabel->setText(UIWizardNewVD::tr("Please type the name of the new virtual disk file 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 "
    373373                                                "click on the folder icon to select a different folder to create the file in."));
    374374    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."));
    377378    m_pSizeCnt->setTitle(UIWizardNewVD::tr("&Size"));
    378379}
     
    398399bool UIWizardNewVDPageBasic3::validatePage()
    399400{
    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: */
    401405    QString strMediumPath(mediumPath());
    402     if (QFileInfo(strMediumPath).exists())
    403     {
     406    fResult = !QFileInfo(strMediumPath).exists();
     407    if (!fResult)
    404408        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  
    3333class QIRichTextLabel;
    3434
    35 /* 3rd page of the New Virtual Disk wizard (base part): */
     35/* 3rd page of the New Virtual Hard Drive wizard (base part): */
    3636class UIWizardNewVDPage3 : public UIWizardPageBase
    3737{
     
    8282};
    8383
    84 /* 3rd page of the New Virtual Disk wizard (basic extension): */
     84/* 3rd page of the New Virtual Hard Drive wizard (basic extension): */
    8585class UIWizardNewVDPageBasic3 : public UIWizardPage, public UIWizardNewVDPage3
    8686{
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvd/UIWizardNewVDPageExpert.cpp

    r41331 r41372  
    256256    /* Translate widgets: */
    257257    m_pLocationCnt->setTitle(UIWizardNewVD::tr("&Location"));
    258     m_pLocationOpenButton->setToolTip(UIWizardNewVD::tr("Choose a virtual hard disk file..."));
     258    m_pLocationOpenButton->setToolTip(UIWizardNewVD::tr("Choose a virtual hard drive file..."));
    259259    m_pSizeCnt->setTitle(UIWizardNewVD::tr("&Size"));
    260260    m_pFormatCnt->setTitle(UIWizardNewVD::tr("File &type"));
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvd/UIWizardNewVDPageExpert.h

    r41021 r41372  
    2424#include "UIWizardNewVDPageBasic2.h"
    2525#include "UIWizardNewVDPageBasic3.h"
    26 #include "UIWizardNewVDPageBasic4.h"
    2726
    28 /* Expert page of the New Virtual Disk wizard: */
     27/* Expert page of the New Virtual Hard Drive wizard: */
    2928class UIWizardNewVDPageExpert : public UIWizardPage,
    3029                                public UIWizardNewVDPage1,
    3130                                public UIWizardNewVDPage2,
    32                                 public UIWizardNewVDPage3,
    33                                 public UIWizardNewVDPage4
     31                                public UIWizardNewVDPage3
    3432{
    3533    Q_OBJECT;
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVM.cpp

    r41021 r41372  
    2020/* Local includes: */
    2121#include "UIWizardNewVM.h"
    22 #include "UIWizardNewVMPageBasic1.h"
    2322#include "UIWizardNewVMPageBasic2.h"
    2423#include "UIWizardNewVMPageBasic3.h"
    2524#include "UIWizardNewVMPageBasic4.h"
    26 #include "UIWizardNewVMPageBasic5.h"
    2725#include "UIWizardNewVMPageExpert.h"
    2826#include "VBoxDefs.h"
     
    6967        }
    7068
    71         /* The FirstRun wizard is to be shown only when we don't attach any virtual disk or attach a new (empty) one.
    72          * Selecting an existing virtual disk will 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. */
    7371        if (field("virtualDiskId").toString().isNull() || !field("virtualDisk").value<CMedium>().isNull())
    7472            m_machine.SetExtraData(VBoxDefs::GUI_FirstRun, "yes");
     
    200198
    201199            QString strId = field("virtualDiskId").toString();
    202             /* Boot virtual disk: */
     200            /* Boot virtual hard drive: */
    203201            if (!strId.isNull())
    204202            {
     
    249247    }
    250248
    251     /* Ensure we don't try to delete a newly created virtual disk on success: */
     249    /* Ensure we don't try to delete a newly created virtual hard drive on success: */
    252250    if (!field("virtualDisk").value<CMedium>().isNull())
    253251        field("virtualDisk").value<CMedium>().detach();
     
    262260
    263261    /* Translate wizard: */
    264     setWindowTitle(tr("Create New Virtual Machine"));
     262    setWindowTitle(tr("Create Virtual Machine"));
    265263    setButtonText(QWizard::FinishButton, tr("Create"));
    266264}
     
    273271        case UIWizardMode_Basic:
    274272        {
    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);
    280276            break;
    281277        }
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVM.h

    r41021 r41372  
    3737        Page2,
    3838        Page3,
    39         Page4,
    40         Page5
     39        Page4
    4140    };
    4241
     
    5655
    5756    /* Who will be able to create virtual-machine: */
    58     friend class UIWizardNewVMPageBasic5;
     57    friend class UIWizardNewVMPageBasic4;
    5958    friend class UIWizardNewVMPageExpert;
    6059
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMPageBasic2.cpp

    r41021 r41372  
    281281{
    282282    /* Translate page: */
    283     setTitle(UIWizardNewVM::tr("VM Name and OS Type"));
     283    setTitle(UIWizardNewVM::tr("Name and operating system"));
    284284
    285285    /* 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."));
    290290    m_pNameCnt->setTitle(UIWizardNewVM::tr("&Name"));
    291     m_pTypeCnt->setTitle(UIWizardNewVM::tr("OS &Type"));
     291    m_pTypeCnt->setTitle(UIWizardNewVM::tr("Operating system"));
    292292}
    293293
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMPageBasic3.cpp

    r41021 r41372  
    6161    {
    6262        m_pLabel1 = new QIRichTextLabel(this);
    63         m_pLabel2 = new QIRichTextLabel(this);
    6463        m_pMemoryCnt = new QGroupBox(this);
    6564        {
     
    102101        }
    103102        pMainLayout->addWidget(m_pLabel1);
    104         pMainLayout->addWidget(m_pLabel2);
    105103        pMainLayout->addWidget(m_pMemoryCnt);
    106104        pMainLayout->addStretch();
     
    136134{
    137135    /* Translate page: */
    138     setTitle(UIWizardNewVM::tr("Memory"));
     136    setTitle(UIWizardNewVM::tr("Memory size"));
    139137
    140138    /* 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>"));
    142139    QString strRecommendedRAM = field("type").value<CGuestOSType>().isNull() ?
    143140                                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"));
    146146    m_pRamUnits->setText(VBoxGlobal::tr("MB", "size suffix MBytes=1024 KBytes"));
    147147    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  
    8080    /* Widgets: */
    8181    QIRichTextLabel *m_pLabel1;
    82     QIRichTextLabel *m_pLabel2;
    8382};
    8483
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMPageBasic4.cpp

    r41021 r41372  
    8080bool UIWizardNewVMPage4::getWithNewVirtualDiskWizard()
    8181{
    82     /* Create New Virtual Disk wizard: */
     82    /* Create New Virtual Hard Drive wizard: */
    8383    UIWizardNewVD dlg(thisImp(),
    8484                      fieldImp("machineBaseName").toString(),
     
    132132    {
    133133        m_pLabel1 = new QIRichTextLabel(this);
    134         m_pLabel2 = new QIRichTextLabel(this);
    135134        m_pDiskCnt = new QGroupBox(this);
    136135        {
     
    165164        }
    166165        pMainLayout->addWidget(m_pLabel1);
    167         pMainLayout->addWidget(m_pLabel2);
    168166        pMainLayout->addWidget(m_pDiskCnt);
    169167        pMainLayout->addStretch();
     
    205203{
    206204    /* Translate page: */
    207     setTitle(UIWizardNewVM::tr("Virtual Hard Disk"));
     205    setTitle(UIWizardNewVM::tr("Hard drive"));
    208206
    209207    /* 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>"));
    215208    QString strRecommendedHDD = field("type").value<CGuestOSType>().isNull() ? QString() :
    216209                                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..."));
    222221}
    223222
     
    267266    else if (m_pDiskCreate->isChecked())
    268267    {
    269         /* Show the New Virtual Disk wizard: */
     268        /* Show the New Virtual Hard Drive wizard: */
    270269        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();
    271282    }
    272283
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMPageBasic4.h

    r41021 r41372  
    122122    /* Widgets: */
    123123    QIRichTextLabel *m_pLabel1;
    124     QIRichTextLabel *m_pLabel2;
    125124};
    126125
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMPageExpert.cpp

    r41230 r41372  
    238238    /* Translate widgets: */
    239239    m_pNameCnt->setTitle(UIWizardNewVM::tr("&Name"));
    240     m_pTypeCnt->setTitle(UIWizardNewVM::tr("OS &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"));
    242242    m_pRamUnits->setText(VBoxGlobal::tr("MB", "size suffix MBytes=1024 KBytes"));
    243243    m_pRamMin->setText(QString("%1 %2").arg(m_pRamSlider->minRAM()).arg(VBoxGlobal::tr("MB", "size suffix MBytes=1024 KBytes")));
    244244    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 disk file..."));
     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..."));
    249249}
    250250
     
    296296            if (m_pDiskCnt->isChecked() && m_pDiskCreate->isChecked())
    297297            {
    298                 /* Show the New Virtual Disk wizard if necessary: */
     298                /* Show the New Virtual Hard Drive wizard if necessary: */
    299299                fResult = getWithNewVirtualDiskWizard();
    300300            }
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMPageExpert.h

    r41021 r41372  
    2121
    2222/* Local includes: */
    23 #include "UIWizardNewVMPageBasic1.h"
    2423#include "UIWizardNewVMPageBasic2.h"
    2524#include "UIWizardNewVMPageBasic3.h"
    2625#include "UIWizardNewVMPageBasic4.h"
    27 #include "UIWizardNewVMPageBasic5.h"
    2826
    2927/* Expert page of the New Virtual Machine wizard: */
    3028class UIWizardNewVMPageExpert : public UIWizardPage,
    31                                 public UIWizardNewVMPage1,
    3229                                public UIWizardNewVMPage2,
    3330                                public UIWizardNewVMPage3,
    34                                 public UIWizardNewVMPage4,
    35                                 public UIWizardNewVMPage5
     31                                public UIWizardNewVMPage4
    3632{
    3733    Q_OBJECT;
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette