VirtualBox

Ignore:
Timestamp:
Aug 22, 2014 11:03:40 AM (11 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
95673
Message:

FE/Qt: 7462: Runtime UI: Move action-pool related enums to Q_OBJECT zone to be possible to register them for meta-data access.

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

Legend:

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

    r52389 r52459  
    279279        src/extensions/QIAdvancedToolBar.h \
    280280        src/extensions/graphics/QIGraphicsWidget.h \
     281        src/extradata/UIExtraDataDefs.h \
    281282        src/extradata/UIExtraDataManager.h \
    282283        src/globals/UIActionPool.h \
  • trunk/src/VBox/Frontends/VirtualBox/src/converter/UIConverterBackend.h

    r52218 r52459  
    7070template<> bool canConvert<SizeSuffix>();
    7171template<> bool canConvert<StorageSlot>();
    72 template<> bool canConvert<MenuHelpActionType>();
     72template<> bool canConvert<UIExtraDataMetaDefs::MenuHelpActionType>();
    7373#ifdef Q_WS_MAC
    74 template<> bool canConvert<MenuApplicationActionType>();
     74template<> bool canConvert<UIExtraDataMetaDefs::MenuApplicationActionType>();
    7575#endif /* Q_WS_MAC */
    76 template<> bool canConvert<RuntimeMenuType>();
    77 template<> bool canConvert<RuntimeMenuMachineActionType>();
    78 template<> bool canConvert<RuntimeMenuViewActionType>();
    79 template<> bool canConvert<RuntimeMenuDevicesActionType>();
     76template<> bool canConvert<UIExtraDataMetaDefs::RuntimeMenuType>();
     77template<> bool canConvert<UIExtraDataMetaDefs::RuntimeMenuMachineActionType>();
     78template<> bool canConvert<UIExtraDataMetaDefs::RuntimeMenuViewActionType>();
     79template<> bool canConvert<UIExtraDataMetaDefs::RuntimeMenuDevicesActionType>();
    8080#ifdef VBOX_WITH_DEBUGGER_GUI
    81 template<> bool canConvert<RuntimeMenuDebuggerActionType>();
     81template<> bool canConvert<UIExtraDataMetaDefs::RuntimeMenuDebuggerActionType>();
    8282#endif /* VBOX_WITH_DEBUGGER_GUI */
    8383template<> bool canConvert<UIVisualStateType>();
     
    123123template<> QString toString(const StorageSlot &storageSlot);
    124124template<> StorageSlot fromString<StorageSlot>(const QString &strStorageSlot);
    125 template<> QString toInternalString(const MenuHelpActionType &menuHelpActionType);
    126 template<> MenuHelpActionType fromInternalString<MenuHelpActionType>(const QString &strMenuHelpActionType);
     125template<> QString toInternalString(const UIExtraDataMetaDefs::MenuHelpActionType &menuHelpActionType);
     126template<> UIExtraDataMetaDefs::MenuHelpActionType fromInternalString<UIExtraDataMetaDefs::MenuHelpActionType>(const QString &strMenuHelpActionType);
    127127#ifdef Q_WS_MAC
    128 template<> QString toInternalString(const MenuApplicationActionType &runtimeMenuApplicationActionType);
    129 template<> MenuApplicationActionType fromInternalString<MenuApplicationActionType>(const QString &strRuntimeMenuApplicationActionType);
     128template<> QString toInternalString(const UIExtraDataMetaDefs::MenuApplicationActionType &runtimeMenuApplicationActionType);
     129template<> UIExtraDataMetaDefs::MenuApplicationActionType fromInternalString<UIExtraDataMetaDefs::MenuApplicationActionType>(const QString &strRuntimeMenuApplicationActionType);
    130130#endif /* Q_WS_MAC */
    131 template<> QString toInternalString(const RuntimeMenuType &runtimeMenuType);
    132 template<> RuntimeMenuType fromInternalString<RuntimeMenuType>(const QString &strRuntimeMenuType);
    133 template<> QString toInternalString(const RuntimeMenuMachineActionType &runtimeMenuMachineActionType);
    134 template<> RuntimeMenuMachineActionType fromInternalString<RuntimeMenuMachineActionType>(const QString &strRuntimeMenuMachineActionType);
    135 template<> QString toInternalString(const RuntimeMenuViewActionType &runtimeMenuViewActionType);
    136 template<> RuntimeMenuViewActionType fromInternalString<RuntimeMenuViewActionType>(const QString &strRuntimeMenuViewActionType);
    137 template<> QString toInternalString(const RuntimeMenuDevicesActionType &runtimeMenuDevicesActionType);
    138 template<> RuntimeMenuDevicesActionType fromInternalString<RuntimeMenuDevicesActionType>(const QString &strRuntimeMenuDevicesActionType);
     131template<> QString toInternalString(const UIExtraDataMetaDefs::RuntimeMenuType &runtimeMenuType);
     132template<> UIExtraDataMetaDefs::RuntimeMenuType fromInternalString<UIExtraDataMetaDefs::RuntimeMenuType>(const QString &strRuntimeMenuType);
     133template<> QString toInternalString(const UIExtraDataMetaDefs::RuntimeMenuMachineActionType &runtimeMenuMachineActionType);
     134template<> UIExtraDataMetaDefs::RuntimeMenuMachineActionType fromInternalString<UIExtraDataMetaDefs::RuntimeMenuMachineActionType>(const QString &strRuntimeMenuMachineActionType);
     135template<> QString toInternalString(const UIExtraDataMetaDefs::RuntimeMenuViewActionType &runtimeMenuViewActionType);
     136template<> UIExtraDataMetaDefs::RuntimeMenuViewActionType fromInternalString<UIExtraDataMetaDefs::RuntimeMenuViewActionType>(const QString &strRuntimeMenuViewActionType);
     137template<> QString toInternalString(const UIExtraDataMetaDefs::RuntimeMenuDevicesActionType &runtimeMenuDevicesActionType);
     138template<> UIExtraDataMetaDefs::RuntimeMenuDevicesActionType fromInternalString<UIExtraDataMetaDefs::RuntimeMenuDevicesActionType>(const QString &strRuntimeMenuDevicesActionType);
    139139#ifdef VBOX_WITH_DEBUGGER_GUI
    140 template<> QString toInternalString(const RuntimeMenuDebuggerActionType &runtimeMenuDebuggerActionType);
    141 template<> RuntimeMenuDebuggerActionType fromInternalString<RuntimeMenuDebuggerActionType>(const QString &strRuntimeMenuDebuggerActionType);
     140template<> QString toInternalString(const UIExtraDataMetaDefs::RuntimeMenuDebuggerActionType &runtimeMenuDebuggerActionType);
     141template<> UIExtraDataMetaDefs::RuntimeMenuDebuggerActionType fromInternalString<UIExtraDataMetaDefs::RuntimeMenuDebuggerActionType>(const QString &strRuntimeMenuDebuggerActionType);
    142142#endif /* VBOX_WITH_DEBUGGER_GUI */
    143143template<> QString toInternalString(const UIVisualStateType &visualStateType);
  • trunk/src/VBox/Frontends/VirtualBox/src/converter/UIConverterBackendGlobal.cpp

    r52220 r52459  
    3434template<> bool canConvert<SizeSuffix>() { return true; }
    3535template<> bool canConvert<StorageSlot>() { return true; }
    36 template<> bool canConvert<MenuHelpActionType>() { return true; }
     36template<> bool canConvert<UIExtraDataMetaDefs::MenuHelpActionType>() { return true; }
    3737#ifdef Q_WS_MAC
    38 template<> bool canConvert<MenuApplicationActionType>() { return true; }
     38template<> bool canConvert<UIExtraDataMetaDefs::MenuApplicationActionType>() { return true; }
    3939#endif /* Q_WS_MAC */
    40 template<> bool canConvert<RuntimeMenuType>() { return true; }
    41 template<> bool canConvert<RuntimeMenuMachineActionType>() { return true; }
    42 template<> bool canConvert<RuntimeMenuViewActionType>() { return true; }
    43 template<> bool canConvert<RuntimeMenuDevicesActionType>() { return true; }
     40template<> bool canConvert<UIExtraDataMetaDefs::RuntimeMenuType>() { return true; }
     41template<> bool canConvert<UIExtraDataMetaDefs::RuntimeMenuMachineActionType>() { return true; }
     42template<> bool canConvert<UIExtraDataMetaDefs::RuntimeMenuViewActionType>() { return true; }
     43template<> bool canConvert<UIExtraDataMetaDefs::RuntimeMenuDevicesActionType>() { return true; }
    4444#ifdef VBOX_WITH_DEBUGGER_GUI
    45 template<> bool canConvert<RuntimeMenuDebuggerActionType>() { return true; }
     45template<> bool canConvert<UIExtraDataMetaDefs::RuntimeMenuDebuggerActionType>() { return true; }
    4646#endif /* VBOX_WITH_DEBUGGER_GUI */
    4747template<> bool canConvert<UIVisualStateType>() { return true; }
     
    357357}
    358358
    359 /* QString <= MenuHelpActionType: */
    360 template<> QString toInternalString(const MenuHelpActionType &menuHelpActionType)
     359/* QString <= UIExtraDataMetaDefs::MenuHelpActionType: */
     360template<> QString toInternalString(const UIExtraDataMetaDefs::MenuHelpActionType &menuHelpActionType)
    361361{
    362362    QString strResult;
    363363    switch (menuHelpActionType)
    364364    {
    365         case MenuHelpActionType_Contents:             strResult = "Contents"; break;
    366         case MenuHelpActionType_WebSite:              strResult = "WebSite"; break;
    367         case MenuHelpActionType_ResetWarnings:        strResult = "ResetWarnings"; break;
     365        case UIExtraDataMetaDefs::MenuHelpActionType_Contents:             strResult = "Contents"; break;
     366        case UIExtraDataMetaDefs::MenuHelpActionType_WebSite:              strResult = "WebSite"; break;
     367        case UIExtraDataMetaDefs::MenuHelpActionType_ResetWarnings:        strResult = "ResetWarnings"; break;
    368368#ifdef VBOX_GUI_WITH_NETWORK_MANAGER
    369         case MenuHelpActionType_NetworkAccessManager: strResult = "NetworkAccessManager"; break;
    370         case MenuHelpActionType_CheckForUpdates:      strResult = "CheckForUpdates"; break;
     369        case UIExtraDataMetaDefs::MenuHelpActionType_NetworkAccessManager: strResult = "NetworkAccessManager"; break;
     370        case UIExtraDataMetaDefs::MenuHelpActionType_CheckForUpdates:      strResult = "CheckForUpdates"; break;
    371371#endif /* VBOX_GUI_WITH_NETWORK_MANAGER */
    372372#ifndef Q_WS_MAC
    373         case MenuHelpActionType_About:                strResult = "About"; break;
    374         case MenuHelpActionType_Preferences:          strResult = "Preferences"; break;
     373        case UIExtraDataMetaDefs::MenuHelpActionType_About:                strResult = "About"; break;
     374        case UIExtraDataMetaDefs::MenuHelpActionType_Preferences:          strResult = "Preferences"; break;
    375375#endif /* !Q_WS_MAC */
    376         case MenuHelpActionType_All:                  strResult = "All"; break;
     376        case UIExtraDataMetaDefs::MenuHelpActionType_All:                  strResult = "All"; break;
    377377        default:
    378378        {
     
    384384}
    385385
    386 /* MenuHelpActionType <= QString: */
    387 template<> MenuHelpActionType fromInternalString<MenuHelpActionType>(const QString &strMenuHelpActionType)
    388 {
    389     /* Here we have some fancy stuff allowing us
    390      * to search through the keys using 'case-insensitive' rule: */
    391     QStringList keys;               QList<MenuHelpActionType> values;
    392     keys << "Contents";             values << MenuHelpActionType_Contents;
    393     keys << "WebSite";              values << MenuHelpActionType_WebSite;
    394     keys << "ResetWarnings";        values << MenuHelpActionType_ResetWarnings;
     386/* UIExtraDataMetaDefs::MenuHelpActionType <= QString: */
     387template<> UIExtraDataMetaDefs::MenuHelpActionType fromInternalString<UIExtraDataMetaDefs::MenuHelpActionType>(const QString &strMenuHelpActionType)
     388{
     389    /* Here we have some fancy stuff allowing us
     390     * to search through the keys using 'case-insensitive' rule: */
     391    QStringList keys;               QList<UIExtraDataMetaDefs::MenuHelpActionType> values;
     392    keys << "Contents";             values << UIExtraDataMetaDefs::MenuHelpActionType_Contents;
     393    keys << "WebSite";              values << UIExtraDataMetaDefs::MenuHelpActionType_WebSite;
     394    keys << "ResetWarnings";        values << UIExtraDataMetaDefs::MenuHelpActionType_ResetWarnings;
    395395#ifdef VBOX_GUI_WITH_NETWORK_MANAGER
    396     keys << "NetworkAccessManager"; values << MenuHelpActionType_NetworkAccessManager;
    397     keys << "CheckForUpdates";      values << MenuHelpActionType_CheckForUpdates;
     396    keys << "NetworkAccessManager"; values << UIExtraDataMetaDefs::MenuHelpActionType_NetworkAccessManager;
     397    keys << "CheckForUpdates";      values << UIExtraDataMetaDefs::MenuHelpActionType_CheckForUpdates;
    398398#endif /* VBOX_GUI_WITH_NETWORK_MANAGER */
    399399#ifndef Q_WS_MAC
    400     keys << "About";                values << MenuHelpActionType_About;
    401     keys << "Preferences";          values << MenuHelpActionType_Preferences;
     400    keys << "About";                values << UIExtraDataMetaDefs::MenuHelpActionType_About;
     401    keys << "Preferences";          values << UIExtraDataMetaDefs::MenuHelpActionType_Preferences;
    402402#endif /* !Q_WS_MAC */
    403     keys << "All";                  values << MenuHelpActionType_All;
     403    keys << "All";                  values << UIExtraDataMetaDefs::MenuHelpActionType_All;
    404404    /* Invalid type for unknown words: */
    405405    if (!keys.contains(strMenuHelpActionType, Qt::CaseInsensitive))
    406         return MenuHelpActionType_Invalid;
     406        return UIExtraDataMetaDefs::MenuHelpActionType_Invalid;
    407407    /* Corresponding type for known words: */
    408408    return values.at(keys.indexOf(QRegExp(strMenuHelpActionType, Qt::CaseInsensitive)));
     
    410410
    411411#ifdef Q_WS_MAC
    412 /* QString <= MenuApplicationActionType: */
    413 template<> QString toInternalString(const MenuApplicationActionType &runtimeMenuApplicationActionType)
     412/* QString <= UIExtraDataMetaDefs::MenuApplicationActionType: */
     413template<> QString toInternalString(const UIExtraDataMetaDefs::MenuApplicationActionType &runtimeMenuApplicationActionType)
    414414{
    415415    QString strResult;
    416416    switch (runtimeMenuApplicationActionType)
    417417    {
    418         case MenuApplicationActionType_About:       strResult = "About"; break;
    419         case MenuApplicationActionType_Preferences: strResult = "Preferences"; break;
    420         case MenuApplicationActionType_Close:       strResult = "Close"; break;
    421         case MenuApplicationActionType_All:         strResult = "All"; break;
     418        case UIExtraDataMetaDefs::MenuApplicationActionType_About:       strResult = "About"; break;
     419        case UIExtraDataMetaDefs::MenuApplicationActionType_Preferences: strResult = "Preferences"; break;
     420        case UIExtraDataMetaDefs::MenuApplicationActionType_Close:       strResult = "Close"; break;
     421        case UIExtraDataMetaDefs::MenuApplicationActionType_All:         strResult = "All"; break;
    422422        default:
    423423        {
     
    429429}
    430430
    431 /* MenuApplicationActionType <= QString: */
    432 template<> MenuApplicationActionType fromInternalString<MenuApplicationActionType>(const QString &strRuntimeMenuApplicationActionType)
    433 {
    434     /* Here we have some fancy stuff allowing us
    435      * to search through the keys using 'case-insensitive' rule: */
    436     QStringList keys;      QList<MenuApplicationActionType> values;
    437     keys << "About";       values << MenuApplicationActionType_About;
    438     keys << "Preferences"; values << MenuApplicationActionType_Preferences;
    439     keys << "Close";       values << MenuApplicationActionType_Close;
    440     keys << "All";         values << MenuApplicationActionType_All;
     431/* UIExtraDataMetaDefs::MenuApplicationActionType <= QString: */
     432template<> UIExtraDataMetaDefs::MenuApplicationActionType fromInternalString<UIExtraDataMetaDefs::MenuApplicationActionType>(const QString &strRuntimeMenuApplicationActionType)
     433{
     434    /* Here we have some fancy stuff allowing us
     435     * to search through the keys using 'case-insensitive' rule: */
     436    QStringList keys;      QList<UIExtraDataMetaDefs::MenuApplicationActionType> values;
     437    keys << "About";       values << UIExtraDataMetaDefs::MenuApplicationActionType_About;
     438    keys << "Preferences"; values << UIExtraDataMetaDefs::MenuApplicationActionType_Preferences;
     439    keys << "Close";       values << UIExtraDataMetaDefs::MenuApplicationActionType_Close;
     440    keys << "All";         values << UIExtraDataMetaDefs::MenuApplicationActionType_All;
    441441    /* Invalid type for unknown words: */
    442442    if (!keys.contains(strRuntimeMenuApplicationActionType, Qt::CaseInsensitive))
    443         return MenuApplicationActionType_Invalid;
     443        return UIExtraDataMetaDefs::MenuApplicationActionType_Invalid;
    444444    /* Corresponding type for known words: */
    445445    return values.at(keys.indexOf(QRegExp(strRuntimeMenuApplicationActionType, Qt::CaseInsensitive)));
     
    447447#endif /* Q_WS_MAC */
    448448
    449 /* QString <= RuntimeMenuType: */
    450 template<> QString toInternalString(const RuntimeMenuType &runtimeMenuType)
     449/* QString <= UIExtraDataMetaDefs::RuntimeMenuType: */
     450template<> QString toInternalString(const UIExtraDataMetaDefs::RuntimeMenuType &runtimeMenuType)
    451451{
    452452    QString strResult;
    453453    switch (runtimeMenuType)
    454454    {
    455         case RuntimeMenuType_Machine: strResult = "Machine"; break;
    456         case RuntimeMenuType_View:    strResult = "View"; break;
    457         case RuntimeMenuType_Devices: strResult = "Devices"; break;
     455        case UIExtraDataMetaDefs::RuntimeMenuType_Machine: strResult = "Machine"; break;
     456        case UIExtraDataMetaDefs::RuntimeMenuType_View:    strResult = "View"; break;
     457        case UIExtraDataMetaDefs::RuntimeMenuType_Devices: strResult = "Devices"; break;
    458458#ifdef VBOX_WITH_DEBUGGER_GUI
    459         case RuntimeMenuType_Debug:   strResult = "Debug"; break;
     459        case UIExtraDataMetaDefs::RuntimeMenuType_Debug:   strResult = "Debug"; break;
    460460#endif /* VBOX_WITH_DEBUGGER_GUI */
    461         case RuntimeMenuType_Help:    strResult = "Help"; break;
    462         case RuntimeMenuType_All:     strResult = "All"; break;
     461        case UIExtraDataMetaDefs::RuntimeMenuType_Help:    strResult = "Help"; break;
     462        case UIExtraDataMetaDefs::RuntimeMenuType_All:     strResult = "All"; break;
    463463        default:
    464464        {
     
    470470}
    471471
    472 /* RuntimeMenuType <= QString: */
    473 template<> RuntimeMenuType fromInternalString<RuntimeMenuType>(const QString &strRuntimeMenuType)
    474 {
    475     /* Here we have some fancy stuff allowing us
    476      * to search through the keys using 'case-insensitive' rule: */
    477     QStringList keys;  QList<RuntimeMenuType> values;
    478     keys << "Machine"; values << RuntimeMenuType_Machine;
    479     keys << "View";    values << RuntimeMenuType_View;
    480     keys << "Devices"; values << RuntimeMenuType_Devices;
     472/* UIExtraDataMetaDefs::RuntimeMenuType <= QString: */
     473template<> UIExtraDataMetaDefs::RuntimeMenuType fromInternalString<UIExtraDataMetaDefs::RuntimeMenuType>(const QString &strRuntimeMenuType)
     474{
     475    /* Here we have some fancy stuff allowing us
     476     * to search through the keys using 'case-insensitive' rule: */
     477    QStringList keys;  QList<UIExtraDataMetaDefs::RuntimeMenuType> values;
     478    keys << "Machine"; values << UIExtraDataMetaDefs::RuntimeMenuType_Machine;
     479    keys << "View";    values << UIExtraDataMetaDefs::RuntimeMenuType_View;
     480    keys << "Devices"; values << UIExtraDataMetaDefs::RuntimeMenuType_Devices;
    481481#ifdef VBOX_WITH_DEBUGGER_GUI
    482     keys << "Debug";   values << RuntimeMenuType_Debug;
     482    keys << "Debug";   values << UIExtraDataMetaDefs::RuntimeMenuType_Debug;
    483483#endif /* VBOX_WITH_DEBUGGER_GUI */
    484     keys << "Help";    values << RuntimeMenuType_Help;
    485     keys << "All";     values << RuntimeMenuType_All;
     484    keys << "Help";    values << UIExtraDataMetaDefs::RuntimeMenuType_Help;
     485    keys << "All";     values << UIExtraDataMetaDefs::RuntimeMenuType_All;
    486486    /* Invalid type for unknown words: */
    487487    if (!keys.contains(strRuntimeMenuType, Qt::CaseInsensitive))
    488         return RuntimeMenuType_Invalid;
     488        return UIExtraDataMetaDefs::RuntimeMenuType_Invalid;
    489489    /* Corresponding type for known words: */
    490490    return values.at(keys.indexOf(QRegExp(strRuntimeMenuType, Qt::CaseInsensitive)));
    491491}
    492492
    493 /* QString <= RuntimeMenuMachineActionType: */
    494 template<> QString toInternalString(const RuntimeMenuMachineActionType &runtimeMenuMachineActionType)
     493/* QString <= UIExtraDataMetaDefs::RuntimeMenuMachineActionType: */
     494template<> QString toInternalString(const UIExtraDataMetaDefs::RuntimeMenuMachineActionType &runtimeMenuMachineActionType)
    495495{
    496496    QString strResult;
    497497    switch (runtimeMenuMachineActionType)
    498498    {
    499         case RuntimeMenuMachineActionType_SettingsDialog:    strResult = "SettingsDialog"; break;
    500         case RuntimeMenuMachineActionType_TakeSnapshot:      strResult = "TakeSnapshot"; break;
    501         case RuntimeMenuMachineActionType_TakeScreenshot:    strResult = "TakeScreenshot"; break;
    502         case RuntimeMenuMachineActionType_InformationDialog: strResult = "InformationDialog"; break;
    503         case RuntimeMenuMachineActionType_Keyboard:          strResult = "Keyboard"; break;
    504         case RuntimeMenuMachineActionType_KeyboardSettings:  strResult = "KeyboardSettings"; break;
    505         case RuntimeMenuMachineActionType_Mouse:             strResult = "Mouse"; break;
    506         case RuntimeMenuMachineActionType_MouseIntegration:  strResult = "MouseIntegration"; break;
    507         case RuntimeMenuMachineActionType_TypeCAD:           strResult = "TypeCAD"; break;
     499        case UIExtraDataMetaDefs::RuntimeMenuMachineActionType_SettingsDialog:    strResult = "SettingsDialog"; break;
     500        case UIExtraDataMetaDefs::RuntimeMenuMachineActionType_TakeSnapshot:      strResult = "TakeSnapshot"; break;
     501        case UIExtraDataMetaDefs::RuntimeMenuMachineActionType_TakeScreenshot:    strResult = "TakeScreenshot"; break;
     502        case UIExtraDataMetaDefs::RuntimeMenuMachineActionType_InformationDialog: strResult = "InformationDialog"; break;
     503        case UIExtraDataMetaDefs::RuntimeMenuMachineActionType_Keyboard:          strResult = "Keyboard"; break;
     504        case UIExtraDataMetaDefs::RuntimeMenuMachineActionType_KeyboardSettings:  strResult = "KeyboardSettings"; break;
     505        case UIExtraDataMetaDefs::RuntimeMenuMachineActionType_Mouse:             strResult = "Mouse"; break;
     506        case UIExtraDataMetaDefs::RuntimeMenuMachineActionType_MouseIntegration:  strResult = "MouseIntegration"; break;
     507        case UIExtraDataMetaDefs::RuntimeMenuMachineActionType_TypeCAD:           strResult = "TypeCAD"; break;
    508508#ifdef Q_WS_X11
    509         case RuntimeMenuMachineActionType_TypeCABS:          strResult = "TypeCABS"; break;
     509        case UIExtraDataMetaDefs::RuntimeMenuMachineActionType_TypeCABS:          strResult = "TypeCABS"; break;
    510510#endif /* Q_WS_X11 */
    511         case RuntimeMenuMachineActionType_Pause:             strResult = "Pause"; break;
    512         case RuntimeMenuMachineActionType_Reset:             strResult = "Reset"; break;
    513         case RuntimeMenuMachineActionType_SaveState:         strResult = "SaveState"; break;
    514         case RuntimeMenuMachineActionType_Shutdown:          strResult = "Shutdown"; break;
    515         case RuntimeMenuMachineActionType_PowerOff:          strResult = "PowerOff"; break;
     511        case UIExtraDataMetaDefs::RuntimeMenuMachineActionType_Pause:             strResult = "Pause"; break;
     512        case UIExtraDataMetaDefs::RuntimeMenuMachineActionType_Reset:             strResult = "Reset"; break;
     513        case UIExtraDataMetaDefs::RuntimeMenuMachineActionType_SaveState:         strResult = "SaveState"; break;
     514        case UIExtraDataMetaDefs::RuntimeMenuMachineActionType_Shutdown:          strResult = "Shutdown"; break;
     515        case UIExtraDataMetaDefs::RuntimeMenuMachineActionType_PowerOff:          strResult = "PowerOff"; break;
    516516#ifndef Q_WS_MAC
    517         case RuntimeMenuMachineActionType_Close:             strResult = "Close"; break;
     517        case UIExtraDataMetaDefs::RuntimeMenuMachineActionType_Close:             strResult = "Close"; break;
    518518#endif /* !Q_WS_MAC */
    519         case RuntimeMenuMachineActionType_All:               strResult = "All"; break;
     519        case UIExtraDataMetaDefs::RuntimeMenuMachineActionType_All:               strResult = "All"; break;
    520520        default:
    521521        {
     
    527527}
    528528
    529 /* RuntimeMenuMachineActionType <= QString: */
    530 template<> RuntimeMenuMachineActionType fromInternalString<RuntimeMenuMachineActionType>(const QString &strRuntimeMenuMachineActionType)
    531 {
    532     /* Here we have some fancy stuff allowing us
    533      * to search through the keys using 'case-insensitive' rule: */
    534     QStringList keys;            QList<RuntimeMenuMachineActionType> values;
    535     keys << "SettingsDialog";    values << RuntimeMenuMachineActionType_SettingsDialog;
    536     keys << "TakeSnapshot";      values << RuntimeMenuMachineActionType_TakeSnapshot;
    537     keys << "TakeScreenshot";    values << RuntimeMenuMachineActionType_TakeScreenshot;
    538     keys << "InformationDialog"; values << RuntimeMenuMachineActionType_InformationDialog;
    539     keys << "Keyboard";          values << RuntimeMenuMachineActionType_Keyboard;
    540     keys << "KeyboardSettings";  values << RuntimeMenuMachineActionType_KeyboardSettings;
    541     keys << "Mouse";             values << RuntimeMenuMachineActionType_Mouse;
    542     keys << "MouseIntegration";  values << RuntimeMenuMachineActionType_MouseIntegration;
    543     keys << "TypeCAD";           values << RuntimeMenuMachineActionType_TypeCAD;
     529/* UIExtraDataMetaDefs::RuntimeMenuMachineActionType <= QString: */
     530template<> UIExtraDataMetaDefs::RuntimeMenuMachineActionType fromInternalString<UIExtraDataMetaDefs::RuntimeMenuMachineActionType>(const QString &strRuntimeMenuMachineActionType)
     531{
     532    /* Here we have some fancy stuff allowing us
     533     * to search through the keys using 'case-insensitive' rule: */
     534    QStringList keys;            QList<UIExtraDataMetaDefs::RuntimeMenuMachineActionType> values;
     535    keys << "SettingsDialog";    values << UIExtraDataMetaDefs::RuntimeMenuMachineActionType_SettingsDialog;
     536    keys << "TakeSnapshot";      values << UIExtraDataMetaDefs::RuntimeMenuMachineActionType_TakeSnapshot;
     537    keys << "TakeScreenshot";    values << UIExtraDataMetaDefs::RuntimeMenuMachineActionType_TakeScreenshot;
     538    keys << "InformationDialog"; values << UIExtraDataMetaDefs::RuntimeMenuMachineActionType_InformationDialog;
     539    keys << "Keyboard";          values << UIExtraDataMetaDefs::RuntimeMenuMachineActionType_Keyboard;
     540    keys << "KeyboardSettings";  values << UIExtraDataMetaDefs::RuntimeMenuMachineActionType_KeyboardSettings;
     541    keys << "Mouse";             values << UIExtraDataMetaDefs::RuntimeMenuMachineActionType_Mouse;
     542    keys << "MouseIntegration";  values << UIExtraDataMetaDefs::RuntimeMenuMachineActionType_MouseIntegration;
     543    keys << "TypeCAD";           values << UIExtraDataMetaDefs::RuntimeMenuMachineActionType_TypeCAD;
    544544#ifdef Q_WS_X11
    545     keys << "TypeCABS";          values << RuntimeMenuMachineActionType_TypeCABS;
     545    keys << "TypeCABS";          values << UIExtraDataMetaDefs::RuntimeMenuMachineActionType_TypeCABS;
    546546#endif /* Q_WS_X11 */
    547     keys << "Pause";             values << RuntimeMenuMachineActionType_Pause;
    548     keys << "Reset";             values << RuntimeMenuMachineActionType_Reset;
    549     keys << "SaveState";         values << RuntimeMenuMachineActionType_SaveState;
    550     keys << "Shutdown";          values << RuntimeMenuMachineActionType_Shutdown;
    551     keys << "PowerOff";          values << RuntimeMenuMachineActionType_PowerOff;
     547    keys << "Pause";             values << UIExtraDataMetaDefs::RuntimeMenuMachineActionType_Pause;
     548    keys << "Reset";             values << UIExtraDataMetaDefs::RuntimeMenuMachineActionType_Reset;
     549    keys << "SaveState";         values << UIExtraDataMetaDefs::RuntimeMenuMachineActionType_SaveState;
     550    keys << "Shutdown";          values << UIExtraDataMetaDefs::RuntimeMenuMachineActionType_Shutdown;
     551    keys << "PowerOff";          values << UIExtraDataMetaDefs::RuntimeMenuMachineActionType_PowerOff;
    552552#ifndef Q_WS_MAC
    553     keys << "Close";             values << RuntimeMenuMachineActionType_Close;
     553    keys << "Close";             values << UIExtraDataMetaDefs::RuntimeMenuMachineActionType_Close;
    554554#endif /* !Q_WS_MAC */
    555     keys << "All";               values << RuntimeMenuMachineActionType_All;
     555    keys << "All";               values << UIExtraDataMetaDefs::RuntimeMenuMachineActionType_All;
    556556    /* Invalid type for unknown words: */
    557557    if (!keys.contains(strRuntimeMenuMachineActionType, Qt::CaseInsensitive))
    558         return RuntimeMenuMachineActionType_Invalid;
     558        return UIExtraDataMetaDefs::RuntimeMenuMachineActionType_Invalid;
    559559    /* Corresponding type for known words: */
    560560    return values.at(keys.indexOf(QRegExp(strRuntimeMenuMachineActionType, Qt::CaseInsensitive)));
    561561}
    562562
    563 /* QString <= RuntimeMenuViewActionType: */
    564 template<> QString toInternalString(const RuntimeMenuViewActionType &runtimeMenuViewActionType)
     563/* QString <= UIExtraDataMetaDefs::RuntimeMenuViewActionType: */
     564template<> QString toInternalString(const UIExtraDataMetaDefs::RuntimeMenuViewActionType &runtimeMenuViewActionType)
    565565{
    566566    QString strResult;
    567567    switch (runtimeMenuViewActionType)
    568568    {
    569         case RuntimeMenuViewActionType_Fullscreen:        strResult = "Fullscreen"; break;
    570         case RuntimeMenuViewActionType_Seamless:          strResult = "Seamless"; break;
    571         case RuntimeMenuViewActionType_Scale:             strResult = "Scale"; break;
    572         case RuntimeMenuViewActionType_GuestAutoresize:   strResult = "GuestAutoresize"; break;
    573         case RuntimeMenuViewActionType_AdjustWindow:      strResult = "AdjustWindow"; break;
    574         case RuntimeMenuViewActionType_StatusBar:         strResult = "StatusBar"; break;
    575         case RuntimeMenuViewActionType_StatusBarSettings: strResult = "StatusBarSettings"; break;
    576         case RuntimeMenuViewActionType_ToggleStatusBar:   strResult = "ToggleStatusBar"; break;
    577         case RuntimeMenuViewActionType_Resize:            strResult = "Resize"; break;
    578         case RuntimeMenuViewActionType_Multiscreen:       strResult = "Multiscreen"; break;
    579         case RuntimeMenuViewActionType_All:               strResult = "All"; break;
     569        case UIExtraDataMetaDefs::RuntimeMenuViewActionType_Fullscreen:        strResult = "Fullscreen"; break;
     570        case UIExtraDataMetaDefs::RuntimeMenuViewActionType_Seamless:          strResult = "Seamless"; break;
     571        case UIExtraDataMetaDefs::RuntimeMenuViewActionType_Scale:             strResult = "Scale"; break;
     572        case UIExtraDataMetaDefs::RuntimeMenuViewActionType_GuestAutoresize:   strResult = "GuestAutoresize"; break;
     573        case UIExtraDataMetaDefs::RuntimeMenuViewActionType_AdjustWindow:      strResult = "AdjustWindow"; break;
     574        case UIExtraDataMetaDefs::RuntimeMenuViewActionType_StatusBar:         strResult = "StatusBar"; break;
     575        case UIExtraDataMetaDefs::RuntimeMenuViewActionType_StatusBarSettings: strResult = "StatusBarSettings"; break;
     576        case UIExtraDataMetaDefs::RuntimeMenuViewActionType_ToggleStatusBar:   strResult = "ToggleStatusBar"; break;
     577        case UIExtraDataMetaDefs::RuntimeMenuViewActionType_Resize:            strResult = "Resize"; break;
     578        case UIExtraDataMetaDefs::RuntimeMenuViewActionType_Multiscreen:       strResult = "Multiscreen"; break;
     579        case UIExtraDataMetaDefs::RuntimeMenuViewActionType_All:               strResult = "All"; break;
    580580        default:
    581581        {
     
    587587}
    588588
    589 /* RuntimeMenuViewActionType <= QString: */
    590 template<> RuntimeMenuViewActionType fromInternalString<RuntimeMenuViewActionType>(const QString &strRuntimeMenuViewActionType)
    591 {
    592     /* Here we have some fancy stuff allowing us
    593      * to search through the keys using 'case-insensitive' rule: */
    594     QStringList keys;            QList<RuntimeMenuViewActionType> values;
    595     keys << "Fullscreen";        values << RuntimeMenuViewActionType_Fullscreen;
    596     keys << "Seamless";          values << RuntimeMenuViewActionType_Seamless;
    597     keys << "Scale";             values << RuntimeMenuViewActionType_Scale;
    598     keys << "GuestAutoresize";   values << RuntimeMenuViewActionType_GuestAutoresize;
    599     keys << "AdjustWindow";      values << RuntimeMenuViewActionType_AdjustWindow;
    600     keys << "StatusBar";         values << RuntimeMenuViewActionType_StatusBar;
    601     keys << "StatusBarSettings"; values << RuntimeMenuViewActionType_StatusBarSettings;
    602     keys << "ToggleStatusBar";   values << RuntimeMenuViewActionType_ToggleStatusBar;
    603     keys << "Resize";            values << RuntimeMenuViewActionType_Resize;
    604     keys << "Multiscreen";       values << RuntimeMenuViewActionType_Multiscreen;
    605     keys << "All";               values << RuntimeMenuViewActionType_All;
     589/* UIExtraDataMetaDefs::RuntimeMenuViewActionType <= QString: */
     590template<> UIExtraDataMetaDefs::RuntimeMenuViewActionType fromInternalString<UIExtraDataMetaDefs::RuntimeMenuViewActionType>(const QString &strRuntimeMenuViewActionType)
     591{
     592    /* Here we have some fancy stuff allowing us
     593     * to search through the keys using 'case-insensitive' rule: */
     594    QStringList keys;            QList<UIExtraDataMetaDefs::RuntimeMenuViewActionType> values;
     595    keys << "Fullscreen";        values << UIExtraDataMetaDefs::RuntimeMenuViewActionType_Fullscreen;
     596    keys << "Seamless";          values << UIExtraDataMetaDefs::RuntimeMenuViewActionType_Seamless;
     597    keys << "Scale";             values << UIExtraDataMetaDefs::RuntimeMenuViewActionType_Scale;
     598    keys << "GuestAutoresize";   values << UIExtraDataMetaDefs::RuntimeMenuViewActionType_GuestAutoresize;
     599    keys << "AdjustWindow";      values << UIExtraDataMetaDefs::RuntimeMenuViewActionType_AdjustWindow;
     600    keys << "StatusBar";         values << UIExtraDataMetaDefs::RuntimeMenuViewActionType_StatusBar;
     601    keys << "StatusBarSettings"; values << UIExtraDataMetaDefs::RuntimeMenuViewActionType_StatusBarSettings;
     602    keys << "ToggleStatusBar";   values << UIExtraDataMetaDefs::RuntimeMenuViewActionType_ToggleStatusBar;
     603    keys << "Resize";            values << UIExtraDataMetaDefs::RuntimeMenuViewActionType_Resize;
     604    keys << "Multiscreen";       values << UIExtraDataMetaDefs::RuntimeMenuViewActionType_Multiscreen;
     605    keys << "All";               values << UIExtraDataMetaDefs::RuntimeMenuViewActionType_All;
    606606    /* Invalid type for unknown words: */
    607607    if (!keys.contains(strRuntimeMenuViewActionType, Qt::CaseInsensitive))
    608         return RuntimeMenuViewActionType_Invalid;
     608        return UIExtraDataMetaDefs::RuntimeMenuViewActionType_Invalid;
    609609    /* Corresponding type for known words: */
    610610    return values.at(keys.indexOf(QRegExp(strRuntimeMenuViewActionType, Qt::CaseInsensitive)));
    611611}
    612612
    613 /* QString <= RuntimeMenuDevicesActionType: */
    614 template<> QString toInternalString(const RuntimeMenuDevicesActionType &runtimeMenuDevicesActionType)
     613/* QString <= UIExtraDataMetaDefs::RuntimeMenuDevicesActionType: */
     614template<> QString toInternalString(const UIExtraDataMetaDefs::RuntimeMenuDevicesActionType &runtimeMenuDevicesActionType)
    615615{
    616616    QString strResult;
    617617    switch (runtimeMenuDevicesActionType)
    618618    {
    619         case RuntimeMenuDevicesActionType_HardDrives:            strResult = "HardDrives"; break;
    620         case RuntimeMenuDevicesActionType_HardDrivesSettings:    strResult = "HardDrivesSettings"; break;
    621         case RuntimeMenuDevicesActionType_OpticalDevices:        strResult = "OpticalDevices"; break;
    622         case RuntimeMenuDevicesActionType_FloppyDevices:         strResult = "FloppyDevices"; break;
    623         case RuntimeMenuDevicesActionType_Network:               strResult = "Network"; break;
    624         case RuntimeMenuDevicesActionType_NetworkSettings:       strResult = "NetworkSettings"; break;
    625         case RuntimeMenuDevicesActionType_USBDevices:            strResult = "USBDevices"; break;
    626         case RuntimeMenuDevicesActionType_USBDevicesSettings:    strResult = "USBDevicesSettings"; break;
    627         case RuntimeMenuDevicesActionType_WebCams:               strResult = "WebCams"; break;
    628         case RuntimeMenuDevicesActionType_SharedClipboard:       strResult = "SharedClipboard"; break;
    629         case RuntimeMenuDevicesActionType_DragAndDrop:           strResult = "DragAndDrop"; break;
    630         case RuntimeMenuDevicesActionType_SharedFolders:         strResult = "SharedFolders"; break;
    631         case RuntimeMenuDevicesActionType_SharedFoldersSettings: strResult = "SharedFoldersSettings"; break;
    632         case RuntimeMenuDevicesActionType_VRDEServer:            strResult = "VRDEServer"; break;
    633         case RuntimeMenuDevicesActionType_VideoCapture:          strResult = "VideoCapture"; break;
    634         case RuntimeMenuDevicesActionType_VideoCaptureSettings:  strResult = "VideoCaptureSettings"; break;
    635         case RuntimeMenuDevicesActionType_StartVideoCapture:     strResult = "StartVideoCapture"; break;
    636         case RuntimeMenuDevicesActionType_InstallGuestTools:     strResult = "InstallGuestTools"; break;
    637         case RuntimeMenuDevicesActionType_All:                   strResult = "All"; break;
     619        case UIExtraDataMetaDefs::RuntimeMenuDevicesActionType_HardDrives:            strResult = "HardDrives"; break;
     620        case UIExtraDataMetaDefs::RuntimeMenuDevicesActionType_HardDrivesSettings:    strResult = "HardDrivesSettings"; break;
     621        case UIExtraDataMetaDefs::RuntimeMenuDevicesActionType_OpticalDevices:        strResult = "OpticalDevices"; break;
     622        case UIExtraDataMetaDefs::RuntimeMenuDevicesActionType_FloppyDevices:         strResult = "FloppyDevices"; break;
     623        case UIExtraDataMetaDefs::RuntimeMenuDevicesActionType_Network:               strResult = "Network"; break;
     624        case UIExtraDataMetaDefs::RuntimeMenuDevicesActionType_NetworkSettings:       strResult = "NetworkSettings"; break;
     625        case UIExtraDataMetaDefs::RuntimeMenuDevicesActionType_USBDevices:            strResult = "USBDevices"; break;
     626        case UIExtraDataMetaDefs::RuntimeMenuDevicesActionType_USBDevicesSettings:    strResult = "USBDevicesSettings"; break;
     627        case UIExtraDataMetaDefs::RuntimeMenuDevicesActionType_WebCams:               strResult = "WebCams"; break;
     628        case UIExtraDataMetaDefs::RuntimeMenuDevicesActionType_SharedClipboard:       strResult = "SharedClipboard"; break;
     629        case UIExtraDataMetaDefs::RuntimeMenuDevicesActionType_DragAndDrop:           strResult = "DragAndDrop"; break;
     630        case UIExtraDataMetaDefs::RuntimeMenuDevicesActionType_SharedFolders:         strResult = "SharedFolders"; break;
     631        case UIExtraDataMetaDefs::RuntimeMenuDevicesActionType_SharedFoldersSettings: strResult = "SharedFoldersSettings"; break;
     632        case UIExtraDataMetaDefs::RuntimeMenuDevicesActionType_VRDEServer:            strResult = "VRDEServer"; break;
     633        case UIExtraDataMetaDefs::RuntimeMenuDevicesActionType_VideoCapture:          strResult = "VideoCapture"; break;
     634        case UIExtraDataMetaDefs::RuntimeMenuDevicesActionType_VideoCaptureSettings:  strResult = "VideoCaptureSettings"; break;
     635        case UIExtraDataMetaDefs::RuntimeMenuDevicesActionType_StartVideoCapture:     strResult = "StartVideoCapture"; break;
     636        case UIExtraDataMetaDefs::RuntimeMenuDevicesActionType_InstallGuestTools:     strResult = "InstallGuestTools"; break;
     637        case UIExtraDataMetaDefs::RuntimeMenuDevicesActionType_All:                   strResult = "All"; break;
    638638        default:
    639639        {
     
    645645}
    646646
    647 /* RuntimeMenuDevicesActionType <= QString: */
    648 template<> RuntimeMenuDevicesActionType fromInternalString<RuntimeMenuDevicesActionType>(const QString &strRuntimeMenuDevicesActionType)
    649 {
    650     /* Here we have some fancy stuff allowing us
    651      * to search through the keys using 'case-insensitive' rule: */
    652     QStringList keys;                QList<RuntimeMenuDevicesActionType> values;
    653     keys << "HardDrives";            values << RuntimeMenuDevicesActionType_HardDrives;
    654     keys << "HardDrivesSettings";    values << RuntimeMenuDevicesActionType_HardDrivesSettings;
    655     keys << "OpticalDevices";        values << RuntimeMenuDevicesActionType_OpticalDevices;
    656     keys << "FloppyDevices";         values << RuntimeMenuDevicesActionType_FloppyDevices;
    657     keys << "Network";               values << RuntimeMenuDevicesActionType_Network;
    658     keys << "NetworkSettings";       values << RuntimeMenuDevicesActionType_NetworkSettings;
    659     keys << "USBDevices";            values << RuntimeMenuDevicesActionType_USBDevices;
    660     keys << "USBDevicesSettings";    values << RuntimeMenuDevicesActionType_USBDevicesSettings;
    661     keys << "WebCams";               values << RuntimeMenuDevicesActionType_WebCams;
    662     keys << "SharedClipboard";       values << RuntimeMenuDevicesActionType_SharedClipboard;
    663     keys << "DragAndDrop";           values << RuntimeMenuDevicesActionType_DragAndDrop;
    664     keys << "SharedFolders";         values << RuntimeMenuDevicesActionType_SharedFolders;
    665     keys << "SharedFoldersSettings"; values << RuntimeMenuDevicesActionType_SharedFoldersSettings;
    666     keys << "VRDEServer";            values << RuntimeMenuDevicesActionType_VRDEServer;
    667     keys << "VideoCapture";          values << RuntimeMenuDevicesActionType_VideoCapture;
    668     keys << "VideoCaptureSettings";  values << RuntimeMenuDevicesActionType_VideoCaptureSettings;
    669     keys << "StartVideoCapture";     values << RuntimeMenuDevicesActionType_StartVideoCapture;
    670     keys << "InstallGuestTools";     values << RuntimeMenuDevicesActionType_InstallGuestTools;
    671     keys << "All";                   values << RuntimeMenuDevicesActionType_All;
     647/* UIExtraDataMetaDefs::RuntimeMenuDevicesActionType <= QString: */
     648template<> UIExtraDataMetaDefs::RuntimeMenuDevicesActionType fromInternalString<UIExtraDataMetaDefs::RuntimeMenuDevicesActionType>(const QString &strRuntimeMenuDevicesActionType)
     649{
     650    /* Here we have some fancy stuff allowing us
     651     * to search through the keys using 'case-insensitive' rule: */
     652    QStringList keys;                QList<UIExtraDataMetaDefs::RuntimeMenuDevicesActionType> values;
     653    keys << "HardDrives";            values << UIExtraDataMetaDefs::RuntimeMenuDevicesActionType_HardDrives;
     654    keys << "HardDrivesSettings";    values << UIExtraDataMetaDefs::RuntimeMenuDevicesActionType_HardDrivesSettings;
     655    keys << "OpticalDevices";        values << UIExtraDataMetaDefs::RuntimeMenuDevicesActionType_OpticalDevices;
     656    keys << "FloppyDevices";         values << UIExtraDataMetaDefs::RuntimeMenuDevicesActionType_FloppyDevices;
     657    keys << "Network";               values << UIExtraDataMetaDefs::RuntimeMenuDevicesActionType_Network;
     658    keys << "NetworkSettings";       values << UIExtraDataMetaDefs::RuntimeMenuDevicesActionType_NetworkSettings;
     659    keys << "USBDevices";            values << UIExtraDataMetaDefs::RuntimeMenuDevicesActionType_USBDevices;
     660    keys << "USBDevicesSettings";    values << UIExtraDataMetaDefs::RuntimeMenuDevicesActionType_USBDevicesSettings;
     661    keys << "WebCams";               values << UIExtraDataMetaDefs::RuntimeMenuDevicesActionType_WebCams;
     662    keys << "SharedClipboard";       values << UIExtraDataMetaDefs::RuntimeMenuDevicesActionType_SharedClipboard;
     663    keys << "DragAndDrop";           values << UIExtraDataMetaDefs::RuntimeMenuDevicesActionType_DragAndDrop;
     664    keys << "SharedFolders";         values << UIExtraDataMetaDefs::RuntimeMenuDevicesActionType_SharedFolders;
     665    keys << "SharedFoldersSettings"; values << UIExtraDataMetaDefs::RuntimeMenuDevicesActionType_SharedFoldersSettings;
     666    keys << "VRDEServer";            values << UIExtraDataMetaDefs::RuntimeMenuDevicesActionType_VRDEServer;
     667    keys << "VideoCapture";          values << UIExtraDataMetaDefs::RuntimeMenuDevicesActionType_VideoCapture;
     668    keys << "VideoCaptureSettings";  values << UIExtraDataMetaDefs::RuntimeMenuDevicesActionType_VideoCaptureSettings;
     669    keys << "StartVideoCapture";     values << UIExtraDataMetaDefs::RuntimeMenuDevicesActionType_StartVideoCapture;
     670    keys << "InstallGuestTools";     values << UIExtraDataMetaDefs::RuntimeMenuDevicesActionType_InstallGuestTools;
     671    keys << "All";                   values << UIExtraDataMetaDefs::RuntimeMenuDevicesActionType_All;
    672672    /* Invalid type for unknown words: */
    673673    if (!keys.contains(strRuntimeMenuDevicesActionType, Qt::CaseInsensitive))
    674         return RuntimeMenuDevicesActionType_Invalid;
     674        return UIExtraDataMetaDefs::RuntimeMenuDevicesActionType_Invalid;
    675675    /* Corresponding type for known words: */
    676676    return values.at(keys.indexOf(QRegExp(strRuntimeMenuDevicesActionType, Qt::CaseInsensitive)));
     
    678678
    679679#ifdef VBOX_WITH_DEBUGGER_GUI
    680 /* QString <= RuntimeMenuDebuggerActionType: */
    681 template<> QString toInternalString(const RuntimeMenuDebuggerActionType &runtimeMenuDebuggerActionType)
     680/* QString <= UIExtraDataMetaDefs::RuntimeMenuDebuggerActionType: */
     681template<> QString toInternalString(const UIExtraDataMetaDefs::RuntimeMenuDebuggerActionType &runtimeMenuDebuggerActionType)
    682682{
    683683    QString strResult;
    684684    switch (runtimeMenuDebuggerActionType)
    685685    {
    686         case RuntimeMenuDebuggerActionType_Statistics:  strResult = "Statistics"; break;
    687         case RuntimeMenuDebuggerActionType_CommandLine: strResult = "CommandLine"; break;
    688         case RuntimeMenuDebuggerActionType_Logging:     strResult = "Logging"; break;
    689         case RuntimeMenuDebuggerActionType_LogDialog:   strResult = "LogDialog"; break;
    690         case RuntimeMenuDebuggerActionType_All:         strResult = "All"; break;
     686        case UIExtraDataMetaDefs::RuntimeMenuDebuggerActionType_Statistics:  strResult = "Statistics"; break;
     687        case UIExtraDataMetaDefs::RuntimeMenuDebuggerActionType_CommandLine: strResult = "CommandLine"; break;
     688        case UIExtraDataMetaDefs::RuntimeMenuDebuggerActionType_Logging:     strResult = "Logging"; break;
     689        case UIExtraDataMetaDefs::RuntimeMenuDebuggerActionType_LogDialog:   strResult = "LogDialog"; break;
     690        case UIExtraDataMetaDefs::RuntimeMenuDebuggerActionType_All:         strResult = "All"; break;
    691691        default:
    692692        {
     
    698698}
    699699
    700 /* RuntimeMenuDebuggerActionType <= QString: */
    701 template<> RuntimeMenuDebuggerActionType fromInternalString<RuntimeMenuDebuggerActionType>(const QString &strRuntimeMenuDebuggerActionType)
    702 {
    703     /* Here we have some fancy stuff allowing us
    704      * to search through the keys using 'case-insensitive' rule: */
    705     QStringList keys;      QList<RuntimeMenuDebuggerActionType> values;
    706     keys << "Statistics";  values << RuntimeMenuDebuggerActionType_Statistics;
    707     keys << "CommandLine"; values << RuntimeMenuDebuggerActionType_CommandLine;
    708     keys << "Logging";     values << RuntimeMenuDebuggerActionType_Logging;
    709     keys << "LogDialog";   values << RuntimeMenuDebuggerActionType_LogDialog;
    710     keys << "All";         values << RuntimeMenuDebuggerActionType_All;
     700/* UIExtraDataMetaDefs::RuntimeMenuDebuggerActionType <= QString: */
     701template<> UIExtraDataMetaDefs::RuntimeMenuDebuggerActionType fromInternalString<UIExtraDataMetaDefs::RuntimeMenuDebuggerActionType>(const QString &strRuntimeMenuDebuggerActionType)
     702{
     703    /* Here we have some fancy stuff allowing us
     704     * to search through the keys using 'case-insensitive' rule: */
     705    QStringList keys;      QList<UIExtraDataMetaDefs::RuntimeMenuDebuggerActionType> values;
     706    keys << "Statistics";  values << UIExtraDataMetaDefs::RuntimeMenuDebuggerActionType_Statistics;
     707    keys << "CommandLine"; values << UIExtraDataMetaDefs::RuntimeMenuDebuggerActionType_CommandLine;
     708    keys << "Logging";     values << UIExtraDataMetaDefs::RuntimeMenuDebuggerActionType_Logging;
     709    keys << "LogDialog";   values << UIExtraDataMetaDefs::RuntimeMenuDebuggerActionType_LogDialog;
     710    keys << "All";         values << UIExtraDataMetaDefs::RuntimeMenuDebuggerActionType_All;
    711711    /* Invalid type for unknown words: */
    712712    if (!keys.contains(strRuntimeMenuDebuggerActionType, Qt::CaseInsensitive))
    713         return RuntimeMenuDebuggerActionType_Invalid;
     713        return UIExtraDataMetaDefs::RuntimeMenuDebuggerActionType_Invalid;
    714714    /* Corresponding type for known words: */
    715715    return values.at(keys.indexOf(QRegExp(strRuntimeMenuDebuggerActionType, Qt::CaseInsensitive)));
  • trunk/src/VBox/Frontends/VirtualBox/src/extradata/UIExtraDataDefs.h

    r52220 r52459  
    264264}
    265265
     266/** Extra-data meta definitions. */
     267class UIExtraDataMetaDefs : public QObject
     268{
     269    Q_OBJECT;
     270    Q_ENUMS(MenuHelpActionType);
     271#ifdef Q_WS_MAC
     272    Q_ENUMS(MenuApplicationActionType);
     273#endif /* Q_WS_MAC */
     274    Q_ENUMS(RuntimeMenuType);
     275    Q_ENUMS(RuntimeMenuMachineActionType);
     276    Q_ENUMS(RuntimeMenuViewActionType);
     277    Q_ENUMS(RuntimeMenuDevicesActionType);
     278#ifdef VBOX_WITH_DEBUGGER_GUI
     279    Q_ENUMS(RuntimeMenuDebuggerActionType);
     280#endif /* VBOX_WITH_DEBUGGER_GUI */
     281
     282public:
     283
     284    /** Menu "Help": Action types. */
     285    enum MenuHelpActionType
     286    {
     287        MenuHelpActionType_Invalid              = 0,
     288        MenuHelpActionType_Contents             = RT_BIT(0),
     289        MenuHelpActionType_WebSite              = RT_BIT(1),
     290        MenuHelpActionType_ResetWarnings        = RT_BIT(2),
     291#ifdef VBOX_GUI_WITH_NETWORK_MANAGER
     292        MenuHelpActionType_NetworkAccessManager = RT_BIT(3),
     293        MenuHelpActionType_CheckForUpdates      = RT_BIT(4),
     294#endif /* VBOX_GUI_WITH_NETWORK_MANAGER */
     295#ifndef Q_WS_MAC
     296        MenuHelpActionType_About                = RT_BIT(5),
     297        MenuHelpActionType_Preferences          = RT_BIT(6),
     298#endif /* !Q_WS_MAC */
     299        MenuHelpActionType_All                  = 0xFFFF
     300    };
     301
     302#ifdef Q_WS_MAC
     303    /** Menu "Application": Action types. */
     304    enum MenuApplicationActionType
     305    {
     306        MenuApplicationActionType_Invalid     = 0,
     307        MenuApplicationActionType_About       = RT_BIT(0),
     308        MenuApplicationActionType_Preferences = RT_BIT(1),
     309        MenuApplicationActionType_Close       = RT_BIT(2),
     310        MenuApplicationActionType_All         = 0xFFFF
     311    };
     312#endif /* Q_WS_MAC */
     313
     314    /** Runtime UI: Menu types. */
     315    enum RuntimeMenuType
     316    {
     317        RuntimeMenuType_Invalid = 0,
     318        RuntimeMenuType_Machine = RT_BIT(0),
     319        RuntimeMenuType_View    = RT_BIT(1),
     320        RuntimeMenuType_Devices = RT_BIT(2),
     321#ifdef VBOX_WITH_DEBUGGER_GUI
     322        RuntimeMenuType_Debug   = RT_BIT(3),
     323#endif /* VBOX_WITH_DEBUGGER_GUI */
     324        RuntimeMenuType_Help    = RT_BIT(4),
     325        RuntimeMenuType_All     = 0xFF
     326    };
     327
     328    /** Runtime UI: Menu "Machine": Action types. */
     329    enum RuntimeMenuMachineActionType
     330    {
     331        RuntimeMenuMachineActionType_Invalid           = 0,
     332        RuntimeMenuMachineActionType_SettingsDialog    = RT_BIT(0),
     333        RuntimeMenuMachineActionType_TakeSnapshot      = RT_BIT(1),
     334        RuntimeMenuMachineActionType_TakeScreenshot    = RT_BIT(2),
     335        RuntimeMenuMachineActionType_InformationDialog = RT_BIT(3),
     336        RuntimeMenuMachineActionType_Keyboard          = RT_BIT(4),
     337        RuntimeMenuMachineActionType_KeyboardSettings  = RT_BIT(5),
     338        RuntimeMenuMachineActionType_Mouse             = RT_BIT(6),
     339        RuntimeMenuMachineActionType_MouseIntegration  = RT_BIT(7),
     340        RuntimeMenuMachineActionType_TypeCAD           = RT_BIT(8),
     341#ifdef Q_WS_X11
     342        RuntimeMenuMachineActionType_TypeCABS          = RT_BIT(9),
     343#endif /* Q_WS_X11 */
     344        RuntimeMenuMachineActionType_Pause             = RT_BIT(10),
     345        RuntimeMenuMachineActionType_Reset             = RT_BIT(11),
     346        RuntimeMenuMachineActionType_SaveState         = RT_BIT(12),
     347        RuntimeMenuMachineActionType_Shutdown          = RT_BIT(13),
     348        RuntimeMenuMachineActionType_PowerOff          = RT_BIT(14),
     349#ifndef Q_WS_MAC
     350        RuntimeMenuMachineActionType_Close             = RT_BIT(15),
     351#endif /* !Q_WS_MAC */
     352        RuntimeMenuMachineActionType_All               = 0xFFFF
     353    };
     354
     355    /** Runtime UI: Menu "View": Action types. */
     356    enum RuntimeMenuViewActionType
     357    {
     358        RuntimeMenuViewActionType_Invalid           = 0,
     359        RuntimeMenuViewActionType_Fullscreen        = RT_BIT(0),
     360        RuntimeMenuViewActionType_Seamless          = RT_BIT(1),
     361        RuntimeMenuViewActionType_Scale             = RT_BIT(2),
     362        RuntimeMenuViewActionType_GuestAutoresize   = RT_BIT(3),
     363        RuntimeMenuViewActionType_AdjustWindow      = RT_BIT(4),
     364        RuntimeMenuViewActionType_StatusBar         = RT_BIT(5),
     365        RuntimeMenuViewActionType_StatusBarSettings = RT_BIT(6),
     366        RuntimeMenuViewActionType_ToggleStatusBar   = RT_BIT(7),
     367        RuntimeMenuViewActionType_Resize            = RT_BIT(8),
     368        RuntimeMenuViewActionType_Multiscreen       = RT_BIT(9),
     369        RuntimeMenuViewActionType_All               = 0xFFFF
     370    };
     371
     372    /** Runtime UI: Menu "Devices": Action types. */
     373    enum RuntimeMenuDevicesActionType
     374    {
     375        RuntimeMenuDevicesActionType_Invalid               = 0,
     376        RuntimeMenuDevicesActionType_HardDrives            = RT_BIT(0),
     377        RuntimeMenuDevicesActionType_HardDrivesSettings    = RT_BIT(1),
     378        RuntimeMenuDevicesActionType_OpticalDevices        = RT_BIT(2),
     379        RuntimeMenuDevicesActionType_FloppyDevices         = RT_BIT(3),
     380        RuntimeMenuDevicesActionType_Network               = RT_BIT(4),
     381        RuntimeMenuDevicesActionType_NetworkSettings       = RT_BIT(5),
     382        RuntimeMenuDevicesActionType_USBDevices            = RT_BIT(6),
     383        RuntimeMenuDevicesActionType_USBDevicesSettings    = RT_BIT(7),
     384        RuntimeMenuDevicesActionType_WebCams               = RT_BIT(8),
     385        RuntimeMenuDevicesActionType_SharedClipboard       = RT_BIT(9),
     386        RuntimeMenuDevicesActionType_DragAndDrop           = RT_BIT(10),
     387        RuntimeMenuDevicesActionType_SharedFolders         = RT_BIT(11),
     388        RuntimeMenuDevicesActionType_SharedFoldersSettings = RT_BIT(12),
     389        RuntimeMenuDevicesActionType_VRDEServer            = RT_BIT(13),
     390        RuntimeMenuDevicesActionType_VideoCapture          = RT_BIT(14),
     391        RuntimeMenuDevicesActionType_VideoCaptureSettings  = RT_BIT(15),
     392        RuntimeMenuDevicesActionType_StartVideoCapture     = RT_BIT(16),
     393        RuntimeMenuDevicesActionType_InstallGuestTools     = RT_BIT(17),
     394        RuntimeMenuDevicesActionType_All                   = 0xFFFF
     395    };
     396
     397#ifdef VBOX_WITH_DEBUGGER_GUI
     398    /** Runtime UI: Menu "Debugger": Action types. */
     399    enum RuntimeMenuDebuggerActionType
     400    {
     401        RuntimeMenuDebuggerActionType_Invalid     = 0,
     402        RuntimeMenuDebuggerActionType_Statistics  = RT_BIT(0),
     403        RuntimeMenuDebuggerActionType_CommandLine = RT_BIT(1),
     404        RuntimeMenuDebuggerActionType_Logging     = RT_BIT(2),
     405        RuntimeMenuDebuggerActionType_LogDialog   = RT_BIT(3),
     406        RuntimeMenuDebuggerActionType_All         = 0xFFFF
     407    };
     408#endif /* VBOX_WITH_DEBUGGER_GUI */
     409};
    266410
    267411/** Common UI: Global settings page types. */
     
    360504
    361505
    362 /** Menu "Help": Action types. */
    363 enum MenuHelpActionType
    364 {
    365     MenuHelpActionType_Invalid              = 0,
    366     MenuHelpActionType_Contents             = RT_BIT(0),
    367     MenuHelpActionType_WebSite              = RT_BIT(1),
    368     MenuHelpActionType_ResetWarnings        = RT_BIT(2),
    369 #ifdef VBOX_GUI_WITH_NETWORK_MANAGER
    370     MenuHelpActionType_NetworkAccessManager = RT_BIT(3),
    371     MenuHelpActionType_CheckForUpdates      = RT_BIT(4),
    372 #endif /* VBOX_GUI_WITH_NETWORK_MANAGER */
    373 #ifndef Q_WS_MAC
    374     MenuHelpActionType_About                = RT_BIT(5),
    375     MenuHelpActionType_Preferences          = RT_BIT(6),
    376 #endif /* !Q_WS_MAC */
    377     MenuHelpActionType_All                  = 0xFFFF
    378 };
    379 
    380 #ifdef Q_WS_MAC
    381 /** Menu "Application": Action types. */
    382 enum MenuApplicationActionType
    383 {
    384     MenuApplicationActionType_Invalid     = 0,
    385     MenuApplicationActionType_About       = RT_BIT(0),
    386     MenuApplicationActionType_Preferences = RT_BIT(1),
    387     MenuApplicationActionType_Close       = RT_BIT(2),
    388     MenuApplicationActionType_All         = 0xFFFF
    389 };
    390 #endif /* Q_WS_MAC */
    391 
    392 /** Runtime UI: Menu types. */
    393 enum RuntimeMenuType
    394 {
    395     RuntimeMenuType_Invalid = 0,
    396     RuntimeMenuType_Machine = RT_BIT(0),
    397     RuntimeMenuType_View    = RT_BIT(1),
    398     RuntimeMenuType_Devices = RT_BIT(2),
    399 #ifdef VBOX_WITH_DEBUGGER_GUI
    400     RuntimeMenuType_Debug   = RT_BIT(3),
    401 #endif /* VBOX_WITH_DEBUGGER_GUI */
    402     RuntimeMenuType_Help    = RT_BIT(4),
    403     RuntimeMenuType_All     = 0xFF
    404 };
    405 
    406 /** Runtime UI: Menu "Machine": Action types. */
    407 enum RuntimeMenuMachineActionType
    408 {
    409     RuntimeMenuMachineActionType_Invalid           = 0,
    410     RuntimeMenuMachineActionType_SettingsDialog    = RT_BIT(0),
    411     RuntimeMenuMachineActionType_TakeSnapshot      = RT_BIT(1),
    412     RuntimeMenuMachineActionType_TakeScreenshot    = RT_BIT(2),
    413     RuntimeMenuMachineActionType_InformationDialog = RT_BIT(3),
    414     RuntimeMenuMachineActionType_Keyboard          = RT_BIT(4),
    415     RuntimeMenuMachineActionType_KeyboardSettings  = RT_BIT(5),
    416     RuntimeMenuMachineActionType_Mouse             = RT_BIT(6),
    417     RuntimeMenuMachineActionType_MouseIntegration  = RT_BIT(7),
    418     RuntimeMenuMachineActionType_TypeCAD           = RT_BIT(8),
    419 #ifdef Q_WS_X11
    420     RuntimeMenuMachineActionType_TypeCABS          = RT_BIT(9),
    421 #endif /* Q_WS_X11 */
    422     RuntimeMenuMachineActionType_Pause             = RT_BIT(10),
    423     RuntimeMenuMachineActionType_Reset             = RT_BIT(11),
    424     RuntimeMenuMachineActionType_SaveState         = RT_BIT(12),
    425     RuntimeMenuMachineActionType_Shutdown          = RT_BIT(13),
    426     RuntimeMenuMachineActionType_PowerOff          = RT_BIT(14),
    427 #ifndef Q_WS_MAC
    428     RuntimeMenuMachineActionType_Close             = RT_BIT(15),
    429 #endif /* !Q_WS_MAC */
    430     RuntimeMenuMachineActionType_All               = 0xFFFF
    431 };
    432 
    433 /** Runtime UI: Menu "View": Action types. */
    434 enum RuntimeMenuViewActionType
    435 {
    436     RuntimeMenuViewActionType_Invalid           = 0,
    437     RuntimeMenuViewActionType_Fullscreen        = RT_BIT(0),
    438     RuntimeMenuViewActionType_Seamless          = RT_BIT(1),
    439     RuntimeMenuViewActionType_Scale             = RT_BIT(2),
    440     RuntimeMenuViewActionType_GuestAutoresize   = RT_BIT(3),
    441     RuntimeMenuViewActionType_AdjustWindow      = RT_BIT(4),
    442     RuntimeMenuViewActionType_StatusBar         = RT_BIT(5),
    443     RuntimeMenuViewActionType_StatusBarSettings = RT_BIT(6),
    444     RuntimeMenuViewActionType_ToggleStatusBar   = RT_BIT(7),
    445     RuntimeMenuViewActionType_Resize            = RT_BIT(8),
    446     RuntimeMenuViewActionType_Multiscreen       = RT_BIT(9),
    447     RuntimeMenuViewActionType_All               = 0xFFFF
    448 };
    449 
    450 /** Runtime UI: Menu "Devices": Action types. */
    451 enum RuntimeMenuDevicesActionType
    452 {
    453     RuntimeMenuDevicesActionType_Invalid               = 0,
    454     RuntimeMenuDevicesActionType_HardDrives            = RT_BIT(0),
    455     RuntimeMenuDevicesActionType_HardDrivesSettings    = RT_BIT(1),
    456     RuntimeMenuDevicesActionType_OpticalDevices        = RT_BIT(2),
    457     RuntimeMenuDevicesActionType_FloppyDevices         = RT_BIT(3),
    458     RuntimeMenuDevicesActionType_Network               = RT_BIT(4),
    459     RuntimeMenuDevicesActionType_NetworkSettings       = RT_BIT(5),
    460     RuntimeMenuDevicesActionType_USBDevices            = RT_BIT(6),
    461     RuntimeMenuDevicesActionType_USBDevicesSettings    = RT_BIT(7),
    462     RuntimeMenuDevicesActionType_WebCams               = RT_BIT(8),
    463     RuntimeMenuDevicesActionType_SharedClipboard       = RT_BIT(9),
    464     RuntimeMenuDevicesActionType_DragAndDrop           = RT_BIT(10),
    465     RuntimeMenuDevicesActionType_SharedFolders         = RT_BIT(11),
    466     RuntimeMenuDevicesActionType_SharedFoldersSettings = RT_BIT(12),
    467     RuntimeMenuDevicesActionType_VRDEServer            = RT_BIT(13),
    468     RuntimeMenuDevicesActionType_VideoCapture          = RT_BIT(14),
    469     RuntimeMenuDevicesActionType_VideoCaptureSettings  = RT_BIT(15),
    470     RuntimeMenuDevicesActionType_StartVideoCapture     = RT_BIT(16),
    471     RuntimeMenuDevicesActionType_InstallGuestTools     = RT_BIT(17),
    472     RuntimeMenuDevicesActionType_All                   = 0xFFFF
    473 };
    474 
    475 #ifdef VBOX_WITH_DEBUGGER_GUI
    476 /** Runtime UI: Menu "Debugger": Action types. */
    477 enum RuntimeMenuDebuggerActionType
    478 {
    479     RuntimeMenuDebuggerActionType_Invalid     = 0,
    480     RuntimeMenuDebuggerActionType_Statistics  = RT_BIT(0),
    481     RuntimeMenuDebuggerActionType_CommandLine = RT_BIT(1),
    482     RuntimeMenuDebuggerActionType_Logging     = RT_BIT(2),
    483     RuntimeMenuDebuggerActionType_LogDialog   = RT_BIT(3),
    484     RuntimeMenuDebuggerActionType_All         = 0xFFFF
    485 };
    486 #endif /* VBOX_WITH_DEBUGGER_GUI */
    487 
    488506/** Runtime UI: Visual-state types. */
    489507enum UIVisualStateType
  • trunk/src/VBox/Frontends/VirtualBox/src/extradata/UIExtraDataManager.cpp

    r52218 r52459  
    24882488}
    24892489
    2490 RuntimeMenuType UIExtraDataManager::restrictedRuntimeMenuTypes(const QString &strID)
     2490UIExtraDataMetaDefs::RuntimeMenuType UIExtraDataManager::restrictedRuntimeMenuTypes(const QString &strID)
    24912491{
    24922492    /* Prepare result: */
    2493     RuntimeMenuType result = RuntimeMenuType_Invalid;
     2493    UIExtraDataMetaDefs::RuntimeMenuType result = UIExtraDataMetaDefs::RuntimeMenuType_Invalid;
    24942494    /* Get restricted runtime-menu-types: */
    24952495    foreach (const QString &strValue, extraDataStringList(GUI_RestrictedRuntimeMenus, strID))
    24962496    {
    2497         RuntimeMenuType value = gpConverter->fromInternalString<RuntimeMenuType>(strValue);
    2498         if (value != RuntimeMenuType_Invalid)
    2499             result = static_cast<RuntimeMenuType>(result | value);
     2497        UIExtraDataMetaDefs::RuntimeMenuType value = gpConverter->fromInternalString<UIExtraDataMetaDefs::RuntimeMenuType>(strValue);
     2498        if (value != UIExtraDataMetaDefs::RuntimeMenuType_Invalid)
     2499            result = static_cast<UIExtraDataMetaDefs::RuntimeMenuType>(result | value);
    25002500    }
    25012501    /* Return result: */
     
    25042504
    25052505#ifdef Q_WS_MAC
    2506 MenuApplicationActionType UIExtraDataManager::restrictedRuntimeMenuApplicationActionTypes(const QString &strID)
     2506UIExtraDataMetaDefs::MenuApplicationActionType UIExtraDataManager::restrictedRuntimeMenuApplicationActionTypes(const QString &strID)
    25072507{
    25082508    /* Prepare result: */
    2509     MenuApplicationActionType result = MenuApplicationActionType_Invalid;
     2509    UIExtraDataMetaDefs::MenuApplicationActionType result = UIExtraDataMetaDefs::MenuApplicationActionType_Invalid;
    25102510    /* Get restricted runtime-application-menu action-types: */
    25112511    foreach (const QString &strValue, extraDataStringList(GUI_RestrictedRuntimeApplicationMenuActions, strID))
    25122512    {
    2513         MenuApplicationActionType value = gpConverter->fromInternalString<MenuApplicationActionType>(strValue);
    2514         if (value != MenuApplicationActionType_Invalid)
    2515             result = static_cast<MenuApplicationActionType>(result | value);
     2513        UIExtraDataMetaDefs::MenuApplicationActionType value = gpConverter->fromInternalString<UIExtraDataMetaDefs::MenuApplicationActionType>(strValue);
     2514        if (value != UIExtraDataMetaDefs::MenuApplicationActionType_Invalid)
     2515            result = static_cast<UIExtraDataMetaDefs::MenuApplicationActionType>(result | value);
    25162516    }
    25172517    /* Return result: */
     
    25202520#endif /* Q_WS_MAC */
    25212521
    2522 RuntimeMenuMachineActionType UIExtraDataManager::restrictedRuntimeMenuMachineActionTypes(const QString &strID)
     2522UIExtraDataMetaDefs::RuntimeMenuMachineActionType UIExtraDataManager::restrictedRuntimeMenuMachineActionTypes(const QString &strID)
    25232523{
    25242524    /* Prepare result: */
    2525     RuntimeMenuMachineActionType result = RuntimeMenuMachineActionType_Invalid;
     2525    UIExtraDataMetaDefs::RuntimeMenuMachineActionType result = UIExtraDataMetaDefs::RuntimeMenuMachineActionType_Invalid;
    25262526    /* Get restricted runtime-machine-menu action-types: */
    25272527    foreach (const QString &strValue, extraDataStringList(GUI_RestrictedRuntimeMachineMenuActions, strID))
    25282528    {
    2529         RuntimeMenuMachineActionType value = gpConverter->fromInternalString<RuntimeMenuMachineActionType>(strValue);
    2530         if (value != RuntimeMenuMachineActionType_Invalid)
    2531             result = static_cast<RuntimeMenuMachineActionType>(result | value);
     2529        UIExtraDataMetaDefs::RuntimeMenuMachineActionType value = gpConverter->fromInternalString<UIExtraDataMetaDefs::RuntimeMenuMachineActionType>(strValue);
     2530        if (value != UIExtraDataMetaDefs::RuntimeMenuMachineActionType_Invalid)
     2531            result = static_cast<UIExtraDataMetaDefs::RuntimeMenuMachineActionType>(result | value);
    25322532    }
    25332533    /* Return result: */
     
    25352535}
    25362536
    2537 RuntimeMenuViewActionType UIExtraDataManager::restrictedRuntimeMenuViewActionTypes(const QString &strID)
     2537UIExtraDataMetaDefs::RuntimeMenuViewActionType UIExtraDataManager::restrictedRuntimeMenuViewActionTypes(const QString &strID)
    25382538{
    25392539    /* Prepare result: */
    2540     RuntimeMenuViewActionType result = RuntimeMenuViewActionType_Invalid;
     2540    UIExtraDataMetaDefs::RuntimeMenuViewActionType result = UIExtraDataMetaDefs::RuntimeMenuViewActionType_Invalid;
    25412541    /* Get restricted runtime-view-menu action-types: */
    25422542    foreach (const QString &strValue, extraDataStringList(GUI_RestrictedRuntimeViewMenuActions, strID))
    25432543    {
    2544         RuntimeMenuViewActionType value = gpConverter->fromInternalString<RuntimeMenuViewActionType>(strValue);
    2545         if (value != RuntimeMenuViewActionType_Invalid)
    2546             result = static_cast<RuntimeMenuViewActionType>(result | value);
     2544        UIExtraDataMetaDefs::RuntimeMenuViewActionType value = gpConverter->fromInternalString<UIExtraDataMetaDefs::RuntimeMenuViewActionType>(strValue);
     2545        if (value != UIExtraDataMetaDefs::RuntimeMenuViewActionType_Invalid)
     2546            result = static_cast<UIExtraDataMetaDefs::RuntimeMenuViewActionType>(result | value);
    25472547    }
    25482548    /* Return result: */
     
    25502550}
    25512551
    2552 RuntimeMenuDevicesActionType UIExtraDataManager::restrictedRuntimeMenuDevicesActionTypes(const QString &strID)
     2552UIExtraDataMetaDefs::RuntimeMenuDevicesActionType UIExtraDataManager::restrictedRuntimeMenuDevicesActionTypes(const QString &strID)
    25532553{
    25542554    /* Prepare result: */
    2555     RuntimeMenuDevicesActionType result = RuntimeMenuDevicesActionType_Invalid;
     2555    UIExtraDataMetaDefs::RuntimeMenuDevicesActionType result = UIExtraDataMetaDefs::RuntimeMenuDevicesActionType_Invalid;
    25562556    /* Get restricted runtime-devices-menu action-types: */
    25572557    foreach (const QString &strValue, extraDataStringList(GUI_RestrictedRuntimeDevicesMenuActions, strID))
    25582558    {
    2559         RuntimeMenuDevicesActionType value = gpConverter->fromInternalString<RuntimeMenuDevicesActionType>(strValue);
    2560         if (value != RuntimeMenuDevicesActionType_Invalid)
    2561             result = static_cast<RuntimeMenuDevicesActionType>(result | value);
     2559        UIExtraDataMetaDefs::RuntimeMenuDevicesActionType value = gpConverter->fromInternalString<UIExtraDataMetaDefs::RuntimeMenuDevicesActionType>(strValue);
     2560        if (value != UIExtraDataMetaDefs::RuntimeMenuDevicesActionType_Invalid)
     2561            result = static_cast<UIExtraDataMetaDefs::RuntimeMenuDevicesActionType>(result | value);
    25622562    }
    25632563    /* Return result: */
     
    25662566
    25672567#ifdef VBOX_WITH_DEBUGGER_GUI
    2568 RuntimeMenuDebuggerActionType UIExtraDataManager::restrictedRuntimeMenuDebuggerActionTypes(const QString &strID)
     2568UIExtraDataMetaDefs::RuntimeMenuDebuggerActionType UIExtraDataManager::restrictedRuntimeMenuDebuggerActionTypes(const QString &strID)
    25692569{
    25702570    /* Prepare result: */
    2571     RuntimeMenuDebuggerActionType result = RuntimeMenuDebuggerActionType_Invalid;
     2571    UIExtraDataMetaDefs::RuntimeMenuDebuggerActionType result = UIExtraDataMetaDefs::RuntimeMenuDebuggerActionType_Invalid;
    25722572    /* Get restricted runtime-debugger-menu action-types: */
    25732573    foreach (const QString &strValue, extraDataStringList(GUI_RestrictedRuntimeDebuggerMenuActions, strID))
    25742574    {
    2575         RuntimeMenuDebuggerActionType value = gpConverter->fromInternalString<RuntimeMenuDebuggerActionType>(strValue);
    2576         if (value != RuntimeMenuDebuggerActionType_Invalid)
    2577             result = static_cast<RuntimeMenuDebuggerActionType>(result | value);
     2575        UIExtraDataMetaDefs::RuntimeMenuDebuggerActionType value = gpConverter->fromInternalString<UIExtraDataMetaDefs::RuntimeMenuDebuggerActionType>(strValue);
     2576        if (value != UIExtraDataMetaDefs::RuntimeMenuDebuggerActionType_Invalid)
     2577            result = static_cast<UIExtraDataMetaDefs::RuntimeMenuDebuggerActionType>(result | value);
    25782578    }
    25792579    /* Return result: */
     
    25822582#endif /* VBOX_WITH_DEBUGGER_GUI */
    25832583
    2584 MenuHelpActionType UIExtraDataManager::restrictedRuntimeMenuHelpActionTypes(const QString &strID)
     2584UIExtraDataMetaDefs::MenuHelpActionType UIExtraDataManager::restrictedRuntimeMenuHelpActionTypes(const QString &strID)
    25852585{
    25862586    /* Prepare result: */
    2587     MenuHelpActionType result = MenuHelpActionType_Invalid;
     2587    UIExtraDataMetaDefs::MenuHelpActionType result = UIExtraDataMetaDefs::MenuHelpActionType_Invalid;
    25882588    /* Get restricted runtime-help-menu action-types: */
    25892589    foreach (const QString &strValue, extraDataStringList(GUI_RestrictedRuntimeHelpMenuActions, strID))
    25902590    {
    2591         MenuHelpActionType value = gpConverter->fromInternalString<MenuHelpActionType>(strValue);
    2592         if (value != MenuHelpActionType_Invalid)
    2593             result = static_cast<MenuHelpActionType>(result | value);
     2591        UIExtraDataMetaDefs::MenuHelpActionType value = gpConverter->fromInternalString<UIExtraDataMetaDefs::MenuHelpActionType>(strValue);
     2592        if (value != UIExtraDataMetaDefs::MenuHelpActionType_Invalid)
     2593            result = static_cast<UIExtraDataMetaDefs::MenuHelpActionType>(result | value);
    25942594    }
    25952595    /* Return result: */
  • trunk/src/VBox/Frontends/VirtualBox/src/extradata/UIExtraDataManager.h

    r52218 r52459  
    285285
    286286        /** Returns restricted Runtime UI menu types. */
    287         RuntimeMenuType restrictedRuntimeMenuTypes(const QString &strID);
    288     #ifdef Q_WS_MAC
     287        UIExtraDataMetaDefs::RuntimeMenuType restrictedRuntimeMenuTypes(const QString &strID);
     288#ifdef Q_WS_MAC
    289289        /** Mac OS X: Returns restricted Runtime UI action types for Application menu. */
    290         MenuApplicationActionType restrictedRuntimeMenuApplicationActionTypes(const QString &strID);
    291     #endif /* Q_WS_MAC */
     290        UIExtraDataMetaDefs::MenuApplicationActionType restrictedRuntimeMenuApplicationActionTypes(const QString &strID);
     291#endif /* Q_WS_MAC */
    292292        /** Returns restricted Runtime UI action types for Machine menu. */
    293         RuntimeMenuMachineActionType restrictedRuntimeMenuMachineActionTypes(const QString &strID);
     293        UIExtraDataMetaDefs::RuntimeMenuMachineActionType restrictedRuntimeMenuMachineActionTypes(const QString &strID);
    294294        /** Returns restricted Runtime UI action types for View menu. */
    295         RuntimeMenuViewActionType restrictedRuntimeMenuViewActionTypes(const QString &strID);
     295        UIExtraDataMetaDefs::RuntimeMenuViewActionType restrictedRuntimeMenuViewActionTypes(const QString &strID);
    296296        /** Returns restricted Runtime UI action types for Devices menu. */
    297         RuntimeMenuDevicesActionType restrictedRuntimeMenuDevicesActionTypes(const QString &strID);
    298     #ifdef VBOX_WITH_DEBUGGER_GUI
     297        UIExtraDataMetaDefs::RuntimeMenuDevicesActionType restrictedRuntimeMenuDevicesActionTypes(const QString &strID);
     298#ifdef VBOX_WITH_DEBUGGER_GUI
    299299        /** Returns restricted Runtime UI action types for Debugger menu. */
    300         RuntimeMenuDebuggerActionType restrictedRuntimeMenuDebuggerActionTypes(const QString &strID);
    301     #endif /* VBOX_WITH_DEBUGGER_GUI */
     300        UIExtraDataMetaDefs::RuntimeMenuDebuggerActionType restrictedRuntimeMenuDebuggerActionTypes(const QString &strID);
     301#endif /* VBOX_WITH_DEBUGGER_GUI */
    302302        /** Returns restricted Runtime UI action types for Help menu. */
    303         MenuHelpActionType restrictedRuntimeMenuHelpActionTypes(const QString &strID);
     303        UIExtraDataMetaDefs::MenuHelpActionType restrictedRuntimeMenuHelpActionTypes(const QString &strID);
    304304
    305305        /** Returns restricted Runtime UI visual-states. */
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UIActionPool.cpp

    r52220 r52459  
    620620}
    621621
    622 bool UIActionPool::isAllowedInMenuHelp(MenuHelpActionType type) const
    623 {
    624     foreach (const MenuHelpActionType &restriction, m_restrictedActionsMenuHelp.values())
     622bool UIActionPool::isAllowedInMenuHelp(UIExtraDataMetaDefs::MenuHelpActionType type) const
     623{
     624    foreach (const UIExtraDataMetaDefs::MenuHelpActionType &restriction, m_restrictedActionsMenuHelp.values())
    625625        if (restriction & type)
    626626            return false;
     
    628628}
    629629
    630 void UIActionPool::setRestrictionForMenuHelp(UIActionRestrictionLevel level, MenuHelpActionType restriction)
     630void UIActionPool::setRestrictionForMenuHelp(UIActionRestrictionLevel level, UIExtraDataMetaDefs::MenuHelpActionType restriction)
    631631{
    632632    m_restrictedActionsMenuHelp[level] = restriction;
     
    635635
    636636#ifdef Q_WS_MAC
    637 bool UIActionPool::isAllowedInMenuApplication(MenuApplicationActionType type) const
    638 {
    639     foreach (const MenuApplicationActionType &restriction, m_restrictedActionsMenuApplication.values())
     637bool UIActionPool::isAllowedInMenuApplication(UIExtraDataMetaDefs::MenuApplicationActionType type) const
     638{
     639    foreach (const UIExtraDataMetaDefs::MenuApplicationActionType &restriction, m_restrictedActionsMenuApplication.values())
    640640        if (restriction & type)
    641641            return false;
     
    643643}
    644644
    645 void UIActionPool::setRestrictionForMenuApplication(UIActionRestrictionLevel level, MenuApplicationActionType restriction)
     645void UIActionPool::setRestrictionForMenuApplication(UIActionRestrictionLevel level, UIExtraDataMetaDefs::MenuApplicationActionType restriction)
    646646{
    647647    m_restrictedActionsMenuApplication[level] = restriction;
     
    766766    if (!fUpdateAllowed)
    767767    {
    768         m_restrictedActionsMenuHelp[UIActionRestrictionLevel_Base] = (MenuHelpActionType)
    769             (m_restrictedActionsMenuHelp[UIActionRestrictionLevel_Base] | MenuHelpActionType_CheckForUpdates);
     768        m_restrictedActionsMenuHelp[UIActionRestrictionLevel_Base] = (UIExtraDataMetaDefs::MenuHelpActionType)
     769            (m_restrictedActionsMenuHelp[UIActionRestrictionLevel_Base] | UIExtraDataMetaDefs::MenuHelpActionType_CheckForUpdates);
    770770    }
    771771#endif /* VBOX_GUI_WITH_NETWORK_MANAGER */
     
    795795
    796796    /* 'Contents' action: */
    797     const bool fAllowToShowActionContents = isAllowedInMenuHelp(MenuHelpActionType_Contents);
     797    const bool fAllowToShowActionContents = isAllowedInMenuHelp(UIExtraDataMetaDefs::MenuHelpActionType_Contents);
    798798    action(UIActionIndex_Simple_Contents)->setEnabled(fAllowToShowActionContents);
    799799    if (fAllowToShowActionContents)
     
    806806
    807807    /* 'Web Site' action: */
    808     const bool fAllowToShowActionWebSite = isAllowedInMenuHelp(MenuHelpActionType_WebSite);
    809     action(MenuHelpActionType_WebSite)->setEnabled(fAllowToShowActionWebSite);
     808    const bool fAllowToShowActionWebSite = isAllowedInMenuHelp(UIExtraDataMetaDefs::MenuHelpActionType_WebSite);
     809    action(UIActionIndex_Simple_WebSite)->setEnabled(fAllowToShowActionWebSite);
    810810    if (fAllowToShowActionWebSite)
    811811    {
     
    825825
    826826    /* 'Reset Warnings' action: */
    827     const bool fAllowToShowActionResetWarnings = isAllowedInMenuHelp(MenuHelpActionType_ResetWarnings);
     827    const bool fAllowToShowActionResetWarnings = isAllowedInMenuHelp(UIExtraDataMetaDefs::MenuHelpActionType_ResetWarnings);
    828828    action(UIActionIndex_Simple_ResetWarnings)->setEnabled(fAllowToShowActionResetWarnings);
    829829    if (fAllowToShowActionResetWarnings)
     
    847847
    848848    /* 'Network Manager' action: */
    849     const bool fAllowToShowActionNetworkManager = isAllowedInMenuHelp(MenuHelpActionType_NetworkAccessManager);
     849    const bool fAllowToShowActionNetworkManager = isAllowedInMenuHelp(UIExtraDataMetaDefs::MenuHelpActionType_NetworkAccessManager);
    850850    action(UIActionIndex_Simple_NetworkAccessManager)->setEnabled(fAllowToShowActionNetworkManager);
    851851    if (fAllowToShowActionNetworkManager)
     
    863863    {
    864864        /* 'Check for Updates' action: */
    865         const bool fAllowToShowActionCheckForUpdates = isAllowedInMenuHelp(MenuHelpActionType_CheckForUpdates);
     865        const bool fAllowToShowActionCheckForUpdates = isAllowedInMenuHelp(UIExtraDataMetaDefs::MenuHelpActionType_CheckForUpdates);
    866866        action(UIActionIndex_Simple_NetworkAccessManager)->setEnabled(fAllowToShowActionCheckForUpdates);
    867867        if (fAllowToShowActionCheckForUpdates)
     
    887887    const bool fAllowToShowActionAbout =
    888888#ifdef Q_WS_MAC
    889         isAllowedInMenuApplication(MenuApplicationActionType_About);
     889        isAllowedInMenuApplication(UIExtraDataMetaDefs::MenuApplicationActionType_About);
    890890#else /* !Q_WS_MAC */
    891         isAllowedInMenuHelp(MenuHelpActionType_About);
     891        isAllowedInMenuHelp(UIExtraDataMetaDefs::MenuHelpActionType_About);
    892892#endif /* Q_WS_MAC */
    893893    action(UIActionIndex_Simple_About)->setEnabled(fAllowToShowActionAbout);
     
    905905        const bool fAllowToShowActionPreferences =
    906906#ifdef Q_WS_MAC
    907             isAllowedInMenuApplication(MenuApplicationActionType_Preferences);
     907            isAllowedInMenuApplication(UIExtraDataMetaDefs::MenuApplicationActionType_Preferences);
    908908#else /* !Q_WS_MAC */
    909             isAllowedInMenuHelp(MenuHelpActionType_Preferences);
     909            isAllowedInMenuHelp(UIExtraDataMetaDefs::MenuHelpActionType_Preferences);
    910910#endif /* Q_WS_MAC */
    911911        action(UIActionIndex_Simple_Preferences)->setEnabled(fAllowToShowActionPreferences);
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UIActionPool.h

    r52218 r52459  
    323323
    324324    /** Returns whether the action with passed @a type is allowed in the 'Help' menu. */
    325     bool isAllowedInMenuHelp(MenuHelpActionType type) const;
     325    bool isAllowedInMenuHelp(UIExtraDataMetaDefs::MenuHelpActionType type) const;
    326326    /** Defines 'Help' menu @a restriction for passed @a level. */
    327     void setRestrictionForMenuHelp(UIActionRestrictionLevel level, MenuHelpActionType restriction);
     327    void setRestrictionForMenuHelp(UIActionRestrictionLevel level, UIExtraDataMetaDefs::MenuHelpActionType restriction);
    328328
    329329#ifdef Q_WS_MAC
    330330    /** Returns whether the action with passed @a type is allowed in the 'Application' menu. */
    331     bool isAllowedInMenuApplication(MenuApplicationActionType type) const;
     331    bool isAllowedInMenuApplication(UIExtraDataMetaDefs::MenuApplicationActionType type) const;
    332332    /** Defines 'Application' menu @a restriction for passed @a level. */
    333     void setRestrictionForMenuApplication(UIActionRestrictionLevel level, MenuApplicationActionType restriction);
     333    void setRestrictionForMenuApplication(UIActionRestrictionLevel level, UIExtraDataMetaDefs::MenuApplicationActionType restriction);
    334334#endif /* Q_WS_MAC */
    335335
     
    401401
    402402    /** Holds restricted action types of the Help menu. */
    403     QMap<UIActionRestrictionLevel, MenuHelpActionType> m_restrictedActionsMenuHelp;
     403    QMap<UIActionRestrictionLevel, UIExtraDataMetaDefs::MenuHelpActionType> m_restrictedActionsMenuHelp;
    404404#ifdef Q_WS_MAC
    405405    /** Holds restricted action types of the Application menu. */
    406     QMap<UIActionRestrictionLevel, MenuApplicationActionType> m_restrictedActionsMenuApplication;
     406    QMap<UIActionRestrictionLevel, UIExtraDataMetaDefs::MenuApplicationActionType> m_restrictedActionsMenuApplication;
    407407#endif /* Q_WS_MAC */
    408408};
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIActionPoolRuntime.cpp

    r52347 r52459  
    13001300}
    13011301
    1302 bool UIActionPoolRuntime::isAllowedInMenuBar(RuntimeMenuType type) const
    1303 {
    1304     foreach (const RuntimeMenuType &restriction, m_restrictedMenus.values())
     1302bool UIActionPoolRuntime::isAllowedInMenuBar(UIExtraDataMetaDefs::RuntimeMenuType type) const
     1303{
     1304    foreach (const UIExtraDataMetaDefs::RuntimeMenuType &restriction, m_restrictedMenus.values())
    13051305        if (restriction & type)
    13061306            return false;
     
    13081308}
    13091309
    1310 void UIActionPoolRuntime::setRestrictionForMenuBar(UIActionRestrictionLevel level, RuntimeMenuType restriction)
     1310void UIActionPoolRuntime::setRestrictionForMenuBar(UIActionRestrictionLevel level, UIExtraDataMetaDefs::RuntimeMenuType restriction)
    13111311{
    13121312    m_restrictedMenus[level] = restriction;
     
    13141314}
    13151315
    1316 bool UIActionPoolRuntime::isAllowedInMenuMachine(RuntimeMenuMachineActionType type) const
    1317 {
    1318     foreach (const RuntimeMenuMachineActionType &restriction, m_restrictedActionsMenuMachine.values())
     1316bool UIActionPoolRuntime::isAllowedInMenuMachine(UIExtraDataMetaDefs::RuntimeMenuMachineActionType type) const
     1317{
     1318    foreach (const UIExtraDataMetaDefs::RuntimeMenuMachineActionType &restriction, m_restrictedActionsMenuMachine.values())
    13191319        if (restriction & type)
    13201320            return false;
     
    13221322}
    13231323
    1324 void UIActionPoolRuntime::setRestrictionForMenuMachine(UIActionRestrictionLevel level, RuntimeMenuMachineActionType restriction)
     1324void UIActionPoolRuntime::setRestrictionForMenuMachine(UIActionRestrictionLevel level, UIExtraDataMetaDefs::RuntimeMenuMachineActionType restriction)
    13251325{
    13261326    m_restrictedActionsMenuMachine[level] = restriction;
     
    13281328}
    13291329
    1330 bool UIActionPoolRuntime::isAllowedInMenuView(RuntimeMenuViewActionType type) const
    1331 {
    1332     foreach (const RuntimeMenuViewActionType &restriction, m_restrictedActionsMenuView.values())
     1330bool UIActionPoolRuntime::isAllowedInMenuView(UIExtraDataMetaDefs::RuntimeMenuViewActionType type) const
     1331{
     1332    foreach (const UIExtraDataMetaDefs::RuntimeMenuViewActionType &restriction, m_restrictedActionsMenuView.values())
    13331333        if (restriction & type)
    13341334            return false;
     
    13361336}
    13371337
    1338 void UIActionPoolRuntime::setRestrictionForMenuView(UIActionRestrictionLevel level, RuntimeMenuViewActionType restriction)
     1338void UIActionPoolRuntime::setRestrictionForMenuView(UIActionRestrictionLevel level, UIExtraDataMetaDefs::RuntimeMenuViewActionType restriction)
    13391339{
    13401340    m_restrictedActionsMenuView[level] = restriction;
     
    13421342}
    13431343
    1344 bool UIActionPoolRuntime::isAllowedInMenuDevices(RuntimeMenuDevicesActionType type) const
    1345 {
    1346     foreach (const RuntimeMenuDevicesActionType &restriction, m_restrictedActionsMenuDevices.values())
     1344bool UIActionPoolRuntime::isAllowedInMenuDevices(UIExtraDataMetaDefs::RuntimeMenuDevicesActionType type) const
     1345{
     1346    foreach (const UIExtraDataMetaDefs::RuntimeMenuDevicesActionType &restriction, m_restrictedActionsMenuDevices.values())
    13471347        if (restriction & type)
    13481348            return false;
     
    13501350}
    13511351
    1352 void UIActionPoolRuntime::setRestrictionForMenuDevices(UIActionRestrictionLevel level, RuntimeMenuDevicesActionType restriction)
     1352void UIActionPoolRuntime::setRestrictionForMenuDevices(UIActionRestrictionLevel level, UIExtraDataMetaDefs::RuntimeMenuDevicesActionType restriction)
    13531353{
    13541354    m_restrictedActionsMenuDevices[level] = restriction;
     
    13571357
    13581358#ifdef VBOX_WITH_DEBUGGER_GUI
    1359 bool UIActionPoolRuntime::isAllowedInMenuDebug(RuntimeMenuDebuggerActionType type) const
    1360 {
    1361     foreach (const RuntimeMenuDebuggerActionType &restriction, m_restrictedActionsMenuDebug.values())
     1359bool UIActionPoolRuntime::isAllowedInMenuDebug(UIExtraDataMetaDefs::RuntimeMenuDebuggerActionType type) const
     1360{
     1361    foreach (const UIExtraDataMetaDefs::RuntimeMenuDebuggerActionType &restriction, m_restrictedActionsMenuDebug.values())
    13621362        if (restriction & type)
    13631363            return false;
     
    13651365}
    13661366
    1367 void UIActionPoolRuntime::setRestrictionForMenuDebugger(UIActionRestrictionLevel level, RuntimeMenuDebuggerActionType restriction)
     1367void UIActionPoolRuntime::setRestrictionForMenuDebugger(UIActionRestrictionLevel level, UIExtraDataMetaDefs::RuntimeMenuDebuggerActionType restriction)
    13681368{
    13691369    m_restrictedActionsMenuDebug[level] = restriction;
     
    15551555    {
    15561556        if (restrictedVisualStates & UIVisualStateType_Fullscreen)
    1557             m_restrictedActionsMenuView[UIActionRestrictionLevel_Base] = (RuntimeMenuViewActionType)
    1558                 (m_restrictedActionsMenuView[UIActionRestrictionLevel_Base] | RuntimeMenuViewActionType_Fullscreen);
     1557            m_restrictedActionsMenuView[UIActionRestrictionLevel_Base] = (UIExtraDataMetaDefs::RuntimeMenuViewActionType)
     1558                (m_restrictedActionsMenuView[UIActionRestrictionLevel_Base] | UIExtraDataMetaDefs::RuntimeMenuViewActionType_Fullscreen);
    15591559        if (restrictedVisualStates & UIVisualStateType_Seamless)
    1560             m_restrictedActionsMenuView[UIActionRestrictionLevel_Base] = (RuntimeMenuViewActionType)
    1561                 (m_restrictedActionsMenuView[UIActionRestrictionLevel_Base] | RuntimeMenuViewActionType_Seamless);
     1560            m_restrictedActionsMenuView[UIActionRestrictionLevel_Base] = (UIExtraDataMetaDefs::RuntimeMenuViewActionType)
     1561                (m_restrictedActionsMenuView[UIActionRestrictionLevel_Base] | UIExtraDataMetaDefs::RuntimeMenuViewActionType_Seamless);
    15621562        if (restrictedVisualStates & UIVisualStateType_Scale)
    1563             m_restrictedActionsMenuView[UIActionRestrictionLevel_Base] = (RuntimeMenuViewActionType)
    1564                 (m_restrictedActionsMenuView[UIActionRestrictionLevel_Base] | RuntimeMenuViewActionType_Scale);
     1563            m_restrictedActionsMenuView[UIActionRestrictionLevel_Base] = (UIExtraDataMetaDefs::RuntimeMenuViewActionType)
     1564                (m_restrictedActionsMenuView[UIActionRestrictionLevel_Base] | UIExtraDataMetaDefs::RuntimeMenuViewActionType_Scale);
    15651565    }
    15661566
     
    15691569    if (!fReconfigurationAllowed)
    15701570    {
    1571         m_restrictedActionsMenuMachine[UIActionRestrictionLevel_Base] = (RuntimeMenuMachineActionType)
    1572             (m_restrictedActionsMenuMachine[UIActionRestrictionLevel_Base] | RuntimeMenuMachineActionType_SettingsDialog);
    1573         m_restrictedActionsMenuMachine[UIActionRestrictionLevel_Base] = (RuntimeMenuMachineActionType)
    1574             (m_restrictedActionsMenuMachine[UIActionRestrictionLevel_Base] | RuntimeMenuMachineActionType_KeyboardSettings);
    1575         m_restrictedActionsMenuDevices[UIActionRestrictionLevel_Base] = (RuntimeMenuDevicesActionType)
    1576             (m_restrictedActionsMenuDevices[UIActionRestrictionLevel_Base] | RuntimeMenuDevicesActionType_HardDrivesSettings);
    1577         m_restrictedActionsMenuDevices[UIActionRestrictionLevel_Base] = (RuntimeMenuDevicesActionType)
    1578             (m_restrictedActionsMenuDevices[UIActionRestrictionLevel_Base] | RuntimeMenuDevicesActionType_NetworkSettings);
    1579         m_restrictedActionsMenuDevices[UIActionRestrictionLevel_Base] = (RuntimeMenuDevicesActionType)
    1580             (m_restrictedActionsMenuDevices[UIActionRestrictionLevel_Base] | RuntimeMenuDevicesActionType_USBDevicesSettings);
    1581         m_restrictedActionsMenuDevices[UIActionRestrictionLevel_Base] = (RuntimeMenuDevicesActionType)
    1582             (m_restrictedActionsMenuDevices[UIActionRestrictionLevel_Base] | RuntimeMenuDevicesActionType_SharedFoldersSettings);
    1583         m_restrictedActionsMenuDevices[UIActionRestrictionLevel_Base] = (RuntimeMenuDevicesActionType)
    1584             (m_restrictedActionsMenuDevices[UIActionRestrictionLevel_Base] | RuntimeMenuDevicesActionType_VideoCaptureSettings);
     1571        m_restrictedActionsMenuMachine[UIActionRestrictionLevel_Base] = (UIExtraDataMetaDefs::RuntimeMenuMachineActionType)
     1572            (m_restrictedActionsMenuMachine[UIActionRestrictionLevel_Base] | UIExtraDataMetaDefs::RuntimeMenuMachineActionType_SettingsDialog);
     1573        m_restrictedActionsMenuMachine[UIActionRestrictionLevel_Base] = (UIExtraDataMetaDefs::RuntimeMenuMachineActionType)
     1574            (m_restrictedActionsMenuMachine[UIActionRestrictionLevel_Base] | UIExtraDataMetaDefs::RuntimeMenuMachineActionType_KeyboardSettings);
     1575        m_restrictedActionsMenuDevices[UIActionRestrictionLevel_Base] = (UIExtraDataMetaDefs::RuntimeMenuDevicesActionType)
     1576            (m_restrictedActionsMenuDevices[UIActionRestrictionLevel_Base] | UIExtraDataMetaDefs::RuntimeMenuDevicesActionType_HardDrivesSettings);
     1577        m_restrictedActionsMenuDevices[UIActionRestrictionLevel_Base] = (UIExtraDataMetaDefs::RuntimeMenuDevicesActionType)
     1578            (m_restrictedActionsMenuDevices[UIActionRestrictionLevel_Base] | UIExtraDataMetaDefs::RuntimeMenuDevicesActionType_NetworkSettings);
     1579        m_restrictedActionsMenuDevices[UIActionRestrictionLevel_Base] = (UIExtraDataMetaDefs::RuntimeMenuDevicesActionType)
     1580            (m_restrictedActionsMenuDevices[UIActionRestrictionLevel_Base] | UIExtraDataMetaDefs::RuntimeMenuDevicesActionType_USBDevicesSettings);
     1581        m_restrictedActionsMenuDevices[UIActionRestrictionLevel_Base] = (UIExtraDataMetaDefs::RuntimeMenuDevicesActionType)
     1582            (m_restrictedActionsMenuDevices[UIActionRestrictionLevel_Base] | UIExtraDataMetaDefs::RuntimeMenuDevicesActionType_SharedFoldersSettings);
     1583        m_restrictedActionsMenuDevices[UIActionRestrictionLevel_Base] = (UIExtraDataMetaDefs::RuntimeMenuDevicesActionType)
     1584            (m_restrictedActionsMenuDevices[UIActionRestrictionLevel_Base] | UIExtraDataMetaDefs::RuntimeMenuDevicesActionType_VideoCaptureSettings);
    15851585    }
    15861586
     
    15891589    if (!fSnapshotOperationsAllowed)
    15901590    {
    1591         m_restrictedActionsMenuMachine[UIActionRestrictionLevel_Base] = (RuntimeMenuMachineActionType)
    1592             (m_restrictedActionsMenuMachine[UIActionRestrictionLevel_Base] | RuntimeMenuMachineActionType_TakeSnapshot);
     1591        m_restrictedActionsMenuMachine[UIActionRestrictionLevel_Base] = (UIExtraDataMetaDefs::RuntimeMenuMachineActionType)
     1592            (m_restrictedActionsMenuMachine[UIActionRestrictionLevel_Base] | UIExtraDataMetaDefs::RuntimeMenuMachineActionType_TakeSnapshot);
    15931593    }
    15941594
     
    15981598    if (!fExtensionPackOperationsAllowed)
    15991599    {
    1600         m_restrictedActionsMenuDevices[UIActionRestrictionLevel_Base] = (RuntimeMenuDevicesActionType)
    1601             (m_restrictedActionsMenuDevices[UIActionRestrictionLevel_Base] | RuntimeMenuDevicesActionType_VRDEServer);
     1600        m_restrictedActionsMenuDevices[UIActionRestrictionLevel_Base] = (UIExtraDataMetaDefs::RuntimeMenuDevicesActionType)
     1601            (m_restrictedActionsMenuDevices[UIActionRestrictionLevel_Base] | UIExtraDataMetaDefs::RuntimeMenuDevicesActionType_VRDEServer);
    16021602    }
    16031603
     
    16121612    {
    16131613#ifdef Q_WS_MAC
    1614         m_restrictedActionsMenuApplication[UIActionRestrictionLevel_Base] = (MenuApplicationActionType)
    1615             (m_restrictedActionsMenuApplication[UIActionRestrictionLevel_Base] | MenuApplicationActionType_Close);
     1614        m_restrictedActionsMenuApplication[UIActionRestrictionLevel_Base] = (UIExtraDataMetaDefs::MenuApplicationActionType)
     1615            (m_restrictedActionsMenuApplication[UIActionRestrictionLevel_Base] | UIExtraDataMetaDefs::MenuApplicationActionType_Close);
    16161616#else /* !Q_WS_MAC */
    1617         m_restrictedActionsMenuMachine[UIActionRestrictionLevel_Base] = (RuntimeMenuMachineActionType)
    1618             (m_restrictedActionsMenuMachine[UIActionRestrictionLevel_Base] | RuntimeMenuMachineActionType_Close);
     1617        m_restrictedActionsMenuMachine[UIActionRestrictionLevel_Base] = (UIExtraDataMetaDefs::RuntimeMenuMachineActionType)
     1618            (m_restrictedActionsMenuMachine[UIActionRestrictionLevel_Base] | UIExtraDataMetaDefs::RuntimeMenuMachineActionType_Close);
    16191619#endif /* !Q_WS_MAC */
    16201620    }
     
    16411641
    16421642    /* 'Machine' menu: */
    1643     const bool fAllowToShowMenuMachine = isAllowedInMenuBar(RuntimeMenuType_Machine);
     1643    const bool fAllowToShowMenuMachine = isAllowedInMenuBar(UIExtraDataMetaDefs::RuntimeMenuType_Machine);
    16441644    action(UIActionIndexRT_M_Machine)->setVisible(fAllowToShowMenuMachine);
    16451645    if (fAllowToShowMenuMachine)
     
    16481648
    16491649    /* 'View' menu: */
    1650     const bool fAllowToShowMenuView = isAllowedInMenuBar(RuntimeMenuType_View);
     1650    const bool fAllowToShowMenuView = isAllowedInMenuBar(UIExtraDataMetaDefs::RuntimeMenuType_View);
    16511651    action(UIActionIndexRT_M_View)->setVisible(fAllowToShowMenuView);
    16521652    action(UIActionIndexRT_M_ViewPopup)->setVisible(fAllowToShowMenuView);
     
    16571657
    16581658    /* 'Devices' menu: */
    1659     const bool fAllowToShowMenuDevices = isAllowedInMenuBar(RuntimeMenuType_Devices);
     1659    const bool fAllowToShowMenuDevices = isAllowedInMenuBar(UIExtraDataMetaDefs::RuntimeMenuType_Devices);
    16601660    action(UIActionIndexRT_M_Devices)->setVisible(fAllowToShowMenuDevices);
    16611661    if (fAllowToShowMenuDevices)
     
    16651665#ifdef VBOX_WITH_DEBUGGER_GUI
    16661666    /* 'Debug' menu: */
    1667     const bool fAllowToShowMenuDebug = isAllowedInMenuBar(RuntimeMenuType_Debug);
     1667    const bool fAllowToShowMenuDebug = isAllowedInMenuBar(UIExtraDataMetaDefs::RuntimeMenuType_Debug);
    16681668    action(UIActionIndexRT_M_Debug)->setVisible(fAllowToShowMenuDebug);
    16691669    if (fAllowToShowMenuDebug)
     
    16731673
    16741674    /* 'Help' menu: */
    1675     const bool fAllowToShowMenuHelp = isAllowedInMenuBar(RuntimeMenuType_Help);
     1675    const bool fAllowToShowMenuHelp = isAllowedInMenuBar(UIExtraDataMetaDefs::RuntimeMenuType_Help);
    16761676    action(UIActionIndex_Menu_Help)->setVisible(fAllowToShowMenuHelp);
    16771677    if (fAllowToShowMenuHelp)
     
    16931693
    16941694    /* 'Settings Dialog' action: */
    1695     const bool fAllowToShowActionSettingsDialog = isAllowedInMenuMachine(RuntimeMenuMachineActionType_SettingsDialog);
     1695    const bool fAllowToShowActionSettingsDialog = isAllowedInMenuMachine(UIExtraDataMetaDefs::RuntimeMenuMachineActionType_SettingsDialog);
    16961696    action(UIActionIndexRT_M_Machine_S_Settings)->setEnabled(fAllowToShowActionSettingsDialog);
    16971697    if (fAllowToShowActionSettingsDialog)
     
    17021702
    17031703    /* 'Take Snapshot' action: */
    1704     const bool fAllowToShowActionTakeSnapshot = isAllowedInMenuMachine(RuntimeMenuMachineActionType_TakeSnapshot);
     1704    const bool fAllowToShowActionTakeSnapshot = isAllowedInMenuMachine(UIExtraDataMetaDefs::RuntimeMenuMachineActionType_TakeSnapshot);
    17051705    action(UIActionIndexRT_M_Machine_S_TakeSnapshot)->setEnabled(fAllowToShowActionTakeSnapshot);
    17061706    if (fAllowToShowActionTakeSnapshot)
     
    17111711
    17121712    /* 'Take Screenshot' action: */
    1713     const bool fAllowToShowActionTakeScreenshot = isAllowedInMenuMachine(RuntimeMenuMachineActionType_TakeScreenshot);
     1713    const bool fAllowToShowActionTakeScreenshot = isAllowedInMenuMachine(UIExtraDataMetaDefs::RuntimeMenuMachineActionType_TakeScreenshot);
    17141714    action(UIActionIndexRT_M_Machine_S_TakeScreenshot)->setEnabled(fAllowToShowActionTakeScreenshot);
    17151715    if (fAllowToShowActionTakeScreenshot)
     
    17201720
    17211721    /* 'Information Dialog' action: */
    1722     const bool fAllowToShowActionInformationDialog = isAllowedInMenuMachine(RuntimeMenuMachineActionType_InformationDialog);
     1722    const bool fAllowToShowActionInformationDialog = isAllowedInMenuMachine(UIExtraDataMetaDefs::RuntimeMenuMachineActionType_InformationDialog);
    17231723    action(UIActionIndexRT_M_Machine_S_ShowInformation)->setEnabled(fAllowToShowActionInformationDialog);
    17241724    if (fAllowToShowActionInformationDialog)
     
    17371737
    17381738    /* 'Keyboard' submenu: */
    1739     const bool fAllowToShowActionKeyboard = isAllowedInMenuMachine(RuntimeMenuMachineActionType_Keyboard);
     1739    const bool fAllowToShowActionKeyboard = isAllowedInMenuMachine(UIExtraDataMetaDefs::RuntimeMenuMachineActionType_Keyboard);
    17401740    action(UIActionIndexRT_M_Machine_M_Keyboard)->setEnabled(fAllowToShowActionKeyboard);
    17411741    if (fAllowToShowActionKeyboard)
     
    17471747
    17481748    /* 'Mouse' submenu: */
    1749     const bool fAllowToShowActionMouse = isAllowedInMenuMachine(RuntimeMenuMachineActionType_Mouse);
     1749    const bool fAllowToShowActionMouse = isAllowedInMenuMachine(UIExtraDataMetaDefs::RuntimeMenuMachineActionType_Mouse);
    17501750    action(UIActionIndexRT_M_Machine_M_Mouse)->setEnabled(fAllowToShowActionMouse);
    17511751    if (fAllowToShowActionMouse)
     
    17571757
    17581758    /* 'Mouse Integration' action: */
    1759     const bool fAllowToShowActionMouseIntegration = isAllowedInMenuMachine(RuntimeMenuMachineActionType_MouseIntegration);
     1759    const bool fAllowToShowActionMouseIntegration = isAllowedInMenuMachine(UIExtraDataMetaDefs::RuntimeMenuMachineActionType_MouseIntegration);
    17601760    action(UIActionIndexRT_M_Machine_M_Mouse_T_Integration)->setEnabled(fAllowToShowActionMouseIntegration);
    17611761    if (fAllowToShowActionMouseIntegration)
     
    17741774
    17751775    /* 'Type CAD' action: */
    1776     const bool fAllowToShowActionTypeCAD = isAllowedInMenuMachine(RuntimeMenuMachineActionType_TypeCAD);
     1776    const bool fAllowToShowActionTypeCAD = isAllowedInMenuMachine(UIExtraDataMetaDefs::RuntimeMenuMachineActionType_TypeCAD);
    17771777    action(UIActionIndexRT_M_Machine_S_TypeCAD)->setEnabled(fAllowToShowActionTypeCAD);
    17781778    if (fAllowToShowActionTypeCAD)
     
    17841784#ifdef Q_WS_X11
    17851785    /* 'Type CABS' action: */
    1786     const bool fAllowToShowActionTypeCABS = isAllowedInMenuMachine(RuntimeMenuMachineActionType_TypeCABS);
     1786    const bool fAllowToShowActionTypeCABS = isAllowedInMenuMachine(UIExtraDataMetaDefs::RuntimeMenuMachineActionType_TypeCABS);
    17871787    action(UIActionIndexRT_M_Machine_S_TypeCABS)->setEnabled(fAllowToShowActionTypeCABS);
    17881788    if (fAllowToShowActionTypeCABS)
     
    18021802
    18031803    /* 'Pause' action: */
    1804     const bool fAllowToShowActionPause = isAllowedInMenuMachine(RuntimeMenuMachineActionType_Pause);
     1804    const bool fAllowToShowActionPause = isAllowedInMenuMachine(UIExtraDataMetaDefs::RuntimeMenuMachineActionType_Pause);
    18051805    action(UIActionIndexRT_M_Machine_T_Pause)->setEnabled(fAllowToShowActionPause);
    18061806    if (fAllowToShowActionPause)
     
    18111811
    18121812    /* 'Reset' action: */
    1813     const bool fAllowToShowActionReset = isAllowedInMenuMachine(RuntimeMenuMachineActionType_Reset);
     1813    const bool fAllowToShowActionReset = isAllowedInMenuMachine(UIExtraDataMetaDefs::RuntimeMenuMachineActionType_Reset);
    18141814    action(UIActionIndexRT_M_Machine_S_Reset)->setEnabled(fAllowToShowActionReset);
    18151815    if (fAllowToShowActionReset)
     
    18201820
    18211821    /* 'Save' action: */
    1822     const bool fAllowToShowActionSaveState = isAllowedInMenuMachine(RuntimeMenuMachineActionType_SaveState);
     1822    const bool fAllowToShowActionSaveState = isAllowedInMenuMachine(UIExtraDataMetaDefs::RuntimeMenuMachineActionType_SaveState);
    18231823    action(UIActionIndexRT_M_Machine_S_Save)->setEnabled(fAllowToShowActionSaveState);
    18241824    if (fAllowToShowActionSaveState)
     
    18291829
    18301830    /* 'Shutdown' action: */
    1831     const bool fAllowToShowActionShutdown = isAllowedInMenuMachine(RuntimeMenuMachineActionType_Shutdown);
     1831    const bool fAllowToShowActionShutdown = isAllowedInMenuMachine(UIExtraDataMetaDefs::RuntimeMenuMachineActionType_Shutdown);
    18321832    action(UIActionIndexRT_M_Machine_S_Shutdown)->setEnabled(fAllowToShowActionShutdown);
    18331833    if (fAllowToShowActionShutdown)
     
    18381838
    18391839    /* 'PowerOff' action: */
    1840     const bool fAllowToShowActionPowerOff = isAllowedInMenuMachine(RuntimeMenuMachineActionType_PowerOff);
     1840    const bool fAllowToShowActionPowerOff = isAllowedInMenuMachine(UIExtraDataMetaDefs::RuntimeMenuMachineActionType_PowerOff);
    18411841    action(UIActionIndexRT_M_Machine_S_PowerOff)->setEnabled(fAllowToShowActionPowerOff);
    18421842    if (fAllowToShowActionPowerOff)
     
    18561856    const bool fAllowToShowActionClose =
    18571857#ifdef Q_WS_MAC
    1858         isAllowedInMenuApplication(MenuApplicationActionType_Close);
     1858        isAllowedInMenuApplication(UIExtraDataMetaDefs::MenuApplicationActionType_Close);
    18591859#else /* !Q_WS_MAC */
    1860         isAllowedInMenuMachine(RuntimeMenuMachineActionType_Close);
     1860        isAllowedInMenuMachine(UIExtraDataMetaDefs::RuntimeMenuMachineActionType_Close);
    18611861#endif /* !Q_WS_MAC */
    18621862    pMenu->addAction(action(UIActionIndexRT_M_Machine_S_Close));
     
    18771877
    18781878    /* 'Keyboard Settings' action: */
    1879     const bool fAllowToShowActionKeyboardSettings = isAllowedInMenuMachine(RuntimeMenuMachineActionType_KeyboardSettings);
     1879    const bool fAllowToShowActionKeyboardSettings = isAllowedInMenuMachine(UIExtraDataMetaDefs::RuntimeMenuMachineActionType_KeyboardSettings);
    18801880    action(UIActionIndexRT_M_Machine_M_Keyboard_S_Settings)->setEnabled(fAllowToShowActionKeyboardSettings);
    18811881    if (fAllowToShowActionKeyboardSettings)
     
    18951895
    18961896    /* 'Machine Integration' action: */
    1897     const bool fAllowToShowActionMouseIntegration = isAllowedInMenuMachine(RuntimeMenuMachineActionType_MouseIntegration);
     1897    const bool fAllowToShowActionMouseIntegration = isAllowedInMenuMachine(UIExtraDataMetaDefs::RuntimeMenuMachineActionType_MouseIntegration);
    18981898    action(UIActionIndexRT_M_Machine_M_Mouse_T_Integration)->setEnabled(fAllowToShowActionMouseIntegration);
    18991899    if (fAllowToShowActionMouseIntegration)
     
    19141914
    19151915    /* Visual representation mode flags: */
    1916     const bool fIsAllowToShowActionFullscreen = isAllowedInMenuView(RuntimeMenuViewActionType_Fullscreen);
    1917     const bool fIsAllowToShowActionSeamless   = isAllowedInMenuView(RuntimeMenuViewActionType_Seamless);
    1918     const bool fIsAllowToShowActionScale      = isAllowedInMenuView(RuntimeMenuViewActionType_Scale);
     1916    const bool fIsAllowToShowActionFullscreen = isAllowedInMenuView(UIExtraDataMetaDefs::RuntimeMenuViewActionType_Fullscreen);
     1917    const bool fIsAllowToShowActionSeamless   = isAllowedInMenuView(UIExtraDataMetaDefs::RuntimeMenuViewActionType_Seamless);
     1918    const bool fIsAllowToShowActionScale      = isAllowedInMenuView(UIExtraDataMetaDefs::RuntimeMenuViewActionType_Scale);
    19191919
    19201920    /* 'Fullscreen' action: */
     
    19421942
    19431943    /* 'Adjust Window' action: */
    1944     const bool fAllowToShowActionAdjustWindow = isAllowedInMenuView(RuntimeMenuViewActionType_AdjustWindow);
     1944    const bool fAllowToShowActionAdjustWindow = isAllowedInMenuView(UIExtraDataMetaDefs::RuntimeMenuViewActionType_AdjustWindow);
    19451945    action(UIActionIndexRT_M_View_S_AdjustWindow)->setEnabled(fAllowToShowActionAdjustWindow);
    19461946    if (fAllowToShowActionAdjustWindow)
     
    19511951
    19521952    /* 'Guest Autoresize' action: */
    1953     const bool fAllowToShowActionGuestAutoresize = isAllowedInMenuView(RuntimeMenuViewActionType_GuestAutoresize);
     1953    const bool fAllowToShowActionGuestAutoresize = isAllowedInMenuView(UIExtraDataMetaDefs::RuntimeMenuViewActionType_GuestAutoresize);
    19541954    action(UIActionIndexRT_M_View_T_GuestAutoresize)->setEnabled(fAllowToShowActionGuestAutoresize);
    19551955    if (fAllowToShowActionGuestAutoresize)
     
    19681968
    19691969    /* 'Status Bar' submenu: */
    1970     const bool fAllowToShowActionStatusBar = isAllowedInMenuView(RuntimeMenuViewActionType_StatusBar);
     1970    const bool fAllowToShowActionStatusBar = isAllowedInMenuView(UIExtraDataMetaDefs::RuntimeMenuViewActionType_StatusBar);
    19711971    action(UIActionIndexRT_M_View_M_StatusBar)->setEnabled(fAllowToShowActionStatusBar);
    19721972    if (fAllowToShowActionStatusBar)
     
    19831983
    19841984    /* Do we have to show resize or multiscreen menu? */
    1985     const bool fAllowToShowActionResize = isAllowedInMenuView(RuntimeMenuViewActionType_Resize);
    1986     const bool fAllowToShowActionMultiscreen = isAllowedInMenuView(RuntimeMenuViewActionType_Multiscreen);
     1985    const bool fAllowToShowActionResize = isAllowedInMenuView(UIExtraDataMetaDefs::RuntimeMenuViewActionType_Resize);
     1986    const bool fAllowToShowActionMultiscreen = isAllowedInMenuView(UIExtraDataMetaDefs::RuntimeMenuViewActionType_Multiscreen);
    19871987    if (fAllowToShowActionResize && session())
    19881988    {
     
    20302030
    20312031    /* 'Adjust Window' action: */
    2032     const bool fAllowToShowActionAdjustWindow = isAllowedInMenuView(RuntimeMenuViewActionType_AdjustWindow);
     2032    const bool fAllowToShowActionAdjustWindow = isAllowedInMenuView(UIExtraDataMetaDefs::RuntimeMenuViewActionType_AdjustWindow);
    20332033    action(UIActionIndexRT_M_View_S_AdjustWindow)->setEnabled(fAllowToShowActionAdjustWindow);
    20342034    if (fAllowToShowActionAdjustWindow)
     
    20392039
    20402040    /* 'Guest Autoresize' action: */
    2041     const bool fAllowToShowActionGuestAutoresize = isAllowedInMenuView(RuntimeMenuViewActionType_GuestAutoresize);
     2041    const bool fAllowToShowActionGuestAutoresize = isAllowedInMenuView(UIExtraDataMetaDefs::RuntimeMenuViewActionType_GuestAutoresize);
    20422042    action(UIActionIndexRT_M_View_T_GuestAutoresize)->setEnabled(fAllowToShowActionGuestAutoresize);
    20432043    if (fAllowToShowActionGuestAutoresize)
     
    20532053
    20542054    /* Do we have to show resize menu? */
    2055     const bool fAllowToShowActionResize = isAllowedInMenuView(RuntimeMenuViewActionType_Resize);
     2055    const bool fAllowToShowActionResize = isAllowedInMenuView(UIExtraDataMetaDefs::RuntimeMenuViewActionType_Resize);
    20562056    if (fAllowToShowActionResize && session())
    20572057    {
     
    20802080
    20812081    /* 'Status Bar Settings' action: */
    2082     const bool fAllowToShowActionStatusBarSettings = isAllowedInMenuView(RuntimeMenuViewActionType_StatusBarSettings);
     2082    const bool fAllowToShowActionStatusBarSettings = isAllowedInMenuView(UIExtraDataMetaDefs::RuntimeMenuViewActionType_StatusBarSettings);
    20832083    action(UIActionIndexRT_M_View_M_StatusBar_S_Settings)->setEnabled(fAllowToShowActionStatusBarSettings);
    20842084    if (fAllowToShowActionStatusBarSettings)
     
    20862086
    20872087    /* 'Toggle Status Bar' action: */
    2088     const bool fAllowToShowActionToggleStatusBar = isAllowedInMenuView(RuntimeMenuViewActionType_ToggleStatusBar);
     2088    const bool fAllowToShowActionToggleStatusBar = isAllowedInMenuView(UIExtraDataMetaDefs::RuntimeMenuViewActionType_ToggleStatusBar);
    20892089    action(UIActionIndexRT_M_View_M_StatusBar_T_Visibility)->setEnabled(fAllowToShowActionToggleStatusBar);
    20902090    if (fAllowToShowActionToggleStatusBar)
     
    22272227
    22282228    /* 'Hard Drives' submenu: */
    2229     const bool fAllowToShowActionHardDrives = isAllowedInMenuDevices(RuntimeMenuDevicesActionType_HardDrives);
     2229    const bool fAllowToShowActionHardDrives = isAllowedInMenuDevices(UIExtraDataMetaDefs::RuntimeMenuDevicesActionType_HardDrives);
    22302230    action(UIActionIndexRT_M_Devices_M_HardDrives)->setEnabled(fAllowToShowActionHardDrives);
    22312231    if (fAllowToShowActionHardDrives)
     
    22372237
    22382238    /* 'Optical Devices' submenu: */
    2239     const bool fAllowToShowActionOpticalDevices = isAllowedInMenuDevices(RuntimeMenuDevicesActionType_OpticalDevices);
     2239    const bool fAllowToShowActionOpticalDevices = isAllowedInMenuDevices(UIExtraDataMetaDefs::RuntimeMenuDevicesActionType_OpticalDevices);
    22402240    action(UIActionIndexRT_M_Devices_M_OpticalDevices)->setEnabled(fAllowToShowActionOpticalDevices);
    22412241    if (fAllowToShowActionOpticalDevices)
     
    22462246
    22472247    /* 'Floppy Devices' submenu: */
    2248     const bool fAllowToShowActionFloppyDevices = isAllowedInMenuDevices(RuntimeMenuDevicesActionType_FloppyDevices);
     2248    const bool fAllowToShowActionFloppyDevices = isAllowedInMenuDevices(UIExtraDataMetaDefs::RuntimeMenuDevicesActionType_FloppyDevices);
    22492249    action(UIActionIndexRT_M_Devices_M_FloppyDevices)->setEnabled(fAllowToShowActionFloppyDevices);
    22502250    if (fAllowToShowActionFloppyDevices)
     
    22552255
    22562256    /* 'Network' submenu: */
    2257     const bool fAllowToShowActionNetwork = isAllowedInMenuDevices(RuntimeMenuDevicesActionType_Network);
     2257    const bool fAllowToShowActionNetwork = isAllowedInMenuDevices(UIExtraDataMetaDefs::RuntimeMenuDevicesActionType_Network);
    22582258    action(UIActionIndexRT_M_Devices_M_Network)->setEnabled(fAllowToShowActionNetwork);
    22592259    if (fAllowToShowActionNetwork)
     
    22652265
    22662266    /* 'USB Devices' submenu: */
    2267     const bool fAllowToShowActionUSBDevices = isAllowedInMenuDevices(RuntimeMenuDevicesActionType_USBDevices);
     2267    const bool fAllowToShowActionUSBDevices = isAllowedInMenuDevices(UIExtraDataMetaDefs::RuntimeMenuDevicesActionType_USBDevices);
    22682268    action(UIActionIndexRT_M_Devices_M_USBDevices)->setEnabled(fAllowToShowActionUSBDevices);
    22692269    if (fAllowToShowActionUSBDevices)
     
    22752275
    22762276    /* 'Web Cams' submenu: */
    2277     const bool fAllowToShowActionWebCams = isAllowedInMenuDevices(RuntimeMenuDevicesActionType_WebCams);
     2277    const bool fAllowToShowActionWebCams = isAllowedInMenuDevices(UIExtraDataMetaDefs::RuntimeMenuDevicesActionType_WebCams);
    22782278    action(UIActionIndexRT_M_Devices_M_WebCams)->setEnabled(fAllowToShowActionWebCams);
    22792279    if (fAllowToShowActionWebCams)
     
    22842284
    22852285    /* 'Shared Clipboard' submenu: */
    2286     const bool fAllowToShowActionSharedClipboard = isAllowedInMenuDevices(RuntimeMenuDevicesActionType_SharedClipboard);
     2286    const bool fAllowToShowActionSharedClipboard = isAllowedInMenuDevices(UIExtraDataMetaDefs::RuntimeMenuDevicesActionType_SharedClipboard);
    22872287    action(UIActionIndexRT_M_Devices_M_SharedClipboard)->setEnabled(fAllowToShowActionSharedClipboard);
    22882288    if (fAllowToShowActionSharedClipboard)
     
    22932293
    22942294    /* 'Drag&Drop' submenu: */
    2295     const bool fAllowToShowActionDragAndDrop = isAllowedInMenuDevices(RuntimeMenuDevicesActionType_DragAndDrop);
     2295    const bool fAllowToShowActionDragAndDrop = isAllowedInMenuDevices(UIExtraDataMetaDefs::RuntimeMenuDevicesActionType_DragAndDrop);
    22962296    action(UIActionIndexRT_M_Devices_M_DragAndDrop)->setEnabled(fAllowToShowActionDragAndDrop);
    22972297    if (fAllowToShowActionDragAndDrop)
     
    23022302
    23032303    /* 'Shared Folders' submenu: */
    2304     const bool fAllowToShowActionSharedFolders = isAllowedInMenuDevices(RuntimeMenuDevicesActionType_SharedFolders);
     2304    const bool fAllowToShowActionSharedFolders = isAllowedInMenuDevices(UIExtraDataMetaDefs::RuntimeMenuDevicesActionType_SharedFolders);
    23052305    action(UIActionIndexRT_M_Devices_M_SharedFolders)->setEnabled(fAllowToShowActionSharedFolders);
    23062306    if (fAllowToShowActionSharedFolders)
     
    23202320
    23212321    /* 'VRDE Server' action: */
    2322     const bool fAllowToShowActionVRDEServer = isAllowedInMenuDevices(RuntimeMenuDevicesActionType_VRDEServer);
     2322    const bool fAllowToShowActionVRDEServer = isAllowedInMenuDevices(UIExtraDataMetaDefs::RuntimeMenuDevicesActionType_VRDEServer);
    23232323    action(UIActionIndexRT_M_Devices_T_VRDEServer)->setEnabled(fAllowToShowActionVRDEServer);
    23242324    if (fAllowToShowActionVRDEServer)
     
    23292329
    23302330    /* 'Video Capture' action: */
    2331     const bool fAllowToShowActionVideoCapture = isAllowedInMenuDevices(RuntimeMenuDevicesActionType_VideoCapture);
     2331    const bool fAllowToShowActionVideoCapture = isAllowedInMenuDevices(UIExtraDataMetaDefs::RuntimeMenuDevicesActionType_StartVideoCapture);
    23322332    action(UIActionIndexRT_M_Devices_M_VideoCapture_T_Start)->setEnabled(fAllowToShowActionVideoCapture);
    23332333    if (fAllowToShowActionVideoCapture)
     
    23442344
    23452345    /* Install Guest Tools action: */
    2346     const bool fAllowToShowActionInstallGuestTools = isAllowedInMenuDevices(RuntimeMenuDevicesActionType_InstallGuestTools);
     2346    const bool fAllowToShowActionInstallGuestTools = isAllowedInMenuDevices(UIExtraDataMetaDefs::RuntimeMenuDevicesActionType_InstallGuestTools);
    23472347    action(UIActionIndexRT_M_Devices_S_InstallGuestTools)->setEnabled(fAllowToShowActionInstallGuestTools);
    23482348    if (fAllowToShowActionInstallGuestTools)
     
    23632363
    23642364    /* 'Hard Drives Settings' action: */
    2365     const bool fAllowToShowActionHardDrivesSettings = isAllowedInMenuDevices(RuntimeMenuDevicesActionType_HardDrivesSettings);
     2365    const bool fAllowToShowActionHardDrivesSettings = isAllowedInMenuDevices(UIExtraDataMetaDefs::RuntimeMenuDevicesActionType_HardDrivesSettings);
    23662366    action(UIActionIndexRT_M_Devices_M_HardDrives_S_Settings)->setEnabled(fAllowToShowActionHardDrivesSettings);
    23672367    if (fAllowToShowActionHardDrivesSettings)
     
    23812381
    23822382    /* 'Network Settings' action: */
    2383     const bool fAllowToShowActionNetworkSettings = isAllowedInMenuDevices(RuntimeMenuDevicesActionType_NetworkSettings);
     2383    const bool fAllowToShowActionNetworkSettings = isAllowedInMenuDevices(UIExtraDataMetaDefs::RuntimeMenuDevicesActionType_NetworkSettings);
    23842384    action(UIActionIndexRT_M_Devices_M_Network_S_Settings)->setEnabled(fAllowToShowActionNetworkSettings);
    23852385    if (fAllowToShowActionNetworkSettings)
     
    23962396
    23972397    /* 'USB Devices Settings' action: */
    2398     const bool fAllowToShowActionUSBDevicesSettings = isAllowedInMenuDevices(RuntimeMenuDevicesActionType_USBDevicesSettings);
     2398    const bool fAllowToShowActionUSBDevicesSettings = isAllowedInMenuDevices(UIExtraDataMetaDefs::RuntimeMenuDevicesActionType_USBDevicesSettings);
    23992399    action(UIActionIndexRT_M_Devices_M_USBDevices_S_Settings)->setEnabled(fAllowToShowActionUSBDevicesSettings);
    24002400    if (fAllowToShowActionUSBDevicesSettings)
     
    24112411
    24122412    /* 'Shared Folders Settings' action: */
    2413     const bool fAllowToShowActionSharedFoldersSettings = isAllowedInMenuDevices(RuntimeMenuDevicesActionType_SharedFoldersSettings);
     2413    const bool fAllowToShowActionSharedFoldersSettings = isAllowedInMenuDevices(UIExtraDataMetaDefs::RuntimeMenuDevicesActionType_SharedFoldersSettings);
    24142414    action(UIActionIndexRT_M_Devices_M_SharedFolders_S_Settings)->setEnabled(fAllowToShowActionSharedFoldersSettings);
    24152415    if (fAllowToShowActionSharedFoldersSettings)
     
    24292429
    24302430    /* 'Video Capture Settings' action: */
    2431     const bool fAllowToShowActionVideoCaptureSettings = isAllowedInMenuDevices(RuntimeMenuDevicesActionType_VideoCaptureSettings);
     2431    const bool fAllowToShowActionVideoCaptureSettings = isAllowedInMenuDevices(UIExtraDataMetaDefs::RuntimeMenuDevicesActionType_VideoCaptureSettings);
    24322432    action(UIActionIndexRT_M_Devices_M_VideoCapture_S_Settings)->setEnabled(fAllowToShowActionVideoCaptureSettings);
    24332433    if (fAllowToShowActionVideoCaptureSettings)
     
    24352435
    24362436    /* 'Start Video Capture' action: */
    2437     const bool fAllowToShowActionStartVideoCapture = isAllowedInMenuDevices(RuntimeMenuDevicesActionType_StartVideoCapture);
     2437    const bool fAllowToShowActionStartVideoCapture = isAllowedInMenuDevices(UIExtraDataMetaDefs::RuntimeMenuDevicesActionType_StartVideoCapture);
    24382438    action(UIActionIndexRT_M_Devices_M_VideoCapture_S_Settings)->setEnabled(fAllowToShowActionStartVideoCapture);
    24392439    if (fAllowToShowActionStartVideoCapture)
     
    24542454
    24552455    /* 'Statistics' action: */
    2456     const bool fAllowToShowActionStatistics = isAllowedInMenuDebug(RuntimeMenuDebuggerActionType_Statistics);
     2456    const bool fAllowToShowActionStatistics = isAllowedInMenuDebug(UIExtraDataMetaDefs::RuntimeMenuDebuggerActionType_Statistics);
    24572457    action(UIActionIndexRT_M_Debug_S_ShowStatistics)->setEnabled(fAllowToShowActionStatistics);
    24582458    if (fAllowToShowActionStatistics)
     
    24602460
    24612461    /* 'Command Line' action: */
    2462     const bool fAllowToShowActionCommandLine = isAllowedInMenuDebug(RuntimeMenuDebuggerActionType_CommandLine);
     2462    const bool fAllowToShowActionCommandLine = isAllowedInMenuDebug(UIExtraDataMetaDefs::RuntimeMenuDebuggerActionType_CommandLine);
    24632463    action(UIActionIndexRT_M_Debug_S_ShowCommandLine)->setEnabled(fAllowToShowActionCommandLine);
    24642464    if (fAllowToShowActionCommandLine)
     
    24662466
    24672467    /* 'Logging' action: */
    2468     const bool fAllowToShowActionLogging = isAllowedInMenuDebug(RuntimeMenuDebuggerActionType_Logging);
     2468    const bool fAllowToShowActionLogging = isAllowedInMenuDebug(UIExtraDataMetaDefs::RuntimeMenuDebuggerActionType_Logging);
    24692469    action(UIActionIndexRT_M_Debug_T_Logging)->setEnabled(fAllowToShowActionLogging);
    24702470    if (fAllowToShowActionLogging)
     
    24722472
    24732473    /* 'Log Dialog' action: */
    2474     const bool fAllowToShowActionLogDialog = isAllowedInMenuDebug(RuntimeMenuDebuggerActionType_LogDialog);
     2474    const bool fAllowToShowActionLogDialog = isAllowedInMenuDebug(UIExtraDataMetaDefs::RuntimeMenuDebuggerActionType_LogDialog);
    24752475    action(UIActionIndex_Simple_LogDialog)->setEnabled(fAllowToShowActionLogDialog);
    24762476    if (fAllowToShowActionLogDialog)
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIActionPoolRuntime.h

    r52344 r52459  
    143143
    144144    /** Returns whether the menu with passed @a type is allowed in menu-bar. */
    145     bool isAllowedInMenuBar(RuntimeMenuType type) const;
     145    bool isAllowedInMenuBar(UIExtraDataMetaDefs::RuntimeMenuType type) const;
    146146    /** Defines menu-bar @a restriction for passed @a level. */
    147     void setRestrictionForMenuBar(UIActionRestrictionLevel level, RuntimeMenuType restriction);
     147    void setRestrictionForMenuBar(UIActionRestrictionLevel level, UIExtraDataMetaDefs::RuntimeMenuType restriction);
    148148
    149149    /** Returns whether the action with passed @a type is allowed in the 'Machine' menu. */
    150     bool isAllowedInMenuMachine(RuntimeMenuMachineActionType type) const;
     150    bool isAllowedInMenuMachine(UIExtraDataMetaDefs::RuntimeMenuMachineActionType type) const;
    151151    /** Defines 'Machine' menu @a restriction for passed @a level. */
    152     void setRestrictionForMenuMachine(UIActionRestrictionLevel level, RuntimeMenuMachineActionType restriction);
     152    void setRestrictionForMenuMachine(UIActionRestrictionLevel level, UIExtraDataMetaDefs::RuntimeMenuMachineActionType restriction);
    153153
    154154    /** Returns whether the action with passed @a type is allowed in the 'View' menu. */
    155     bool isAllowedInMenuView(RuntimeMenuViewActionType type) const;
     155    bool isAllowedInMenuView(UIExtraDataMetaDefs::RuntimeMenuViewActionType type) const;
    156156    /** Defines 'View' menu @a restriction for passed @a level. */
    157     void setRestrictionForMenuView(UIActionRestrictionLevel level, RuntimeMenuViewActionType restriction);
     157    void setRestrictionForMenuView(UIActionRestrictionLevel level, UIExtraDataMetaDefs::RuntimeMenuViewActionType restriction);
    158158
    159159    /** Returns whether the action with passed @a type is allowed in the 'Devices' menu. */
    160     bool isAllowedInMenuDevices(RuntimeMenuDevicesActionType type) const;
     160    bool isAllowedInMenuDevices(UIExtraDataMetaDefs::RuntimeMenuDevicesActionType type) const;
    161161    /** Defines 'Devices' menu @a restriction for passed @a level. */
    162     void setRestrictionForMenuDevices(UIActionRestrictionLevel level, RuntimeMenuDevicesActionType restriction);
     162    void setRestrictionForMenuDevices(UIActionRestrictionLevel level, UIExtraDataMetaDefs::RuntimeMenuDevicesActionType restriction);
    163163
    164164#ifdef VBOX_WITH_DEBUGGER_GUI
    165165    /** Returns whether the action with passed @a type is allowed in the 'Debug' menu. */
    166     bool isAllowedInMenuDebug(RuntimeMenuDebuggerActionType type) const;
     166    bool isAllowedInMenuDebug(UIExtraDataMetaDefs::RuntimeMenuDebuggerActionType type) const;
    167167    /** Defines 'Debug' menu @a restriction for passed @a level. */
    168     void setRestrictionForMenuDebugger(UIActionRestrictionLevel level, RuntimeMenuDebuggerActionType restriction);
     168    void setRestrictionForMenuDebugger(UIActionRestrictionLevel level, UIExtraDataMetaDefs::RuntimeMenuDebuggerActionType restriction);
    169169#endif /* VBOX_WITH_DEBUGGER_GUI */
    170170
     
    254254    UIMultiScreenLayout *m_pMultiScreenLayout;
    255255
    256     /** Holds the list of main-menus. */
     256    /** Holds the list of Runtime UI main menus. */
    257257    QList<QMenu*> m_mainMenus;
    258258
    259259    /** Holds restricted menu types. */
    260     QMap<UIActionRestrictionLevel, RuntimeMenuType> m_restrictedMenus;
     260    QMap<UIActionRestrictionLevel, UIExtraDataMetaDefs::RuntimeMenuType> m_restrictedMenus;
    261261    /** Holds restricted action types of the Machine menu. */
    262     QMap<UIActionRestrictionLevel, RuntimeMenuMachineActionType> m_restrictedActionsMenuMachine;
     262    QMap<UIActionRestrictionLevel, UIExtraDataMetaDefs::RuntimeMenuMachineActionType> m_restrictedActionsMenuMachine;
    263263    /** Holds restricted action types of the View menu. */
    264     QMap<UIActionRestrictionLevel, RuntimeMenuViewActionType> m_restrictedActionsMenuView;
     264    QMap<UIActionRestrictionLevel, UIExtraDataMetaDefs::RuntimeMenuViewActionType> m_restrictedActionsMenuView;
    265265    /** Holds restricted action types of the Devices menu. */
    266     QMap<UIActionRestrictionLevel, RuntimeMenuDevicesActionType> m_restrictedActionsMenuDevices;
     266    QMap<UIActionRestrictionLevel, UIExtraDataMetaDefs::RuntimeMenuDevicesActionType> m_restrictedActionsMenuDevices;
    267267#ifdef VBOX_WITH_DEBUGGER_GUI
    268268    /** Holds restricted action types of the Debugger menu. */
    269     QMap<UIActionRestrictionLevel, RuntimeMenuDebuggerActionType> m_restrictedActionsMenuDebug;
     269    QMap<UIActionRestrictionLevel, UIExtraDataMetaDefs::RuntimeMenuDebuggerActionType> m_restrictedActionsMenuDebug;
    270270#endif /* VBOX_WITH_DEBUGGER_GUI */
    271271
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.cpp

    r52275 r52459  
    10001000    const CHost host = vboxGlobal().host();
    10011001    const CMachine machine = session().GetConsole().GetMachine();
    1002     RuntimeMenuDevicesActionType restriction = RuntimeMenuDevicesActionType_Invalid;
     1002    UIExtraDataMetaDefs::RuntimeMenuDevicesActionType restriction = UIExtraDataMetaDefs::RuntimeMenuDevicesActionType_Invalid;
    10031003
    10041004    /* Storage stuff: */
     
    10191019        pFloppyDevicesMenu->setData(iDevicesCountFD);
    10201020        if (!iDevicesCountCD)
    1021             restriction = (RuntimeMenuDevicesActionType)(restriction | RuntimeMenuDevicesActionType_OpticalDevices);
     1021            restriction = (UIExtraDataMetaDefs::RuntimeMenuDevicesActionType)(restriction | UIExtraDataMetaDefs::RuntimeMenuDevicesActionType_OpticalDevices);
    10221022        if (!iDevicesCountFD)
    1023             restriction = (RuntimeMenuDevicesActionType)(restriction | RuntimeMenuDevicesActionType_FloppyDevices);
     1023            restriction = (UIExtraDataMetaDefs::RuntimeMenuDevicesActionType)(restriction | UIExtraDataMetaDefs::RuntimeMenuDevicesActionType_FloppyDevices);
    10241024    }
    10251025
     
    10401040        }
    10411041        if (!fAtLeastOneAdapterActive)
    1042             restriction = (RuntimeMenuDevicesActionType)(restriction | RuntimeMenuDevicesActionType_Network);
     1042            restriction = (UIExtraDataMetaDefs::RuntimeMenuDevicesActionType)(restriction | UIExtraDataMetaDefs::RuntimeMenuDevicesActionType_Network);
    10431043    }
    10441044
     
    10501050                                 && machine.GetUSBProxyAvailable();
    10511051        if (!fUSBEnabled)
    1052             restriction = (RuntimeMenuDevicesActionType)(restriction | RuntimeMenuDevicesActionType_USBDevices);
     1052            restriction = (UIExtraDataMetaDefs::RuntimeMenuDevicesActionType)(restriction | UIExtraDataMetaDefs::RuntimeMenuDevicesActionType_USBDevices);
    10531053    }
    10541054
     
    10591059        const bool fWebCamsEnabled = host.isOk() && !machine.GetUSBControllers().isEmpty();
    10601060        if (!fWebCamsEnabled)
    1061             restriction = (RuntimeMenuDevicesActionType)(restriction | RuntimeMenuDevicesActionType_WebCams);
     1061            restriction = (UIExtraDataMetaDefs::RuntimeMenuDevicesActionType)(restriction | UIExtraDataMetaDefs::RuntimeMenuDevicesActionType_WebCams);
    10621062    }
    10631063
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/fullscreen/UIMachineLogicFullscreen.cpp

    r52372 r52459  
    463463    /* Restrict 'Adjust Window', 'Status Bar' and 'Resize' actions for 'View' menu: */
    464464    actionPool()->toRuntime()->setRestrictionForMenuView(UIActionRestrictionLevel_Logic,
    465                                                          (RuntimeMenuViewActionType)
    466                                                          (RuntimeMenuViewActionType_AdjustWindow |
    467                                                           RuntimeMenuViewActionType_StatusBar |
    468                                                           RuntimeMenuViewActionType_Resize));
     465                                                         (UIExtraDataMetaDefs::RuntimeMenuViewActionType)
     466                                                         (UIExtraDataMetaDefs::RuntimeMenuViewActionType_AdjustWindow |
     467                                                          UIExtraDataMetaDefs::RuntimeMenuViewActionType_StatusBar |
     468                                                          UIExtraDataMetaDefs::RuntimeMenuViewActionType_Resize));
    469469
    470470    /* Take care of view-action toggle state: */
     
    638638    /* Allow 'Adjust Window', 'Status Bar' and 'Resize' actions for 'View' menu: */
    639639    actionPool()->toRuntime()->setRestrictionForMenuView(UIActionRestrictionLevel_Logic,
    640                                                          RuntimeMenuViewActionType_Invalid);
     640                                                         UIExtraDataMetaDefs::RuntimeMenuViewActionType_Invalid);
    641641
    642642    /* Call to base-class: */
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/scale/UIMachineLogicScale.cpp

    r52236 r52459  
    7575    /* Restrict 'Adjust Window', 'Guest Autoresize', 'Status Bar' and 'Resize' actions for 'View' menu: */
    7676    actionPool()->toRuntime()->setRestrictionForMenuView(UIActionRestrictionLevel_Logic,
    77                                                          (RuntimeMenuViewActionType)
    78                                                          (RuntimeMenuViewActionType_AdjustWindow |
    79                                                           RuntimeMenuViewActionType_GuestAutoresize |
    80                                                           RuntimeMenuViewActionType_StatusBar |
    81                                                           RuntimeMenuViewActionType_Resize));
     77                                                         (UIExtraDataMetaDefs::RuntimeMenuViewActionType)
     78                                                         (UIExtraDataMetaDefs::RuntimeMenuViewActionType_AdjustWindow |
     79                                                          UIExtraDataMetaDefs::RuntimeMenuViewActionType_GuestAutoresize |
     80                                                          UIExtraDataMetaDefs::RuntimeMenuViewActionType_StatusBar |
     81                                                          UIExtraDataMetaDefs::RuntimeMenuViewActionType_Resize));
    8282
    8383    /* Take care of view-action toggle state: */
     
    201201    /* Allow 'Adjust Window', 'Guest Autoresize', 'Status Bar' and 'Resize' actions for 'View' menu: */
    202202    actionPool()->toRuntime()->setRestrictionForMenuView(UIActionRestrictionLevel_Logic,
    203                                                          RuntimeMenuViewActionType_Invalid);
     203                                                         UIExtraDataMetaDefs::RuntimeMenuViewActionType_Invalid);
    204204
    205205    /* Call to base-class: */
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/seamless/UIMachineLogicSeamless.cpp

    r52372 r52459  
    205205    /* Restrict 'Disable Mouse Integration' action for 'Machine' menu: */
    206206    actionPool()->toRuntime()->setRestrictionForMenuMachine(UIActionRestrictionLevel_Logic,
    207                                                             RuntimeMenuMachineActionType_MouseIntegration);
     207                                                            UIExtraDataMetaDefs::RuntimeMenuMachineActionType_MouseIntegration);
    208208    /* Restrict 'Adjust Window', 'Guest Autoresize', 'Status Bar' and 'Resize' actions for 'View' menu: */
    209209    actionPool()->toRuntime()->setRestrictionForMenuView(UIActionRestrictionLevel_Logic,
    210                                                          (RuntimeMenuViewActionType)
    211                                                          (RuntimeMenuViewActionType_AdjustWindow |
    212                                                           RuntimeMenuViewActionType_GuestAutoresize |
    213                                                           RuntimeMenuViewActionType_StatusBar |
    214                                                           RuntimeMenuViewActionType_Resize));
     210                                                         (UIExtraDataMetaDefs::RuntimeMenuViewActionType)
     211                                                         (UIExtraDataMetaDefs::RuntimeMenuViewActionType_AdjustWindow |
     212                                                          UIExtraDataMetaDefs::RuntimeMenuViewActionType_GuestAutoresize |
     213                                                          UIExtraDataMetaDefs::RuntimeMenuViewActionType_StatusBar |
     214                                                          UIExtraDataMetaDefs::RuntimeMenuViewActionType_Resize));
    215215
    216216    /* Take care of view-action toggle state: */
     
    335335    /* Allow 'Disable Mouse Integration' action for 'Machine' menu: */
    336336    actionPool()->toRuntime()->setRestrictionForMenuMachine(UIActionRestrictionLevel_Logic,
    337                                                             RuntimeMenuMachineActionType_Invalid);
     337                                                            UIExtraDataMetaDefs::RuntimeMenuMachineActionType_Invalid);
    338338    /* Allow 'Adjust Window', 'Guest Autoresize', 'Status Bar' and 'Resize' actions for 'View' menu: */
    339339    actionPool()->toRuntime()->setRestrictionForMenuView(UIActionRestrictionLevel_Logic,
    340                                                          RuntimeMenuViewActionType_Invalid);
     340                                                         UIExtraDataMetaDefs::RuntimeMenuViewActionType_Invalid);
    341341
    342342    /* Call to base-class: */
  • trunk/src/VBox/Frontends/VirtualBox/src/selector/UIActionPoolSelector.h

    r52215 r52459  
    111111    virtual QString shortcutsExtraDataID() const;
    112112
    113     /** Returns the list of Runtime UI main menus. */
     113    /** Returns the list of Selector UI main menus. */
    114114    virtual QList<QMenu*> menus() const { return QList<QMenu*>(); }
    115115
Note: See TracChangeset for help on using the changeset viewer.

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