VirtualBox

Changeset 51207 in vbox


Ignore:
Timestamp:
May 7, 2014 3:53:58 PM (10 years ago)
Author:
vboxsync
Message:

FE/Qt: 6660: Advanced extra-data management framework: Integrate GUI_InvertMessageOption.

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/extradata/UIExtraDataManager.cpp

    r51204 r51207  
    228228}
    229229
     230QStringList UIExtraDataManager::messagesWithInvertedOption() const
     231{
     232    return extraDataStringList(GUI_InvertMessageOption);
     233}
     234
    230235#ifdef VBOX_GUI_WITH_NETWORK_MANAGER
    231236bool UIExtraDataManager::shouldWeAllowApplicationUpdate() const
  • trunk/src/VBox/Frontends/VirtualBox/src/extradata/UIExtraDataManager.h

    r51199 r51207  
    106106    /** Defines list of the supressed messages for the Message/Popup center frameworks as @a value. */
    107107    void setSuppressedMessages(const QStringList &value);
     108
     109    /** Returns list of the messages for the Message/Popup center frameworks with inverted check-box state. */
     110    QStringList messagesWithInvertedOption() const;
    108111
    109112#ifdef VBOX_GUI_WITH_NETWORK_MANAGER
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UIMessageCenter.cpp

    r51199 r51207  
    795795                                .arg(strSnapshotName),
    796796                             tr("Create a snapshot of the current machine state"),
    797                              !vboxGlobal().virtualBox().GetExtraDataStringList(GUI_InvertMessageOption).contains("confirmSnapshotRestoring"),
     797                             !gEDataManager->messagesWithInvertedOption().contains("confirmSnapshotRestoring"),
    798798                             AlertButton_Ok | AlertButtonOption_Default,
    799799                             AlertButton_Cancel | AlertButtonOption_Escape,
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