VirtualBox

Ignore:
Timestamp:
Jul 3, 2021 6:58:17 PM (4 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9996: Working on the name and os type page functionality. not complete.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVM.cpp

    r90003 r90009  
    5151}
    5252
    53 UIWizardNewVM::UIWizardNewVM(QWidget *pParent, const QString &strGroup /* = QString() */,
     53UIWizardNewVM::UIWizardNewVM(QWidget *pParent, const QString &strMachineGroup /* = QString() */,
    5454                             WizardMode enmMode /* = WizardMode_Auto */)
    5555    : UINativeWizard(pParent, WizardType_NewCloudVM, enmMode)
    56     , m_strGroup(strGroup)
     56    , m_strMachineGroup(strMachineGroup)
    5757    , m_iIDECount(0)
    5858    , m_iSATACount(0)
     
    8383    //     case WizardMode_Basic:
    8484    //     {
    85     //         // setPage(Page1, new UIWizardNewVMPageNameOSType(m_strGroup));
     85    //         // setPage(Page1, new UIWizardNewVMPageNameOSType(m_strMachineGroup));
    8686    //         // setPage(Page2, new UIWizardNewVMPageUnattended);
    8787    //         // setPage(Page3, new UIWizardNewVMPageHardware);
     
    9393    //     case WizardMode_Expert:
    9494    //     {
    95     //         setPage(PageExpert, new UIWizardNewVMPageExpert(m_strGroup));
     95    //         setPage(PageExpert, new UIWizardNewVMPageExpert(m_strMachineGroup));
    9696    //         break;
    9797    //     }
     
    112112        case WizardMode_Basic:
    113113        {
    114             addPage(new UIWizardNewVMNameOSTypePageBasic(m_strGroup));
     114            addPage(new UIWizardNewVMNameOSTypePageBasic);
    115115            addPage(new UIWizardNewVMUnattendedPageBasic);
    116116            addPage(new UIWizardNewVMHardwarePageBasic);
     
    144144//     {
    145145//         QVector<QString> groups;
    146 //         if (!m_strGroup.isEmpty())
    147 //             groups << m_strGroup;
     146//         if (!m_strMachineGroup.isEmpty())
     147//             groups << m_strMachineGroup;
    148148//         m_machine = vbox.CreateMachine(field("machineFilePath").toString(),
    149149//                                        field("name").toString(),
     
    697697}
    698698
     699const QString &UIWizardNewVM::machineGroup() const
     700{
     701    return m_strMachineGroup;
     702}
     703
     704const QString &UIWizardNewVM::machineFilePath() const
     705{
     706    return m_strMachineFilePath;
     707}
     708
     709void UIWizardNewVM::setMachineFilePath(const QString &strMachineFilePath)
     710{
     711    m_strMachineFilePath = strMachineFilePath;
     712}
     713
     714const QString &UIWizardNewVM::machineFolder() const
     715{
     716    return m_strMachineFolder;
     717}
     718
     719void UIWizardNewVM::setMachineFolder(const QString &strMachineFolder)
     720{
     721    m_strMachineFolder = strMachineFolder;
     722}
     723
     724const QString &UIWizardNewVM::machineBaseName() const
     725{
     726    return m_strMachineBaseName;
     727}
     728
     729void UIWizardNewVM::setMachineBaseName(const QString &strMachineBaseName)
     730{
     731    m_strMachineBaseName = strMachineBaseName;
     732}
     733
     734const QString &UIWizardNewVM::detectedOSTypeId() const
     735{
     736    return m_strDetectedOSTypeId;
     737}
     738
     739void UIWizardNewVM::setDetectedOSTypeId(const QString &strDetectedOSTypeId)
     740{
     741    m_strDetectedOSTypeId = strDetectedOSTypeId;
     742}
     743
    699744const UIUnattendedInstallData &UIWizardNewVM::unattendedInstallData() const
    700745{
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