VirtualBox

Changeset 91713 in vbox


Ignore:
Timestamp:
Oct 13, 2021 12:13:47 PM (3 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9974. Removing first run wizard.

Location:
trunk/src/VBox/Frontends/VirtualBox
Files:
1 deleted
14 edited

Legend:

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

    r91709 r91713  
    299299        ./src/wizards/exportappliance \
    300300        ./src/wizards/importappliance \
    301         ./src/wizards/firstrun \
    302301        ./src/wizards/editors
    303302
     
    742741        src/runtime/seamless/UIMachineWindowSeamless.h \
    743742        src/softkeyboard/UISoftKeyboard.h \
    744         src/widgets/UIMiniToolBar.h \
    745         src/wizards/firstrun/UIWizardFirstRun.h \
    746         src/wizards/firstrun/UIWizardFirstRunPageBasic.h
     743        src/widgets/UIMiniToolBar.h
    747744
    748745ifdef VBOX_WITH_DRAG_AND_DROP
     
    12671264        src/runtime/seamless/UIMachineWindowSeamless.cpp \
    12681265        src/softkeyboard/UISoftKeyboard.cpp \
    1269         src/widgets/UIMiniToolBar.cpp \
    1270         src/wizards/firstrun/UIWizardFirstRun.cpp \
    1271         src/wizards/firstrun/UIWizardFirstRunPageBasic.cpp
     1266        src/widgets/UIMiniToolBar.cpp
    12721267
    12731268ifdef VBOX_WITH_DRAG_AND_DROP
     
    19841979                wizards/clonevm \
    19851980                wizards/exportappliance \
    1986                 wizards/firstrun \
    19871981                wizards/importappliance \
    19881982                wizards/newcloudvm \
  • trunk/src/VBox/Frontends/VirtualBox/src/converter/UIConverterBackendGlobal.cpp

    r91437 r91713  
    20732073        case WizardType_NewCloudVM:      strResult = "NewCloudVM"; break;
    20742074        case WizardType_AddCloudVM:      strResult = "AddCloudVM"; break;
    2075         case WizardType_FirstRun:        strResult = "FirstRun"; break;
    20762075        case WizardType_NewVD:           strResult = "NewVD"; break;
    20772076        case WizardType_CloneVD:         strResult = "CloneVD"; break;
     
    20972096    keys << "NewCloudVM";      values << WizardType_NewCloudVM;
    20982097    keys << "AddCloudVM";      values << WizardType_AddCloudVM;
    2099     keys << "FirstRun";        values << WizardType_FirstRun;
    21002098    keys << "NewVD";           values << WizardType_NewVD;
    21012099    keys << "CloneVD";         values << WizardType_CloneVD;
  • trunk/src/VBox/Frontends/VirtualBox/src/extradata/UIExtraDataDefs.cpp

    r91227 r91713  
    136136const char *UIExtraDataDefs::GUI_PreventReconfiguration = "GUI/PreventReconfiguration";
    137137const char *UIExtraDataDefs::GUI_PreventSnapshotOperations = "GUI/PreventSnapshotOperations";
    138 const char *UIExtraDataDefs::GUI_FirstRun = "GUI/FirstRun";
    139138const char *UIExtraDataDefs::GUI_MachineWindowIcons = "GUI/MachineWindowIcons";
    140139#ifndef VBOX_WS_MAC
  • trunk/src/VBox/Frontends/VirtualBox/src/extradata/UIExtraDataDefs.h

    r91416 r91713  
    262262        /** Holds whether machine snapshot operations disabled. */
    263263        SHARED_LIBRARY_STUFF extern const char *GUI_PreventSnapshotOperations;
    264         /** Holds whether this machine is first time started. */
    265         SHARED_LIBRARY_STUFF extern const char *GUI_FirstRun;
    266264        /** Except Mac OS X: Holds redefined machine-window icon names. */
    267265        SHARED_LIBRARY_STUFF extern const char *GUI_MachineWindowIcons;
     
    877875    WizardType_NewCloudVM,
    878876    WizardType_AddCloudVM,
    879     WizardType_FirstRun,
    880877    WizardType_NewVD,
    881878    WizardType_CloneVD
  • trunk/src/VBox/Frontends/VirtualBox/src/extradata/UIExtraDataManager.cpp

    r91236 r91713  
    19291929           << GUI_HideFromManager << GUI_HideDetails
    19301930           << GUI_PreventReconfiguration << GUI_PreventSnapshotOperations
    1931            << GUI_FirstRun
    19321931#ifndef VBOX_WS_MAC
    19331932           << GUI_MachineWindowIcons << GUI_MachineWindowNamePostfix
     
    30973096WizardMode UIExtraDataManager::modeForWizardType(WizardType type)
    30983097{
    3099     /* Some wizard use only 'basic' mode: */
    3100     if (type == WizardType_FirstRun)
    3101         return WizardMode_Basic;
    31023098    /* Otherwise get mode from cached extra-data: */
    31033099    return extraDataStringList(GUI_HideDescriptionForWizards).contains(gpConverter->toInternalString(type))
     
    31453141    /* 'True' unless 'restriction' feature allowed: */
    31463142    return !isFeatureAllowed(GUI_PreventSnapshotOperations, uID);
    3147 }
    3148 
    3149 bool UIExtraDataManager::machineFirstTimeStarted(const QUuid &uID)
    3150 {
    3151     /* 'True' only if feature is allowed: */
    3152     return isFeatureAllowed(GUI_FirstRun, uID);
    3153 }
    3154 
    3155 void UIExtraDataManager::setMachineFirstTimeStarted(bool fFirstTimeStarted, const QUuid &uID)
    3156 {
    3157     /* 'True' if feature allowed, null-string otherwise: */
    3158     setExtraDataString(GUI_FirstRun, toFeatureAllowed(fFirstTimeStarted), uID);
    31593143}
    31603144
  • trunk/src/VBox/Frontends/VirtualBox/src/extradata/UIExtraDataManager.h

    r91236 r91713  
    487487        /** Returns whether machine snapshot operations enabled. */
    488488        bool machineSnapshotOperationsEnabled(const QUuid &uID);
    489 
    490         /** Returns whether this machine is first time started. */
    491         bool machineFirstTimeStarted(const QUuid &uID);
    492         /** Returns whether this machine is fFirstTimeStarted. */
    493         void setMachineFirstTimeStarted(bool fFirstTimeStarted, const QUuid &uID);
    494489
    495490        /** Except Mac OS X: Returns redefined machine-window icon names. */
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UICommon.cpp

    r91445 r91713  
    22352235            }
    22362236        }
    2237         /* If mounting was successful: */
    2238         if (fWasMounted)
    2239         {
    2240             /* Disable First RUN Wizard: */
    2241             if (gEDataManager->machineFirstTimeStarted(comMachine.GetId()))
    2242                 gEDataManager->setMachineFirstTimeStarted(false, comMachine.GetId());
    2243         }
    22442237    }
    22452238
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.cpp

    r91363 r91713  
    4747#include "UIMousePointerShapeData.h"
    4848#include "UINotificationCenter.h"
    49 #include "UIWizardFirstRun.h"
    5049#include "UIConsoleEventHandler.h"
    5150#include "UIFrameBuffer.h"
     
    169168        UINotificationMessage::remindAboutAutoCapture();
    170169
    171     /* Check if we are in teleportation waiting mode.
    172      * In that case no first run wizard is necessary. */
    173170    m_machineState = machine().GetState();
    174     if (   isFirstTimeStarted()
    175         && !((   m_machineState == KMachineState_PoweredOff
    176               || m_machineState == KMachineState_Aborted
    177               || m_machineState == KMachineState_AbortedSaved
    178               || m_machineState == KMachineState_Teleported)
    179              && machine().GetTeleporterEnabled()))
    180     {
    181         UISafePointerWizard pWizard = new UIWizardFirstRun(mainMachineWindow(), machine());
    182         pWizard->prepare();
    183         pWizard->exec();
    184         if (pWizard)
    185             delete pWizard;
    186     }
    187171
    188172    /* Apply debug settings from the command line. */
     
    899883    /* Common flags: */
    900884    , m_fInitialized(false)
    901     , m_fIsFirstTimeStarted(false)
    902885    , m_fIsGuestResizeIgnored(false)
    903886    , m_fIsAutoCaptureDisabled(false)
     
    12351218#endif
    12361219
    1237         /* Should the First RUN wizard be here? */
    1238         m_fIsFirstTimeStarted = gEDataManager->machineFirstTimeStarted(uMachineID);
    1239         /* Disable First RUN wizard for subsequent start anyway: */
    1240         if (m_fIsFirstTimeStarted)
    1241             gEDataManager->setMachineFirstTimeStarted(false, uMachineID);
    1242 
    12431220        /* Should guest autoresize? */
    12441221        QAction *pGuestAutoresizeSwitch = actionPool()->action(UIActionIndexRT_M_View_T_GuestAutoresize);
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.h

    r91363 r91713  
    178178                                    machineStatePrevious() == KMachineState_TeleportingPausedVM; }
    179179    bool isInitialized() const { return m_fInitialized; }
    180     bool isFirstTimeStarted() const { return m_fIsFirstTimeStarted; }
    181180    bool isGuestResizeIgnored() const { return m_fIsGuestResizeIgnored; }
    182181    bool isAutoCaptureDisabled() const { return m_fIsAutoCaptureDisabled; }
     
    562561    /* Common flags: */
    563562    bool m_fInitialized : 1;
    564     bool m_fIsFirstTimeStarted : 1;
    565563    bool m_fIsGuestResizeIgnored : 1;
    566564    bool m_fIsAutoCaptureDisabled : 1;
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/UISettingsDialogSpecific.cpp

    r89324 r91713  
    325325    , m_strCategory(strCategory)
    326326    , m_strControl(strControl)
    327     , m_fResetFirstRunFlag(false)
    328327{
    329328    /* Prepare: */
     
    469468        if (pSystemPage && pSystemPage->isHIDEnabled() && m_machine.GetUSBControllers().isEmpty())
    470469            m_machine.AddUSBController("OHCI", KUSBControllerType_OHCI);
    471 
    472         /* Disable First RUN Wizard: */
    473         if (m_fResetFirstRunFlag)
    474             gEDataManager->setMachineFirstTimeStarted(false, m_uMachineId);
    475470
    476471        /* Save settings finally: */
     
    565560    UISettingsDialog::sltMarkLoaded();
    566561
    567     /* No need to reset 'first run' flag: */
    568     m_fResetFirstRunFlag = false;
    569 
    570562    /* Unlock the session if exists: */
    571563    if (!m_session.isNull())
     
    646638    /* Reload data: */
    647639    loadOwnData();
    648 }
    649 
    650 void UISettingsDialogMachine::sltResetFirstRunFlag()
    651 {
    652     m_fResetFirstRunFlag = true;
    653640}
    654641
     
    719706                {
    720707                    pSettingsPage = new UIMachineSettingsStorage;
    721                     connect(static_cast<UIMachineSettingsStorage*>(pSettingsPage), &UIMachineSettingsStorage::sigStorageChanged,
    722                             this, &UISettingsDialogMachine::sltResetFirstRunFlag);
    723708                    addItem(":/hd_32px.png", ":/hd_24px.png", ":/hd_16px.png",
    724709                            iPageIndex, "#storage", pSettingsPage);
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/UISettingsDialogSpecific.h

    r83960 r91713  
    133133    void sltMachineDataChanged(const QUuid &uMachineId);
    134134
    135     /** Handles request to reset first run flag. */
    136     void sltResetFirstRunFlag();
    137 
    138135private:
    139136
     
    169166    CConsole  m_console;
    170167
    171     /** Holds whether we have request to reset first run flag. */
    172     bool  m_fResetFirstRunFlag;
    173168};
    174169
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/UINativeWizard.cpp

    r91456 r91713  
    262262    if (iIndex == 0)
    263263        fIsExpertButtonAvailable = true;
    264     /* But first-run wizard has no such button anyway: */
    265     if (m_enmType == WizardType_FirstRun)
    266         fIsExpertButtonAvailable = false;
    267264    /* Hide/show Expert button finally: */
    268265    QPushButton *pButtonExpert = wizardButton(WizardButtonType_Expert);
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/UIWizard.cpp

    r90258 r91713  
    293293    if (iId == 0)
    294294        fIsHideShowDescriptionButtonAvailable = true;
    295     /* But first-run wizard has no such button anyway: */
    296     if (m_enmType == WizardType_FirstRun)
    297         fIsHideShowDescriptionButtonAvailable = false;
    298295    /* Set a flag for hide/show description button finally: */
    299296    setOption(QWizard::HaveCustomButton1, fIsHideShowDescriptionButtonAvailable);
     
    433430        case WizardType_CloneVD:
    434431            dRatio += 0.1;
    435             break;
    436         case WizardType_FirstRun:
    437             dRatio += 0.3;
    438432            break;
    439433        default:
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVM.cpp

    r91618 r91713  
    137137            return false;
    138138        }
    139 
    140         /* Disable first run wizard for now. We will soon remove it: */
    141         if (ISOFilePath().isEmpty() &&
    142             !isUnattendedEnabled() &&
    143             !m_virtualDisk.isNull())
    144             m_machine.SetExtraData(GUI_FirstRun, "no");
    145139    }
    146140
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