VirtualBox

Changeset 46898 in vbox


Ignore:
Timestamp:
Jul 2, 2013 10:59:16 AM (12 years ago)
Author:
vboxsync
Message:

FE/Qt: Runtime UI: Extra-data handling for GUI/DefaultCloseAction, GUI/LastCloseAction and GUI/RestrictedCloseActions: Renaming *Save* value to *SaveState* for backward compatibility.

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/converter/UIConverterBackendGlobal.cpp

    r46796 r46898  
    565565    switch (machineCloseAction)
    566566    {
    567         case MachineCloseAction_Save:                       strResult = "Save"; break;
     567        case MachineCloseAction_SaveState:                  strResult = "SaveState"; break;
    568568        case MachineCloseAction_Shutdown:                   strResult = "Shutdown"; break;
    569569        case MachineCloseAction_PowerOff:                   strResult = "PowerOff"; break;
     
    584584     * to search through the keys using 'case-insensitive' rule: */
    585585    QStringList keys;                    QList<MachineCloseAction> values;
    586     keys << "Save";                      values << MachineCloseAction_Save;
     586    keys << "SaveState";                 values << MachineCloseAction_SaveState;
    587587    keys << "Shutdown";                  values << MachineCloseAction_Shutdown;
    588588    keys << "PowerOff";                  values << MachineCloseAction_PowerOff;
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UIDefs.h

    r46797 r46898  
    318318{
    319319    MachineCloseAction_Invalid,
    320     MachineCloseAction_Save,
     320    MachineCloseAction_SaveState,
    321321    MachineCloseAction_Shutdown,
    322322    MachineCloseAction_PowerOff,
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineWindow.cpp

    r46704 r46898  
    328328    switch (closeAction)
    329329    {
    330         case MachineCloseAction_Save:
     330        case MachineCloseAction_SaveState:
    331331        {
    332332            /* Save VM state: */
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIVMCloseDialog.cpp

    r46708 r46898  
    7272    /* Calculate result: */
    7373    if (m_pSaveRadio->isChecked())
    74         setResult(MachineCloseAction_Save);
     74        setResult(MachineCloseAction_SaveState);
    7575    else if (m_pShutdownRadio->isChecked())
    7676        setResult(MachineCloseAction_Shutdown);
     
    282282    /* Check which close-actions are resticted: */
    283283    QList<MachineCloseAction> restictedCloseActions = vboxGlobal().restrictedMachineCloseActions(m_machine);
    284     bool fIsStateSavingAllowed = !restictedCloseActions.contains(MachineCloseAction_Save);
     284    bool fIsStateSavingAllowed = !restictedCloseActions.contains(MachineCloseAction_SaveState);
    285285    bool fIsACPIShutdownAllowed = !restictedCloseActions.contains(MachineCloseAction_Shutdown);
    286286    bool fIsPowerOffAllowed = !restictedCloseActions.contains(MachineCloseAction_PowerOff);
     
    308308    /* If choosing 'last choice' is possible: */
    309309    m_lastCloseAction = gpConverter->fromInternalString<MachineCloseAction>(m_machine.GetExtraData(GUI_LastCloseAction));
    310     if (m_lastCloseAction == MachineCloseAction_Save && fIsStateSavingAllowed)
     310    if (m_lastCloseAction == MachineCloseAction_SaveState && fIsStateSavingAllowed)
    311311    {
    312312        pRadioButtonToChoose = m_pSaveRadio;
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