Changeset 52459 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Aug 22, 2014 11:03:40 AM (11 years ago)
- svn:sync-xref-src-repo-rev:
- 95673
- Location:
- trunk/src/VBox/Frontends/VirtualBox
- Files:
-
- 15 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/Makefile.kmk
r52389 r52459 279 279 src/extensions/QIAdvancedToolBar.h \ 280 280 src/extensions/graphics/QIGraphicsWidget.h \ 281 src/extradata/UIExtraDataDefs.h \ 281 282 src/extradata/UIExtraDataManager.h \ 282 283 src/globals/UIActionPool.h \ -
trunk/src/VBox/Frontends/VirtualBox/src/converter/UIConverterBackend.h
r52218 r52459 70 70 template<> bool canConvert<SizeSuffix>(); 71 71 template<> bool canConvert<StorageSlot>(); 72 template<> bool canConvert< MenuHelpActionType>();72 template<> bool canConvert<UIExtraDataMetaDefs::MenuHelpActionType>(); 73 73 #ifdef Q_WS_MAC 74 template<> bool canConvert< MenuApplicationActionType>();74 template<> bool canConvert<UIExtraDataMetaDefs::MenuApplicationActionType>(); 75 75 #endif /* Q_WS_MAC */ 76 template<> bool canConvert< RuntimeMenuType>();77 template<> bool canConvert< RuntimeMenuMachineActionType>();78 template<> bool canConvert< RuntimeMenuViewActionType>();79 template<> bool canConvert< RuntimeMenuDevicesActionType>();76 template<> bool canConvert<UIExtraDataMetaDefs::RuntimeMenuType>(); 77 template<> bool canConvert<UIExtraDataMetaDefs::RuntimeMenuMachineActionType>(); 78 template<> bool canConvert<UIExtraDataMetaDefs::RuntimeMenuViewActionType>(); 79 template<> bool canConvert<UIExtraDataMetaDefs::RuntimeMenuDevicesActionType>(); 80 80 #ifdef VBOX_WITH_DEBUGGER_GUI 81 template<> bool canConvert< RuntimeMenuDebuggerActionType>();81 template<> bool canConvert<UIExtraDataMetaDefs::RuntimeMenuDebuggerActionType>(); 82 82 #endif /* VBOX_WITH_DEBUGGER_GUI */ 83 83 template<> bool canConvert<UIVisualStateType>(); … … 123 123 template<> QString toString(const StorageSlot &storageSlot); 124 124 template<> StorageSlot fromString<StorageSlot>(const QString &strStorageSlot); 125 template<> QString toInternalString(const MenuHelpActionType &menuHelpActionType);126 template<> MenuHelpActionType fromInternalString<MenuHelpActionType>(const QString &strMenuHelpActionType);125 template<> QString toInternalString(const UIExtraDataMetaDefs::MenuHelpActionType &menuHelpActionType); 126 template<> UIExtraDataMetaDefs::MenuHelpActionType fromInternalString<UIExtraDataMetaDefs::MenuHelpActionType>(const QString &strMenuHelpActionType); 127 127 #ifdef Q_WS_MAC 128 template<> QString toInternalString(const MenuApplicationActionType &runtimeMenuApplicationActionType);129 template<> MenuApplicationActionType fromInternalString<MenuApplicationActionType>(const QString &strRuntimeMenuApplicationActionType);128 template<> QString toInternalString(const UIExtraDataMetaDefs::MenuApplicationActionType &runtimeMenuApplicationActionType); 129 template<> UIExtraDataMetaDefs::MenuApplicationActionType fromInternalString<UIExtraDataMetaDefs::MenuApplicationActionType>(const QString &strRuntimeMenuApplicationActionType); 130 130 #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);131 template<> QString toInternalString(const UIExtraDataMetaDefs::RuntimeMenuType &runtimeMenuType); 132 template<> UIExtraDataMetaDefs::RuntimeMenuType fromInternalString<UIExtraDataMetaDefs::RuntimeMenuType>(const QString &strRuntimeMenuType); 133 template<> QString toInternalString(const UIExtraDataMetaDefs::RuntimeMenuMachineActionType &runtimeMenuMachineActionType); 134 template<> UIExtraDataMetaDefs::RuntimeMenuMachineActionType fromInternalString<UIExtraDataMetaDefs::RuntimeMenuMachineActionType>(const QString &strRuntimeMenuMachineActionType); 135 template<> QString toInternalString(const UIExtraDataMetaDefs::RuntimeMenuViewActionType &runtimeMenuViewActionType); 136 template<> UIExtraDataMetaDefs::RuntimeMenuViewActionType fromInternalString<UIExtraDataMetaDefs::RuntimeMenuViewActionType>(const QString &strRuntimeMenuViewActionType); 137 template<> QString toInternalString(const UIExtraDataMetaDefs::RuntimeMenuDevicesActionType &runtimeMenuDevicesActionType); 138 template<> UIExtraDataMetaDefs::RuntimeMenuDevicesActionType fromInternalString<UIExtraDataMetaDefs::RuntimeMenuDevicesActionType>(const QString &strRuntimeMenuDevicesActionType); 139 139 #ifdef VBOX_WITH_DEBUGGER_GUI 140 template<> QString toInternalString(const RuntimeMenuDebuggerActionType &runtimeMenuDebuggerActionType);141 template<> RuntimeMenuDebuggerActionType fromInternalString<RuntimeMenuDebuggerActionType>(const QString &strRuntimeMenuDebuggerActionType);140 template<> QString toInternalString(const UIExtraDataMetaDefs::RuntimeMenuDebuggerActionType &runtimeMenuDebuggerActionType); 141 template<> UIExtraDataMetaDefs::RuntimeMenuDebuggerActionType fromInternalString<UIExtraDataMetaDefs::RuntimeMenuDebuggerActionType>(const QString &strRuntimeMenuDebuggerActionType); 142 142 #endif /* VBOX_WITH_DEBUGGER_GUI */ 143 143 template<> QString toInternalString(const UIVisualStateType &visualStateType); -
trunk/src/VBox/Frontends/VirtualBox/src/converter/UIConverterBackendGlobal.cpp
r52220 r52459 34 34 template<> bool canConvert<SizeSuffix>() { return true; } 35 35 template<> bool canConvert<StorageSlot>() { return true; } 36 template<> bool canConvert< MenuHelpActionType>() { return true; }36 template<> bool canConvert<UIExtraDataMetaDefs::MenuHelpActionType>() { return true; } 37 37 #ifdef Q_WS_MAC 38 template<> bool canConvert< MenuApplicationActionType>() { return true; }38 template<> bool canConvert<UIExtraDataMetaDefs::MenuApplicationActionType>() { return true; } 39 39 #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; }40 template<> bool canConvert<UIExtraDataMetaDefs::RuntimeMenuType>() { return true; } 41 template<> bool canConvert<UIExtraDataMetaDefs::RuntimeMenuMachineActionType>() { return true; } 42 template<> bool canConvert<UIExtraDataMetaDefs::RuntimeMenuViewActionType>() { return true; } 43 template<> bool canConvert<UIExtraDataMetaDefs::RuntimeMenuDevicesActionType>() { return true; } 44 44 #ifdef VBOX_WITH_DEBUGGER_GUI 45 template<> bool canConvert< RuntimeMenuDebuggerActionType>() { return true; }45 template<> bool canConvert<UIExtraDataMetaDefs::RuntimeMenuDebuggerActionType>() { return true; } 46 46 #endif /* VBOX_WITH_DEBUGGER_GUI */ 47 47 template<> bool canConvert<UIVisualStateType>() { return true; } … … 357 357 } 358 358 359 /* QString <= MenuHelpActionType: */360 template<> QString toInternalString(const MenuHelpActionType &menuHelpActionType)359 /* QString <= UIExtraDataMetaDefs::MenuHelpActionType: */ 360 template<> QString toInternalString(const UIExtraDataMetaDefs::MenuHelpActionType &menuHelpActionType) 361 361 { 362 362 QString strResult; 363 363 switch (menuHelpActionType) 364 364 { 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; 368 368 #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; 371 371 #endif /* VBOX_GUI_WITH_NETWORK_MANAGER */ 372 372 #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; 375 375 #endif /* !Q_WS_MAC */ 376 case MenuHelpActionType_All: strResult = "All"; break;376 case UIExtraDataMetaDefs::MenuHelpActionType_All: strResult = "All"; break; 377 377 default: 378 378 { … … 384 384 } 385 385 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: */ 387 template<> 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; 395 395 #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; 398 398 #endif /* VBOX_GUI_WITH_NETWORK_MANAGER */ 399 399 #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; 402 402 #endif /* !Q_WS_MAC */ 403 keys << "All"; values << MenuHelpActionType_All;403 keys << "All"; values << UIExtraDataMetaDefs::MenuHelpActionType_All; 404 404 /* Invalid type for unknown words: */ 405 405 if (!keys.contains(strMenuHelpActionType, Qt::CaseInsensitive)) 406 return MenuHelpActionType_Invalid;406 return UIExtraDataMetaDefs::MenuHelpActionType_Invalid; 407 407 /* Corresponding type for known words: */ 408 408 return values.at(keys.indexOf(QRegExp(strMenuHelpActionType, Qt::CaseInsensitive))); … … 410 410 411 411 #ifdef Q_WS_MAC 412 /* QString <= MenuApplicationActionType: */413 template<> QString toInternalString(const MenuApplicationActionType &runtimeMenuApplicationActionType)412 /* QString <= UIExtraDataMetaDefs::MenuApplicationActionType: */ 413 template<> QString toInternalString(const UIExtraDataMetaDefs::MenuApplicationActionType &runtimeMenuApplicationActionType) 414 414 { 415 415 QString strResult; 416 416 switch (runtimeMenuApplicationActionType) 417 417 { 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; 422 422 default: 423 423 { … … 429 429 } 430 430 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: */ 432 template<> 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; 441 441 /* Invalid type for unknown words: */ 442 442 if (!keys.contains(strRuntimeMenuApplicationActionType, Qt::CaseInsensitive)) 443 return MenuApplicationActionType_Invalid;443 return UIExtraDataMetaDefs::MenuApplicationActionType_Invalid; 444 444 /* Corresponding type for known words: */ 445 445 return values.at(keys.indexOf(QRegExp(strRuntimeMenuApplicationActionType, Qt::CaseInsensitive))); … … 447 447 #endif /* Q_WS_MAC */ 448 448 449 /* QString <= RuntimeMenuType: */450 template<> QString toInternalString(const RuntimeMenuType &runtimeMenuType)449 /* QString <= UIExtraDataMetaDefs::RuntimeMenuType: */ 450 template<> QString toInternalString(const UIExtraDataMetaDefs::RuntimeMenuType &runtimeMenuType) 451 451 { 452 452 QString strResult; 453 453 switch (runtimeMenuType) 454 454 { 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; 458 458 #ifdef VBOX_WITH_DEBUGGER_GUI 459 case RuntimeMenuType_Debug: strResult = "Debug"; break;459 case UIExtraDataMetaDefs::RuntimeMenuType_Debug: strResult = "Debug"; break; 460 460 #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; 463 463 default: 464 464 { … … 470 470 } 471 471 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: */ 473 template<> 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; 481 481 #ifdef VBOX_WITH_DEBUGGER_GUI 482 keys << "Debug"; values << RuntimeMenuType_Debug;482 keys << "Debug"; values << UIExtraDataMetaDefs::RuntimeMenuType_Debug; 483 483 #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; 486 486 /* Invalid type for unknown words: */ 487 487 if (!keys.contains(strRuntimeMenuType, Qt::CaseInsensitive)) 488 return RuntimeMenuType_Invalid;488 return UIExtraDataMetaDefs::RuntimeMenuType_Invalid; 489 489 /* Corresponding type for known words: */ 490 490 return values.at(keys.indexOf(QRegExp(strRuntimeMenuType, Qt::CaseInsensitive))); 491 491 } 492 492 493 /* QString <= RuntimeMenuMachineActionType: */494 template<> QString toInternalString(const RuntimeMenuMachineActionType &runtimeMenuMachineActionType)493 /* QString <= UIExtraDataMetaDefs::RuntimeMenuMachineActionType: */ 494 template<> QString toInternalString(const UIExtraDataMetaDefs::RuntimeMenuMachineActionType &runtimeMenuMachineActionType) 495 495 { 496 496 QString strResult; 497 497 switch (runtimeMenuMachineActionType) 498 498 { 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; 508 508 #ifdef Q_WS_X11 509 case RuntimeMenuMachineActionType_TypeCABS: strResult = "TypeCABS"; break;509 case UIExtraDataMetaDefs::RuntimeMenuMachineActionType_TypeCABS: strResult = "TypeCABS"; break; 510 510 #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; 516 516 #ifndef Q_WS_MAC 517 case RuntimeMenuMachineActionType_Close: strResult = "Close"; break;517 case UIExtraDataMetaDefs::RuntimeMenuMachineActionType_Close: strResult = "Close"; break; 518 518 #endif /* !Q_WS_MAC */ 519 case RuntimeMenuMachineActionType_All: strResult = "All"; break;519 case UIExtraDataMetaDefs::RuntimeMenuMachineActionType_All: strResult = "All"; break; 520 520 default: 521 521 { … … 527 527 } 528 528 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: */ 530 template<> 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; 544 544 #ifdef Q_WS_X11 545 keys << "TypeCABS"; values << RuntimeMenuMachineActionType_TypeCABS;545 keys << "TypeCABS"; values << UIExtraDataMetaDefs::RuntimeMenuMachineActionType_TypeCABS; 546 546 #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; 552 552 #ifndef Q_WS_MAC 553 keys << "Close"; values << RuntimeMenuMachineActionType_Close;553 keys << "Close"; values << UIExtraDataMetaDefs::RuntimeMenuMachineActionType_Close; 554 554 #endif /* !Q_WS_MAC */ 555 keys << "All"; values << RuntimeMenuMachineActionType_All;555 keys << "All"; values << UIExtraDataMetaDefs::RuntimeMenuMachineActionType_All; 556 556 /* Invalid type for unknown words: */ 557 557 if (!keys.contains(strRuntimeMenuMachineActionType, Qt::CaseInsensitive)) 558 return RuntimeMenuMachineActionType_Invalid;558 return UIExtraDataMetaDefs::RuntimeMenuMachineActionType_Invalid; 559 559 /* Corresponding type for known words: */ 560 560 return values.at(keys.indexOf(QRegExp(strRuntimeMenuMachineActionType, Qt::CaseInsensitive))); 561 561 } 562 562 563 /* QString <= RuntimeMenuViewActionType: */564 template<> QString toInternalString(const RuntimeMenuViewActionType &runtimeMenuViewActionType)563 /* QString <= UIExtraDataMetaDefs::RuntimeMenuViewActionType: */ 564 template<> QString toInternalString(const UIExtraDataMetaDefs::RuntimeMenuViewActionType &runtimeMenuViewActionType) 565 565 { 566 566 QString strResult; 567 567 switch (runtimeMenuViewActionType) 568 568 { 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; 580 580 default: 581 581 { … … 587 587 } 588 588 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: */ 590 template<> 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; 606 606 /* Invalid type for unknown words: */ 607 607 if (!keys.contains(strRuntimeMenuViewActionType, Qt::CaseInsensitive)) 608 return RuntimeMenuViewActionType_Invalid;608 return UIExtraDataMetaDefs::RuntimeMenuViewActionType_Invalid; 609 609 /* Corresponding type for known words: */ 610 610 return values.at(keys.indexOf(QRegExp(strRuntimeMenuViewActionType, Qt::CaseInsensitive))); 611 611 } 612 612 613 /* QString <= RuntimeMenuDevicesActionType: */614 template<> QString toInternalString(const RuntimeMenuDevicesActionType &runtimeMenuDevicesActionType)613 /* QString <= UIExtraDataMetaDefs::RuntimeMenuDevicesActionType: */ 614 template<> QString toInternalString(const UIExtraDataMetaDefs::RuntimeMenuDevicesActionType &runtimeMenuDevicesActionType) 615 615 { 616 616 QString strResult; 617 617 switch (runtimeMenuDevicesActionType) 618 618 { 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; 638 638 default: 639 639 { … … 645 645 } 646 646 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: */ 648 template<> 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; 672 672 /* Invalid type for unknown words: */ 673 673 if (!keys.contains(strRuntimeMenuDevicesActionType, Qt::CaseInsensitive)) 674 return RuntimeMenuDevicesActionType_Invalid;674 return UIExtraDataMetaDefs::RuntimeMenuDevicesActionType_Invalid; 675 675 /* Corresponding type for known words: */ 676 676 return values.at(keys.indexOf(QRegExp(strRuntimeMenuDevicesActionType, Qt::CaseInsensitive))); … … 678 678 679 679 #ifdef VBOX_WITH_DEBUGGER_GUI 680 /* QString <= RuntimeMenuDebuggerActionType: */681 template<> QString toInternalString(const RuntimeMenuDebuggerActionType &runtimeMenuDebuggerActionType)680 /* QString <= UIExtraDataMetaDefs::RuntimeMenuDebuggerActionType: */ 681 template<> QString toInternalString(const UIExtraDataMetaDefs::RuntimeMenuDebuggerActionType &runtimeMenuDebuggerActionType) 682 682 { 683 683 QString strResult; 684 684 switch (runtimeMenuDebuggerActionType) 685 685 { 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; 691 691 default: 692 692 { … … 698 698 } 699 699 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: */ 701 template<> 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; 711 711 /* Invalid type for unknown words: */ 712 712 if (!keys.contains(strRuntimeMenuDebuggerActionType, Qt::CaseInsensitive)) 713 return RuntimeMenuDebuggerActionType_Invalid;713 return UIExtraDataMetaDefs::RuntimeMenuDebuggerActionType_Invalid; 714 714 /* Corresponding type for known words: */ 715 715 return values.at(keys.indexOf(QRegExp(strRuntimeMenuDebuggerActionType, Qt::CaseInsensitive))); -
trunk/src/VBox/Frontends/VirtualBox/src/extradata/UIExtraDataDefs.h
r52220 r52459 264 264 } 265 265 266 /** Extra-data meta definitions. */ 267 class 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 282 public: 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 }; 266 410 267 411 /** Common UI: Global settings page types. */ … … 360 504 361 505 362 /** Menu "Help": Action types. */363 enum MenuHelpActionType364 {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_MANAGER370 MenuHelpActionType_NetworkAccessManager = RT_BIT(3),371 MenuHelpActionType_CheckForUpdates = RT_BIT(4),372 #endif /* VBOX_GUI_WITH_NETWORK_MANAGER */373 #ifndef Q_WS_MAC374 MenuHelpActionType_About = RT_BIT(5),375 MenuHelpActionType_Preferences = RT_BIT(6),376 #endif /* !Q_WS_MAC */377 MenuHelpActionType_All = 0xFFFF378 };379 380 #ifdef Q_WS_MAC381 /** Menu "Application": Action types. */382 enum MenuApplicationActionType383 {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 = 0xFFFF389 };390 #endif /* Q_WS_MAC */391 392 /** Runtime UI: Menu types. */393 enum RuntimeMenuType394 {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_GUI400 RuntimeMenuType_Debug = RT_BIT(3),401 #endif /* VBOX_WITH_DEBUGGER_GUI */402 RuntimeMenuType_Help = RT_BIT(4),403 RuntimeMenuType_All = 0xFF404 };405 406 /** Runtime UI: Menu "Machine": Action types. */407 enum RuntimeMenuMachineActionType408 {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_X11420 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_MAC428 RuntimeMenuMachineActionType_Close = RT_BIT(15),429 #endif /* !Q_WS_MAC */430 RuntimeMenuMachineActionType_All = 0xFFFF431 };432 433 /** Runtime UI: Menu "View": Action types. */434 enum RuntimeMenuViewActionType435 {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 = 0xFFFF448 };449 450 /** Runtime UI: Menu "Devices": Action types. */451 enum RuntimeMenuDevicesActionType452 {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 = 0xFFFF473 };474 475 #ifdef VBOX_WITH_DEBUGGER_GUI476 /** Runtime UI: Menu "Debugger": Action types. */477 enum RuntimeMenuDebuggerActionType478 {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 = 0xFFFF485 };486 #endif /* VBOX_WITH_DEBUGGER_GUI */487 488 506 /** Runtime UI: Visual-state types. */ 489 507 enum UIVisualStateType -
trunk/src/VBox/Frontends/VirtualBox/src/extradata/UIExtraDataManager.cpp
r52218 r52459 2488 2488 } 2489 2489 2490 RuntimeMenuType UIExtraDataManager::restrictedRuntimeMenuTypes(const QString &strID)2490 UIExtraDataMetaDefs::RuntimeMenuType UIExtraDataManager::restrictedRuntimeMenuTypes(const QString &strID) 2491 2491 { 2492 2492 /* Prepare result: */ 2493 RuntimeMenuType result =RuntimeMenuType_Invalid;2493 UIExtraDataMetaDefs::RuntimeMenuType result = UIExtraDataMetaDefs::RuntimeMenuType_Invalid; 2494 2494 /* Get restricted runtime-menu-types: */ 2495 2495 foreach (const QString &strValue, extraDataStringList(GUI_RestrictedRuntimeMenus, strID)) 2496 2496 { 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); 2500 2500 } 2501 2501 /* Return result: */ … … 2504 2504 2505 2505 #ifdef Q_WS_MAC 2506 MenuApplicationActionType UIExtraDataManager::restrictedRuntimeMenuApplicationActionTypes(const QString &strID)2506 UIExtraDataMetaDefs::MenuApplicationActionType UIExtraDataManager::restrictedRuntimeMenuApplicationActionTypes(const QString &strID) 2507 2507 { 2508 2508 /* Prepare result: */ 2509 MenuApplicationActionType result =MenuApplicationActionType_Invalid;2509 UIExtraDataMetaDefs::MenuApplicationActionType result = UIExtraDataMetaDefs::MenuApplicationActionType_Invalid; 2510 2510 /* Get restricted runtime-application-menu action-types: */ 2511 2511 foreach (const QString &strValue, extraDataStringList(GUI_RestrictedRuntimeApplicationMenuActions, strID)) 2512 2512 { 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); 2516 2516 } 2517 2517 /* Return result: */ … … 2520 2520 #endif /* Q_WS_MAC */ 2521 2521 2522 RuntimeMenuMachineActionType UIExtraDataManager::restrictedRuntimeMenuMachineActionTypes(const QString &strID)2522 UIExtraDataMetaDefs::RuntimeMenuMachineActionType UIExtraDataManager::restrictedRuntimeMenuMachineActionTypes(const QString &strID) 2523 2523 { 2524 2524 /* Prepare result: */ 2525 RuntimeMenuMachineActionType result =RuntimeMenuMachineActionType_Invalid;2525 UIExtraDataMetaDefs::RuntimeMenuMachineActionType result = UIExtraDataMetaDefs::RuntimeMenuMachineActionType_Invalid; 2526 2526 /* Get restricted runtime-machine-menu action-types: */ 2527 2527 foreach (const QString &strValue, extraDataStringList(GUI_RestrictedRuntimeMachineMenuActions, strID)) 2528 2528 { 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); 2532 2532 } 2533 2533 /* Return result: */ … … 2535 2535 } 2536 2536 2537 RuntimeMenuViewActionType UIExtraDataManager::restrictedRuntimeMenuViewActionTypes(const QString &strID)2537 UIExtraDataMetaDefs::RuntimeMenuViewActionType UIExtraDataManager::restrictedRuntimeMenuViewActionTypes(const QString &strID) 2538 2538 { 2539 2539 /* Prepare result: */ 2540 RuntimeMenuViewActionType result =RuntimeMenuViewActionType_Invalid;2540 UIExtraDataMetaDefs::RuntimeMenuViewActionType result = UIExtraDataMetaDefs::RuntimeMenuViewActionType_Invalid; 2541 2541 /* Get restricted runtime-view-menu action-types: */ 2542 2542 foreach (const QString &strValue, extraDataStringList(GUI_RestrictedRuntimeViewMenuActions, strID)) 2543 2543 { 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); 2547 2547 } 2548 2548 /* Return result: */ … … 2550 2550 } 2551 2551 2552 RuntimeMenuDevicesActionType UIExtraDataManager::restrictedRuntimeMenuDevicesActionTypes(const QString &strID)2552 UIExtraDataMetaDefs::RuntimeMenuDevicesActionType UIExtraDataManager::restrictedRuntimeMenuDevicesActionTypes(const QString &strID) 2553 2553 { 2554 2554 /* Prepare result: */ 2555 RuntimeMenuDevicesActionType result =RuntimeMenuDevicesActionType_Invalid;2555 UIExtraDataMetaDefs::RuntimeMenuDevicesActionType result = UIExtraDataMetaDefs::RuntimeMenuDevicesActionType_Invalid; 2556 2556 /* Get restricted runtime-devices-menu action-types: */ 2557 2557 foreach (const QString &strValue, extraDataStringList(GUI_RestrictedRuntimeDevicesMenuActions, strID)) 2558 2558 { 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); 2562 2562 } 2563 2563 /* Return result: */ … … 2566 2566 2567 2567 #ifdef VBOX_WITH_DEBUGGER_GUI 2568 RuntimeMenuDebuggerActionType UIExtraDataManager::restrictedRuntimeMenuDebuggerActionTypes(const QString &strID)2568 UIExtraDataMetaDefs::RuntimeMenuDebuggerActionType UIExtraDataManager::restrictedRuntimeMenuDebuggerActionTypes(const QString &strID) 2569 2569 { 2570 2570 /* Prepare result: */ 2571 RuntimeMenuDebuggerActionType result =RuntimeMenuDebuggerActionType_Invalid;2571 UIExtraDataMetaDefs::RuntimeMenuDebuggerActionType result = UIExtraDataMetaDefs::RuntimeMenuDebuggerActionType_Invalid; 2572 2572 /* Get restricted runtime-debugger-menu action-types: */ 2573 2573 foreach (const QString &strValue, extraDataStringList(GUI_RestrictedRuntimeDebuggerMenuActions, strID)) 2574 2574 { 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); 2578 2578 } 2579 2579 /* Return result: */ … … 2582 2582 #endif /* VBOX_WITH_DEBUGGER_GUI */ 2583 2583 2584 MenuHelpActionType UIExtraDataManager::restrictedRuntimeMenuHelpActionTypes(const QString &strID)2584 UIExtraDataMetaDefs::MenuHelpActionType UIExtraDataManager::restrictedRuntimeMenuHelpActionTypes(const QString &strID) 2585 2585 { 2586 2586 /* Prepare result: */ 2587 MenuHelpActionType result =MenuHelpActionType_Invalid;2587 UIExtraDataMetaDefs::MenuHelpActionType result = UIExtraDataMetaDefs::MenuHelpActionType_Invalid; 2588 2588 /* Get restricted runtime-help-menu action-types: */ 2589 2589 foreach (const QString &strValue, extraDataStringList(GUI_RestrictedRuntimeHelpMenuActions, strID)) 2590 2590 { 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); 2594 2594 } 2595 2595 /* Return result: */ -
trunk/src/VBox/Frontends/VirtualBox/src/extradata/UIExtraDataManager.h
r52218 r52459 285 285 286 286 /** Returns restricted Runtime UI menu types. */ 287 RuntimeMenuType restrictedRuntimeMenuTypes(const QString &strID);288 287 UIExtraDataMetaDefs::RuntimeMenuType restrictedRuntimeMenuTypes(const QString &strID); 288 #ifdef Q_WS_MAC 289 289 /** Mac OS X: Returns restricted Runtime UI action types for Application menu. */ 290 MenuApplicationActionType restrictedRuntimeMenuApplicationActionTypes(const QString &strID);291 290 UIExtraDataMetaDefs::MenuApplicationActionType restrictedRuntimeMenuApplicationActionTypes(const QString &strID); 291 #endif /* Q_WS_MAC */ 292 292 /** Returns restricted Runtime UI action types for Machine menu. */ 293 RuntimeMenuMachineActionType restrictedRuntimeMenuMachineActionTypes(const QString &strID);293 UIExtraDataMetaDefs::RuntimeMenuMachineActionType restrictedRuntimeMenuMachineActionTypes(const QString &strID); 294 294 /** Returns restricted Runtime UI action types for View menu. */ 295 RuntimeMenuViewActionType restrictedRuntimeMenuViewActionTypes(const QString &strID);295 UIExtraDataMetaDefs::RuntimeMenuViewActionType restrictedRuntimeMenuViewActionTypes(const QString &strID); 296 296 /** Returns restricted Runtime UI action types for Devices menu. */ 297 RuntimeMenuDevicesActionType restrictedRuntimeMenuDevicesActionTypes(const QString &strID);298 297 UIExtraDataMetaDefs::RuntimeMenuDevicesActionType restrictedRuntimeMenuDevicesActionTypes(const QString &strID); 298 #ifdef VBOX_WITH_DEBUGGER_GUI 299 299 /** Returns restricted Runtime UI action types for Debugger menu. */ 300 RuntimeMenuDebuggerActionType restrictedRuntimeMenuDebuggerActionTypes(const QString &strID);301 300 UIExtraDataMetaDefs::RuntimeMenuDebuggerActionType restrictedRuntimeMenuDebuggerActionTypes(const QString &strID); 301 #endif /* VBOX_WITH_DEBUGGER_GUI */ 302 302 /** Returns restricted Runtime UI action types for Help menu. */ 303 MenuHelpActionType restrictedRuntimeMenuHelpActionTypes(const QString &strID);303 UIExtraDataMetaDefs::MenuHelpActionType restrictedRuntimeMenuHelpActionTypes(const QString &strID); 304 304 305 305 /** Returns restricted Runtime UI visual-states. */ -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIActionPool.cpp
r52220 r52459 620 620 } 621 621 622 bool UIActionPool::isAllowedInMenuHelp( MenuHelpActionType type) const623 { 624 foreach (const MenuHelpActionType &restriction, m_restrictedActionsMenuHelp.values())622 bool UIActionPool::isAllowedInMenuHelp(UIExtraDataMetaDefs::MenuHelpActionType type) const 623 { 624 foreach (const UIExtraDataMetaDefs::MenuHelpActionType &restriction, m_restrictedActionsMenuHelp.values()) 625 625 if (restriction & type) 626 626 return false; … … 628 628 } 629 629 630 void UIActionPool::setRestrictionForMenuHelp(UIActionRestrictionLevel level, MenuHelpActionType restriction)630 void UIActionPool::setRestrictionForMenuHelp(UIActionRestrictionLevel level, UIExtraDataMetaDefs::MenuHelpActionType restriction) 631 631 { 632 632 m_restrictedActionsMenuHelp[level] = restriction; … … 635 635 636 636 #ifdef Q_WS_MAC 637 bool UIActionPool::isAllowedInMenuApplication( MenuApplicationActionType type) const638 { 639 foreach (const MenuApplicationActionType &restriction, m_restrictedActionsMenuApplication.values())637 bool UIActionPool::isAllowedInMenuApplication(UIExtraDataMetaDefs::MenuApplicationActionType type) const 638 { 639 foreach (const UIExtraDataMetaDefs::MenuApplicationActionType &restriction, m_restrictedActionsMenuApplication.values()) 640 640 if (restriction & type) 641 641 return false; … … 643 643 } 644 644 645 void UIActionPool::setRestrictionForMenuApplication(UIActionRestrictionLevel level, MenuApplicationActionType restriction)645 void UIActionPool::setRestrictionForMenuApplication(UIActionRestrictionLevel level, UIExtraDataMetaDefs::MenuApplicationActionType restriction) 646 646 { 647 647 m_restrictedActionsMenuApplication[level] = restriction; … … 766 766 if (!fUpdateAllowed) 767 767 { 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); 770 770 } 771 771 #endif /* VBOX_GUI_WITH_NETWORK_MANAGER */ … … 795 795 796 796 /* 'Contents' action: */ 797 const bool fAllowToShowActionContents = isAllowedInMenuHelp( MenuHelpActionType_Contents);797 const bool fAllowToShowActionContents = isAllowedInMenuHelp(UIExtraDataMetaDefs::MenuHelpActionType_Contents); 798 798 action(UIActionIndex_Simple_Contents)->setEnabled(fAllowToShowActionContents); 799 799 if (fAllowToShowActionContents) … … 806 806 807 807 /* '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); 810 810 if (fAllowToShowActionWebSite) 811 811 { … … 825 825 826 826 /* 'Reset Warnings' action: */ 827 const bool fAllowToShowActionResetWarnings = isAllowedInMenuHelp( MenuHelpActionType_ResetWarnings);827 const bool fAllowToShowActionResetWarnings = isAllowedInMenuHelp(UIExtraDataMetaDefs::MenuHelpActionType_ResetWarnings); 828 828 action(UIActionIndex_Simple_ResetWarnings)->setEnabled(fAllowToShowActionResetWarnings); 829 829 if (fAllowToShowActionResetWarnings) … … 847 847 848 848 /* 'Network Manager' action: */ 849 const bool fAllowToShowActionNetworkManager = isAllowedInMenuHelp( MenuHelpActionType_NetworkAccessManager);849 const bool fAllowToShowActionNetworkManager = isAllowedInMenuHelp(UIExtraDataMetaDefs::MenuHelpActionType_NetworkAccessManager); 850 850 action(UIActionIndex_Simple_NetworkAccessManager)->setEnabled(fAllowToShowActionNetworkManager); 851 851 if (fAllowToShowActionNetworkManager) … … 863 863 { 864 864 /* 'Check for Updates' action: */ 865 const bool fAllowToShowActionCheckForUpdates = isAllowedInMenuHelp( MenuHelpActionType_CheckForUpdates);865 const bool fAllowToShowActionCheckForUpdates = isAllowedInMenuHelp(UIExtraDataMetaDefs::MenuHelpActionType_CheckForUpdates); 866 866 action(UIActionIndex_Simple_NetworkAccessManager)->setEnabled(fAllowToShowActionCheckForUpdates); 867 867 if (fAllowToShowActionCheckForUpdates) … … 887 887 const bool fAllowToShowActionAbout = 888 888 #ifdef Q_WS_MAC 889 isAllowedInMenuApplication( MenuApplicationActionType_About);889 isAllowedInMenuApplication(UIExtraDataMetaDefs::MenuApplicationActionType_About); 890 890 #else /* !Q_WS_MAC */ 891 isAllowedInMenuHelp( MenuHelpActionType_About);891 isAllowedInMenuHelp(UIExtraDataMetaDefs::MenuHelpActionType_About); 892 892 #endif /* Q_WS_MAC */ 893 893 action(UIActionIndex_Simple_About)->setEnabled(fAllowToShowActionAbout); … … 905 905 const bool fAllowToShowActionPreferences = 906 906 #ifdef Q_WS_MAC 907 isAllowedInMenuApplication( MenuApplicationActionType_Preferences);907 isAllowedInMenuApplication(UIExtraDataMetaDefs::MenuApplicationActionType_Preferences); 908 908 #else /* !Q_WS_MAC */ 909 isAllowedInMenuHelp( MenuHelpActionType_Preferences);909 isAllowedInMenuHelp(UIExtraDataMetaDefs::MenuHelpActionType_Preferences); 910 910 #endif /* Q_WS_MAC */ 911 911 action(UIActionIndex_Simple_Preferences)->setEnabled(fAllowToShowActionPreferences); -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIActionPool.h
r52218 r52459 323 323 324 324 /** 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; 326 326 /** Defines 'Help' menu @a restriction for passed @a level. */ 327 void setRestrictionForMenuHelp(UIActionRestrictionLevel level, MenuHelpActionType restriction);327 void setRestrictionForMenuHelp(UIActionRestrictionLevel level, UIExtraDataMetaDefs::MenuHelpActionType restriction); 328 328 329 329 #ifdef Q_WS_MAC 330 330 /** 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; 332 332 /** Defines 'Application' menu @a restriction for passed @a level. */ 333 void setRestrictionForMenuApplication(UIActionRestrictionLevel level, MenuApplicationActionType restriction);333 void setRestrictionForMenuApplication(UIActionRestrictionLevel level, UIExtraDataMetaDefs::MenuApplicationActionType restriction); 334 334 #endif /* Q_WS_MAC */ 335 335 … … 401 401 402 402 /** Holds restricted action types of the Help menu. */ 403 QMap<UIActionRestrictionLevel, MenuHelpActionType> m_restrictedActionsMenuHelp;403 QMap<UIActionRestrictionLevel, UIExtraDataMetaDefs::MenuHelpActionType> m_restrictedActionsMenuHelp; 404 404 #ifdef Q_WS_MAC 405 405 /** Holds restricted action types of the Application menu. */ 406 QMap<UIActionRestrictionLevel, MenuApplicationActionType> m_restrictedActionsMenuApplication;406 QMap<UIActionRestrictionLevel, UIExtraDataMetaDefs::MenuApplicationActionType> m_restrictedActionsMenuApplication; 407 407 #endif /* Q_WS_MAC */ 408 408 }; -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIActionPoolRuntime.cpp
r52347 r52459 1300 1300 } 1301 1301 1302 bool UIActionPoolRuntime::isAllowedInMenuBar( RuntimeMenuType type) const1303 { 1304 foreach (const RuntimeMenuType &restriction, m_restrictedMenus.values())1302 bool UIActionPoolRuntime::isAllowedInMenuBar(UIExtraDataMetaDefs::RuntimeMenuType type) const 1303 { 1304 foreach (const UIExtraDataMetaDefs::RuntimeMenuType &restriction, m_restrictedMenus.values()) 1305 1305 if (restriction & type) 1306 1306 return false; … … 1308 1308 } 1309 1309 1310 void UIActionPoolRuntime::setRestrictionForMenuBar(UIActionRestrictionLevel level, RuntimeMenuType restriction)1310 void UIActionPoolRuntime::setRestrictionForMenuBar(UIActionRestrictionLevel level, UIExtraDataMetaDefs::RuntimeMenuType restriction) 1311 1311 { 1312 1312 m_restrictedMenus[level] = restriction; … … 1314 1314 } 1315 1315 1316 bool UIActionPoolRuntime::isAllowedInMenuMachine( RuntimeMenuMachineActionType type) const1317 { 1318 foreach (const RuntimeMenuMachineActionType &restriction, m_restrictedActionsMenuMachine.values())1316 bool UIActionPoolRuntime::isAllowedInMenuMachine(UIExtraDataMetaDefs::RuntimeMenuMachineActionType type) const 1317 { 1318 foreach (const UIExtraDataMetaDefs::RuntimeMenuMachineActionType &restriction, m_restrictedActionsMenuMachine.values()) 1319 1319 if (restriction & type) 1320 1320 return false; … … 1322 1322 } 1323 1323 1324 void UIActionPoolRuntime::setRestrictionForMenuMachine(UIActionRestrictionLevel level, RuntimeMenuMachineActionType restriction)1324 void UIActionPoolRuntime::setRestrictionForMenuMachine(UIActionRestrictionLevel level, UIExtraDataMetaDefs::RuntimeMenuMachineActionType restriction) 1325 1325 { 1326 1326 m_restrictedActionsMenuMachine[level] = restriction; … … 1328 1328 } 1329 1329 1330 bool UIActionPoolRuntime::isAllowedInMenuView( RuntimeMenuViewActionType type) const1331 { 1332 foreach (const RuntimeMenuViewActionType &restriction, m_restrictedActionsMenuView.values())1330 bool UIActionPoolRuntime::isAllowedInMenuView(UIExtraDataMetaDefs::RuntimeMenuViewActionType type) const 1331 { 1332 foreach (const UIExtraDataMetaDefs::RuntimeMenuViewActionType &restriction, m_restrictedActionsMenuView.values()) 1333 1333 if (restriction & type) 1334 1334 return false; … … 1336 1336 } 1337 1337 1338 void UIActionPoolRuntime::setRestrictionForMenuView(UIActionRestrictionLevel level, RuntimeMenuViewActionType restriction)1338 void UIActionPoolRuntime::setRestrictionForMenuView(UIActionRestrictionLevel level, UIExtraDataMetaDefs::RuntimeMenuViewActionType restriction) 1339 1339 { 1340 1340 m_restrictedActionsMenuView[level] = restriction; … … 1342 1342 } 1343 1343 1344 bool UIActionPoolRuntime::isAllowedInMenuDevices( RuntimeMenuDevicesActionType type) const1345 { 1346 foreach (const RuntimeMenuDevicesActionType &restriction, m_restrictedActionsMenuDevices.values())1344 bool UIActionPoolRuntime::isAllowedInMenuDevices(UIExtraDataMetaDefs::RuntimeMenuDevicesActionType type) const 1345 { 1346 foreach (const UIExtraDataMetaDefs::RuntimeMenuDevicesActionType &restriction, m_restrictedActionsMenuDevices.values()) 1347 1347 if (restriction & type) 1348 1348 return false; … … 1350 1350 } 1351 1351 1352 void UIActionPoolRuntime::setRestrictionForMenuDevices(UIActionRestrictionLevel level, RuntimeMenuDevicesActionType restriction)1352 void UIActionPoolRuntime::setRestrictionForMenuDevices(UIActionRestrictionLevel level, UIExtraDataMetaDefs::RuntimeMenuDevicesActionType restriction) 1353 1353 { 1354 1354 m_restrictedActionsMenuDevices[level] = restriction; … … 1357 1357 1358 1358 #ifdef VBOX_WITH_DEBUGGER_GUI 1359 bool UIActionPoolRuntime::isAllowedInMenuDebug( RuntimeMenuDebuggerActionType type) const1360 { 1361 foreach (const RuntimeMenuDebuggerActionType &restriction, m_restrictedActionsMenuDebug.values())1359 bool UIActionPoolRuntime::isAllowedInMenuDebug(UIExtraDataMetaDefs::RuntimeMenuDebuggerActionType type) const 1360 { 1361 foreach (const UIExtraDataMetaDefs::RuntimeMenuDebuggerActionType &restriction, m_restrictedActionsMenuDebug.values()) 1362 1362 if (restriction & type) 1363 1363 return false; … … 1365 1365 } 1366 1366 1367 void UIActionPoolRuntime::setRestrictionForMenuDebugger(UIActionRestrictionLevel level, RuntimeMenuDebuggerActionType restriction)1367 void UIActionPoolRuntime::setRestrictionForMenuDebugger(UIActionRestrictionLevel level, UIExtraDataMetaDefs::RuntimeMenuDebuggerActionType restriction) 1368 1368 { 1369 1369 m_restrictedActionsMenuDebug[level] = restriction; … … 1555 1555 { 1556 1556 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); 1559 1559 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); 1562 1562 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); 1565 1565 } 1566 1566 … … 1569 1569 if (!fReconfigurationAllowed) 1570 1570 { 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); 1585 1585 } 1586 1586 … … 1589 1589 if (!fSnapshotOperationsAllowed) 1590 1590 { 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); 1593 1593 } 1594 1594 … … 1598 1598 if (!fExtensionPackOperationsAllowed) 1599 1599 { 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); 1602 1602 } 1603 1603 … … 1612 1612 { 1613 1613 #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); 1616 1616 #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); 1619 1619 #endif /* !Q_WS_MAC */ 1620 1620 } … … 1641 1641 1642 1642 /* 'Machine' menu: */ 1643 const bool fAllowToShowMenuMachine = isAllowedInMenuBar( RuntimeMenuType_Machine);1643 const bool fAllowToShowMenuMachine = isAllowedInMenuBar(UIExtraDataMetaDefs::RuntimeMenuType_Machine); 1644 1644 action(UIActionIndexRT_M_Machine)->setVisible(fAllowToShowMenuMachine); 1645 1645 if (fAllowToShowMenuMachine) … … 1648 1648 1649 1649 /* 'View' menu: */ 1650 const bool fAllowToShowMenuView = isAllowedInMenuBar( RuntimeMenuType_View);1650 const bool fAllowToShowMenuView = isAllowedInMenuBar(UIExtraDataMetaDefs::RuntimeMenuType_View); 1651 1651 action(UIActionIndexRT_M_View)->setVisible(fAllowToShowMenuView); 1652 1652 action(UIActionIndexRT_M_ViewPopup)->setVisible(fAllowToShowMenuView); … … 1657 1657 1658 1658 /* 'Devices' menu: */ 1659 const bool fAllowToShowMenuDevices = isAllowedInMenuBar( RuntimeMenuType_Devices);1659 const bool fAllowToShowMenuDevices = isAllowedInMenuBar(UIExtraDataMetaDefs::RuntimeMenuType_Devices); 1660 1660 action(UIActionIndexRT_M_Devices)->setVisible(fAllowToShowMenuDevices); 1661 1661 if (fAllowToShowMenuDevices) … … 1665 1665 #ifdef VBOX_WITH_DEBUGGER_GUI 1666 1666 /* 'Debug' menu: */ 1667 const bool fAllowToShowMenuDebug = isAllowedInMenuBar( RuntimeMenuType_Debug);1667 const bool fAllowToShowMenuDebug = isAllowedInMenuBar(UIExtraDataMetaDefs::RuntimeMenuType_Debug); 1668 1668 action(UIActionIndexRT_M_Debug)->setVisible(fAllowToShowMenuDebug); 1669 1669 if (fAllowToShowMenuDebug) … … 1673 1673 1674 1674 /* 'Help' menu: */ 1675 const bool fAllowToShowMenuHelp = isAllowedInMenuBar( RuntimeMenuType_Help);1675 const bool fAllowToShowMenuHelp = isAllowedInMenuBar(UIExtraDataMetaDefs::RuntimeMenuType_Help); 1676 1676 action(UIActionIndex_Menu_Help)->setVisible(fAllowToShowMenuHelp); 1677 1677 if (fAllowToShowMenuHelp) … … 1693 1693 1694 1694 /* 'Settings Dialog' action: */ 1695 const bool fAllowToShowActionSettingsDialog = isAllowedInMenuMachine( RuntimeMenuMachineActionType_SettingsDialog);1695 const bool fAllowToShowActionSettingsDialog = isAllowedInMenuMachine(UIExtraDataMetaDefs::RuntimeMenuMachineActionType_SettingsDialog); 1696 1696 action(UIActionIndexRT_M_Machine_S_Settings)->setEnabled(fAllowToShowActionSettingsDialog); 1697 1697 if (fAllowToShowActionSettingsDialog) … … 1702 1702 1703 1703 /* 'Take Snapshot' action: */ 1704 const bool fAllowToShowActionTakeSnapshot = isAllowedInMenuMachine( RuntimeMenuMachineActionType_TakeSnapshot);1704 const bool fAllowToShowActionTakeSnapshot = isAllowedInMenuMachine(UIExtraDataMetaDefs::RuntimeMenuMachineActionType_TakeSnapshot); 1705 1705 action(UIActionIndexRT_M_Machine_S_TakeSnapshot)->setEnabled(fAllowToShowActionTakeSnapshot); 1706 1706 if (fAllowToShowActionTakeSnapshot) … … 1711 1711 1712 1712 /* 'Take Screenshot' action: */ 1713 const bool fAllowToShowActionTakeScreenshot = isAllowedInMenuMachine( RuntimeMenuMachineActionType_TakeScreenshot);1713 const bool fAllowToShowActionTakeScreenshot = isAllowedInMenuMachine(UIExtraDataMetaDefs::RuntimeMenuMachineActionType_TakeScreenshot); 1714 1714 action(UIActionIndexRT_M_Machine_S_TakeScreenshot)->setEnabled(fAllowToShowActionTakeScreenshot); 1715 1715 if (fAllowToShowActionTakeScreenshot) … … 1720 1720 1721 1721 /* 'Information Dialog' action: */ 1722 const bool fAllowToShowActionInformationDialog = isAllowedInMenuMachine( RuntimeMenuMachineActionType_InformationDialog);1722 const bool fAllowToShowActionInformationDialog = isAllowedInMenuMachine(UIExtraDataMetaDefs::RuntimeMenuMachineActionType_InformationDialog); 1723 1723 action(UIActionIndexRT_M_Machine_S_ShowInformation)->setEnabled(fAllowToShowActionInformationDialog); 1724 1724 if (fAllowToShowActionInformationDialog) … … 1737 1737 1738 1738 /* 'Keyboard' submenu: */ 1739 const bool fAllowToShowActionKeyboard = isAllowedInMenuMachine( RuntimeMenuMachineActionType_Keyboard);1739 const bool fAllowToShowActionKeyboard = isAllowedInMenuMachine(UIExtraDataMetaDefs::RuntimeMenuMachineActionType_Keyboard); 1740 1740 action(UIActionIndexRT_M_Machine_M_Keyboard)->setEnabled(fAllowToShowActionKeyboard); 1741 1741 if (fAllowToShowActionKeyboard) … … 1747 1747 1748 1748 /* 'Mouse' submenu: */ 1749 const bool fAllowToShowActionMouse = isAllowedInMenuMachine( RuntimeMenuMachineActionType_Mouse);1749 const bool fAllowToShowActionMouse = isAllowedInMenuMachine(UIExtraDataMetaDefs::RuntimeMenuMachineActionType_Mouse); 1750 1750 action(UIActionIndexRT_M_Machine_M_Mouse)->setEnabled(fAllowToShowActionMouse); 1751 1751 if (fAllowToShowActionMouse) … … 1757 1757 1758 1758 /* 'Mouse Integration' action: */ 1759 const bool fAllowToShowActionMouseIntegration = isAllowedInMenuMachine( RuntimeMenuMachineActionType_MouseIntegration);1759 const bool fAllowToShowActionMouseIntegration = isAllowedInMenuMachine(UIExtraDataMetaDefs::RuntimeMenuMachineActionType_MouseIntegration); 1760 1760 action(UIActionIndexRT_M_Machine_M_Mouse_T_Integration)->setEnabled(fAllowToShowActionMouseIntegration); 1761 1761 if (fAllowToShowActionMouseIntegration) … … 1774 1774 1775 1775 /* 'Type CAD' action: */ 1776 const bool fAllowToShowActionTypeCAD = isAllowedInMenuMachine( RuntimeMenuMachineActionType_TypeCAD);1776 const bool fAllowToShowActionTypeCAD = isAllowedInMenuMachine(UIExtraDataMetaDefs::RuntimeMenuMachineActionType_TypeCAD); 1777 1777 action(UIActionIndexRT_M_Machine_S_TypeCAD)->setEnabled(fAllowToShowActionTypeCAD); 1778 1778 if (fAllowToShowActionTypeCAD) … … 1784 1784 #ifdef Q_WS_X11 1785 1785 /* 'Type CABS' action: */ 1786 const bool fAllowToShowActionTypeCABS = isAllowedInMenuMachine( RuntimeMenuMachineActionType_TypeCABS);1786 const bool fAllowToShowActionTypeCABS = isAllowedInMenuMachine(UIExtraDataMetaDefs::RuntimeMenuMachineActionType_TypeCABS); 1787 1787 action(UIActionIndexRT_M_Machine_S_TypeCABS)->setEnabled(fAllowToShowActionTypeCABS); 1788 1788 if (fAllowToShowActionTypeCABS) … … 1802 1802 1803 1803 /* 'Pause' action: */ 1804 const bool fAllowToShowActionPause = isAllowedInMenuMachine( RuntimeMenuMachineActionType_Pause);1804 const bool fAllowToShowActionPause = isAllowedInMenuMachine(UIExtraDataMetaDefs::RuntimeMenuMachineActionType_Pause); 1805 1805 action(UIActionIndexRT_M_Machine_T_Pause)->setEnabled(fAllowToShowActionPause); 1806 1806 if (fAllowToShowActionPause) … … 1811 1811 1812 1812 /* 'Reset' action: */ 1813 const bool fAllowToShowActionReset = isAllowedInMenuMachine( RuntimeMenuMachineActionType_Reset);1813 const bool fAllowToShowActionReset = isAllowedInMenuMachine(UIExtraDataMetaDefs::RuntimeMenuMachineActionType_Reset); 1814 1814 action(UIActionIndexRT_M_Machine_S_Reset)->setEnabled(fAllowToShowActionReset); 1815 1815 if (fAllowToShowActionReset) … … 1820 1820 1821 1821 /* 'Save' action: */ 1822 const bool fAllowToShowActionSaveState = isAllowedInMenuMachine( RuntimeMenuMachineActionType_SaveState);1822 const bool fAllowToShowActionSaveState = isAllowedInMenuMachine(UIExtraDataMetaDefs::RuntimeMenuMachineActionType_SaveState); 1823 1823 action(UIActionIndexRT_M_Machine_S_Save)->setEnabled(fAllowToShowActionSaveState); 1824 1824 if (fAllowToShowActionSaveState) … … 1829 1829 1830 1830 /* 'Shutdown' action: */ 1831 const bool fAllowToShowActionShutdown = isAllowedInMenuMachine( RuntimeMenuMachineActionType_Shutdown);1831 const bool fAllowToShowActionShutdown = isAllowedInMenuMachine(UIExtraDataMetaDefs::RuntimeMenuMachineActionType_Shutdown); 1832 1832 action(UIActionIndexRT_M_Machine_S_Shutdown)->setEnabled(fAllowToShowActionShutdown); 1833 1833 if (fAllowToShowActionShutdown) … … 1838 1838 1839 1839 /* 'PowerOff' action: */ 1840 const bool fAllowToShowActionPowerOff = isAllowedInMenuMachine( RuntimeMenuMachineActionType_PowerOff);1840 const bool fAllowToShowActionPowerOff = isAllowedInMenuMachine(UIExtraDataMetaDefs::RuntimeMenuMachineActionType_PowerOff); 1841 1841 action(UIActionIndexRT_M_Machine_S_PowerOff)->setEnabled(fAllowToShowActionPowerOff); 1842 1842 if (fAllowToShowActionPowerOff) … … 1856 1856 const bool fAllowToShowActionClose = 1857 1857 #ifdef Q_WS_MAC 1858 isAllowedInMenuApplication( MenuApplicationActionType_Close);1858 isAllowedInMenuApplication(UIExtraDataMetaDefs::MenuApplicationActionType_Close); 1859 1859 #else /* !Q_WS_MAC */ 1860 isAllowedInMenuMachine( RuntimeMenuMachineActionType_Close);1860 isAllowedInMenuMachine(UIExtraDataMetaDefs::RuntimeMenuMachineActionType_Close); 1861 1861 #endif /* !Q_WS_MAC */ 1862 1862 pMenu->addAction(action(UIActionIndexRT_M_Machine_S_Close)); … … 1877 1877 1878 1878 /* 'Keyboard Settings' action: */ 1879 const bool fAllowToShowActionKeyboardSettings = isAllowedInMenuMachine( RuntimeMenuMachineActionType_KeyboardSettings);1879 const bool fAllowToShowActionKeyboardSettings = isAllowedInMenuMachine(UIExtraDataMetaDefs::RuntimeMenuMachineActionType_KeyboardSettings); 1880 1880 action(UIActionIndexRT_M_Machine_M_Keyboard_S_Settings)->setEnabled(fAllowToShowActionKeyboardSettings); 1881 1881 if (fAllowToShowActionKeyboardSettings) … … 1895 1895 1896 1896 /* 'Machine Integration' action: */ 1897 const bool fAllowToShowActionMouseIntegration = isAllowedInMenuMachine( RuntimeMenuMachineActionType_MouseIntegration);1897 const bool fAllowToShowActionMouseIntegration = isAllowedInMenuMachine(UIExtraDataMetaDefs::RuntimeMenuMachineActionType_MouseIntegration); 1898 1898 action(UIActionIndexRT_M_Machine_M_Mouse_T_Integration)->setEnabled(fAllowToShowActionMouseIntegration); 1899 1899 if (fAllowToShowActionMouseIntegration) … … 1914 1914 1915 1915 /* 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); 1919 1919 1920 1920 /* 'Fullscreen' action: */ … … 1942 1942 1943 1943 /* 'Adjust Window' action: */ 1944 const bool fAllowToShowActionAdjustWindow = isAllowedInMenuView( RuntimeMenuViewActionType_AdjustWindow);1944 const bool fAllowToShowActionAdjustWindow = isAllowedInMenuView(UIExtraDataMetaDefs::RuntimeMenuViewActionType_AdjustWindow); 1945 1945 action(UIActionIndexRT_M_View_S_AdjustWindow)->setEnabled(fAllowToShowActionAdjustWindow); 1946 1946 if (fAllowToShowActionAdjustWindow) … … 1951 1951 1952 1952 /* 'Guest Autoresize' action: */ 1953 const bool fAllowToShowActionGuestAutoresize = isAllowedInMenuView( RuntimeMenuViewActionType_GuestAutoresize);1953 const bool fAllowToShowActionGuestAutoresize = isAllowedInMenuView(UIExtraDataMetaDefs::RuntimeMenuViewActionType_GuestAutoresize); 1954 1954 action(UIActionIndexRT_M_View_T_GuestAutoresize)->setEnabled(fAllowToShowActionGuestAutoresize); 1955 1955 if (fAllowToShowActionGuestAutoresize) … … 1968 1968 1969 1969 /* 'Status Bar' submenu: */ 1970 const bool fAllowToShowActionStatusBar = isAllowedInMenuView( RuntimeMenuViewActionType_StatusBar);1970 const bool fAllowToShowActionStatusBar = isAllowedInMenuView(UIExtraDataMetaDefs::RuntimeMenuViewActionType_StatusBar); 1971 1971 action(UIActionIndexRT_M_View_M_StatusBar)->setEnabled(fAllowToShowActionStatusBar); 1972 1972 if (fAllowToShowActionStatusBar) … … 1983 1983 1984 1984 /* 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); 1987 1987 if (fAllowToShowActionResize && session()) 1988 1988 { … … 2030 2030 2031 2031 /* 'Adjust Window' action: */ 2032 const bool fAllowToShowActionAdjustWindow = isAllowedInMenuView( RuntimeMenuViewActionType_AdjustWindow);2032 const bool fAllowToShowActionAdjustWindow = isAllowedInMenuView(UIExtraDataMetaDefs::RuntimeMenuViewActionType_AdjustWindow); 2033 2033 action(UIActionIndexRT_M_View_S_AdjustWindow)->setEnabled(fAllowToShowActionAdjustWindow); 2034 2034 if (fAllowToShowActionAdjustWindow) … … 2039 2039 2040 2040 /* 'Guest Autoresize' action: */ 2041 const bool fAllowToShowActionGuestAutoresize = isAllowedInMenuView( RuntimeMenuViewActionType_GuestAutoresize);2041 const bool fAllowToShowActionGuestAutoresize = isAllowedInMenuView(UIExtraDataMetaDefs::RuntimeMenuViewActionType_GuestAutoresize); 2042 2042 action(UIActionIndexRT_M_View_T_GuestAutoresize)->setEnabled(fAllowToShowActionGuestAutoresize); 2043 2043 if (fAllowToShowActionGuestAutoresize) … … 2053 2053 2054 2054 /* Do we have to show resize menu? */ 2055 const bool fAllowToShowActionResize = isAllowedInMenuView( RuntimeMenuViewActionType_Resize);2055 const bool fAllowToShowActionResize = isAllowedInMenuView(UIExtraDataMetaDefs::RuntimeMenuViewActionType_Resize); 2056 2056 if (fAllowToShowActionResize && session()) 2057 2057 { … … 2080 2080 2081 2081 /* 'Status Bar Settings' action: */ 2082 const bool fAllowToShowActionStatusBarSettings = isAllowedInMenuView( RuntimeMenuViewActionType_StatusBarSettings);2082 const bool fAllowToShowActionStatusBarSettings = isAllowedInMenuView(UIExtraDataMetaDefs::RuntimeMenuViewActionType_StatusBarSettings); 2083 2083 action(UIActionIndexRT_M_View_M_StatusBar_S_Settings)->setEnabled(fAllowToShowActionStatusBarSettings); 2084 2084 if (fAllowToShowActionStatusBarSettings) … … 2086 2086 2087 2087 /* 'Toggle Status Bar' action: */ 2088 const bool fAllowToShowActionToggleStatusBar = isAllowedInMenuView( RuntimeMenuViewActionType_ToggleStatusBar);2088 const bool fAllowToShowActionToggleStatusBar = isAllowedInMenuView(UIExtraDataMetaDefs::RuntimeMenuViewActionType_ToggleStatusBar); 2089 2089 action(UIActionIndexRT_M_View_M_StatusBar_T_Visibility)->setEnabled(fAllowToShowActionToggleStatusBar); 2090 2090 if (fAllowToShowActionToggleStatusBar) … … 2227 2227 2228 2228 /* 'Hard Drives' submenu: */ 2229 const bool fAllowToShowActionHardDrives = isAllowedInMenuDevices( RuntimeMenuDevicesActionType_HardDrives);2229 const bool fAllowToShowActionHardDrives = isAllowedInMenuDevices(UIExtraDataMetaDefs::RuntimeMenuDevicesActionType_HardDrives); 2230 2230 action(UIActionIndexRT_M_Devices_M_HardDrives)->setEnabled(fAllowToShowActionHardDrives); 2231 2231 if (fAllowToShowActionHardDrives) … … 2237 2237 2238 2238 /* 'Optical Devices' submenu: */ 2239 const bool fAllowToShowActionOpticalDevices = isAllowedInMenuDevices( RuntimeMenuDevicesActionType_OpticalDevices);2239 const bool fAllowToShowActionOpticalDevices = isAllowedInMenuDevices(UIExtraDataMetaDefs::RuntimeMenuDevicesActionType_OpticalDevices); 2240 2240 action(UIActionIndexRT_M_Devices_M_OpticalDevices)->setEnabled(fAllowToShowActionOpticalDevices); 2241 2241 if (fAllowToShowActionOpticalDevices) … … 2246 2246 2247 2247 /* 'Floppy Devices' submenu: */ 2248 const bool fAllowToShowActionFloppyDevices = isAllowedInMenuDevices( RuntimeMenuDevicesActionType_FloppyDevices);2248 const bool fAllowToShowActionFloppyDevices = isAllowedInMenuDevices(UIExtraDataMetaDefs::RuntimeMenuDevicesActionType_FloppyDevices); 2249 2249 action(UIActionIndexRT_M_Devices_M_FloppyDevices)->setEnabled(fAllowToShowActionFloppyDevices); 2250 2250 if (fAllowToShowActionFloppyDevices) … … 2255 2255 2256 2256 /* 'Network' submenu: */ 2257 const bool fAllowToShowActionNetwork = isAllowedInMenuDevices( RuntimeMenuDevicesActionType_Network);2257 const bool fAllowToShowActionNetwork = isAllowedInMenuDevices(UIExtraDataMetaDefs::RuntimeMenuDevicesActionType_Network); 2258 2258 action(UIActionIndexRT_M_Devices_M_Network)->setEnabled(fAllowToShowActionNetwork); 2259 2259 if (fAllowToShowActionNetwork) … … 2265 2265 2266 2266 /* 'USB Devices' submenu: */ 2267 const bool fAllowToShowActionUSBDevices = isAllowedInMenuDevices( RuntimeMenuDevicesActionType_USBDevices);2267 const bool fAllowToShowActionUSBDevices = isAllowedInMenuDevices(UIExtraDataMetaDefs::RuntimeMenuDevicesActionType_USBDevices); 2268 2268 action(UIActionIndexRT_M_Devices_M_USBDevices)->setEnabled(fAllowToShowActionUSBDevices); 2269 2269 if (fAllowToShowActionUSBDevices) … … 2275 2275 2276 2276 /* 'Web Cams' submenu: */ 2277 const bool fAllowToShowActionWebCams = isAllowedInMenuDevices( RuntimeMenuDevicesActionType_WebCams);2277 const bool fAllowToShowActionWebCams = isAllowedInMenuDevices(UIExtraDataMetaDefs::RuntimeMenuDevicesActionType_WebCams); 2278 2278 action(UIActionIndexRT_M_Devices_M_WebCams)->setEnabled(fAllowToShowActionWebCams); 2279 2279 if (fAllowToShowActionWebCams) … … 2284 2284 2285 2285 /* 'Shared Clipboard' submenu: */ 2286 const bool fAllowToShowActionSharedClipboard = isAllowedInMenuDevices( RuntimeMenuDevicesActionType_SharedClipboard);2286 const bool fAllowToShowActionSharedClipboard = isAllowedInMenuDevices(UIExtraDataMetaDefs::RuntimeMenuDevicesActionType_SharedClipboard); 2287 2287 action(UIActionIndexRT_M_Devices_M_SharedClipboard)->setEnabled(fAllowToShowActionSharedClipboard); 2288 2288 if (fAllowToShowActionSharedClipboard) … … 2293 2293 2294 2294 /* 'Drag&Drop' submenu: */ 2295 const bool fAllowToShowActionDragAndDrop = isAllowedInMenuDevices( RuntimeMenuDevicesActionType_DragAndDrop);2295 const bool fAllowToShowActionDragAndDrop = isAllowedInMenuDevices(UIExtraDataMetaDefs::RuntimeMenuDevicesActionType_DragAndDrop); 2296 2296 action(UIActionIndexRT_M_Devices_M_DragAndDrop)->setEnabled(fAllowToShowActionDragAndDrop); 2297 2297 if (fAllowToShowActionDragAndDrop) … … 2302 2302 2303 2303 /* 'Shared Folders' submenu: */ 2304 const bool fAllowToShowActionSharedFolders = isAllowedInMenuDevices( RuntimeMenuDevicesActionType_SharedFolders);2304 const bool fAllowToShowActionSharedFolders = isAllowedInMenuDevices(UIExtraDataMetaDefs::RuntimeMenuDevicesActionType_SharedFolders); 2305 2305 action(UIActionIndexRT_M_Devices_M_SharedFolders)->setEnabled(fAllowToShowActionSharedFolders); 2306 2306 if (fAllowToShowActionSharedFolders) … … 2320 2320 2321 2321 /* 'VRDE Server' action: */ 2322 const bool fAllowToShowActionVRDEServer = isAllowedInMenuDevices( RuntimeMenuDevicesActionType_VRDEServer);2322 const bool fAllowToShowActionVRDEServer = isAllowedInMenuDevices(UIExtraDataMetaDefs::RuntimeMenuDevicesActionType_VRDEServer); 2323 2323 action(UIActionIndexRT_M_Devices_T_VRDEServer)->setEnabled(fAllowToShowActionVRDEServer); 2324 2324 if (fAllowToShowActionVRDEServer) … … 2329 2329 2330 2330 /* 'Video Capture' action: */ 2331 const bool fAllowToShowActionVideoCapture = isAllowedInMenuDevices( RuntimeMenuDevicesActionType_VideoCapture);2331 const bool fAllowToShowActionVideoCapture = isAllowedInMenuDevices(UIExtraDataMetaDefs::RuntimeMenuDevicesActionType_StartVideoCapture); 2332 2332 action(UIActionIndexRT_M_Devices_M_VideoCapture_T_Start)->setEnabled(fAllowToShowActionVideoCapture); 2333 2333 if (fAllowToShowActionVideoCapture) … … 2344 2344 2345 2345 /* Install Guest Tools action: */ 2346 const bool fAllowToShowActionInstallGuestTools = isAllowedInMenuDevices( RuntimeMenuDevicesActionType_InstallGuestTools);2346 const bool fAllowToShowActionInstallGuestTools = isAllowedInMenuDevices(UIExtraDataMetaDefs::RuntimeMenuDevicesActionType_InstallGuestTools); 2347 2347 action(UIActionIndexRT_M_Devices_S_InstallGuestTools)->setEnabled(fAllowToShowActionInstallGuestTools); 2348 2348 if (fAllowToShowActionInstallGuestTools) … … 2363 2363 2364 2364 /* 'Hard Drives Settings' action: */ 2365 const bool fAllowToShowActionHardDrivesSettings = isAllowedInMenuDevices( RuntimeMenuDevicesActionType_HardDrivesSettings);2365 const bool fAllowToShowActionHardDrivesSettings = isAllowedInMenuDevices(UIExtraDataMetaDefs::RuntimeMenuDevicesActionType_HardDrivesSettings); 2366 2366 action(UIActionIndexRT_M_Devices_M_HardDrives_S_Settings)->setEnabled(fAllowToShowActionHardDrivesSettings); 2367 2367 if (fAllowToShowActionHardDrivesSettings) … … 2381 2381 2382 2382 /* 'Network Settings' action: */ 2383 const bool fAllowToShowActionNetworkSettings = isAllowedInMenuDevices( RuntimeMenuDevicesActionType_NetworkSettings);2383 const bool fAllowToShowActionNetworkSettings = isAllowedInMenuDevices(UIExtraDataMetaDefs::RuntimeMenuDevicesActionType_NetworkSettings); 2384 2384 action(UIActionIndexRT_M_Devices_M_Network_S_Settings)->setEnabled(fAllowToShowActionNetworkSettings); 2385 2385 if (fAllowToShowActionNetworkSettings) … … 2396 2396 2397 2397 /* 'USB Devices Settings' action: */ 2398 const bool fAllowToShowActionUSBDevicesSettings = isAllowedInMenuDevices( RuntimeMenuDevicesActionType_USBDevicesSettings);2398 const bool fAllowToShowActionUSBDevicesSettings = isAllowedInMenuDevices(UIExtraDataMetaDefs::RuntimeMenuDevicesActionType_USBDevicesSettings); 2399 2399 action(UIActionIndexRT_M_Devices_M_USBDevices_S_Settings)->setEnabled(fAllowToShowActionUSBDevicesSettings); 2400 2400 if (fAllowToShowActionUSBDevicesSettings) … … 2411 2411 2412 2412 /* 'Shared Folders Settings' action: */ 2413 const bool fAllowToShowActionSharedFoldersSettings = isAllowedInMenuDevices( RuntimeMenuDevicesActionType_SharedFoldersSettings);2413 const bool fAllowToShowActionSharedFoldersSettings = isAllowedInMenuDevices(UIExtraDataMetaDefs::RuntimeMenuDevicesActionType_SharedFoldersSettings); 2414 2414 action(UIActionIndexRT_M_Devices_M_SharedFolders_S_Settings)->setEnabled(fAllowToShowActionSharedFoldersSettings); 2415 2415 if (fAllowToShowActionSharedFoldersSettings) … … 2429 2429 2430 2430 /* 'Video Capture Settings' action: */ 2431 const bool fAllowToShowActionVideoCaptureSettings = isAllowedInMenuDevices( RuntimeMenuDevicesActionType_VideoCaptureSettings);2431 const bool fAllowToShowActionVideoCaptureSettings = isAllowedInMenuDevices(UIExtraDataMetaDefs::RuntimeMenuDevicesActionType_VideoCaptureSettings); 2432 2432 action(UIActionIndexRT_M_Devices_M_VideoCapture_S_Settings)->setEnabled(fAllowToShowActionVideoCaptureSettings); 2433 2433 if (fAllowToShowActionVideoCaptureSettings) … … 2435 2435 2436 2436 /* 'Start Video Capture' action: */ 2437 const bool fAllowToShowActionStartVideoCapture = isAllowedInMenuDevices( RuntimeMenuDevicesActionType_StartVideoCapture);2437 const bool fAllowToShowActionStartVideoCapture = isAllowedInMenuDevices(UIExtraDataMetaDefs::RuntimeMenuDevicesActionType_StartVideoCapture); 2438 2438 action(UIActionIndexRT_M_Devices_M_VideoCapture_S_Settings)->setEnabled(fAllowToShowActionStartVideoCapture); 2439 2439 if (fAllowToShowActionStartVideoCapture) … … 2454 2454 2455 2455 /* 'Statistics' action: */ 2456 const bool fAllowToShowActionStatistics = isAllowedInMenuDebug( RuntimeMenuDebuggerActionType_Statistics);2456 const bool fAllowToShowActionStatistics = isAllowedInMenuDebug(UIExtraDataMetaDefs::RuntimeMenuDebuggerActionType_Statistics); 2457 2457 action(UIActionIndexRT_M_Debug_S_ShowStatistics)->setEnabled(fAllowToShowActionStatistics); 2458 2458 if (fAllowToShowActionStatistics) … … 2460 2460 2461 2461 /* 'Command Line' action: */ 2462 const bool fAllowToShowActionCommandLine = isAllowedInMenuDebug( RuntimeMenuDebuggerActionType_CommandLine);2462 const bool fAllowToShowActionCommandLine = isAllowedInMenuDebug(UIExtraDataMetaDefs::RuntimeMenuDebuggerActionType_CommandLine); 2463 2463 action(UIActionIndexRT_M_Debug_S_ShowCommandLine)->setEnabled(fAllowToShowActionCommandLine); 2464 2464 if (fAllowToShowActionCommandLine) … … 2466 2466 2467 2467 /* 'Logging' action: */ 2468 const bool fAllowToShowActionLogging = isAllowedInMenuDebug( RuntimeMenuDebuggerActionType_Logging);2468 const bool fAllowToShowActionLogging = isAllowedInMenuDebug(UIExtraDataMetaDefs::RuntimeMenuDebuggerActionType_Logging); 2469 2469 action(UIActionIndexRT_M_Debug_T_Logging)->setEnabled(fAllowToShowActionLogging); 2470 2470 if (fAllowToShowActionLogging) … … 2472 2472 2473 2473 /* 'Log Dialog' action: */ 2474 const bool fAllowToShowActionLogDialog = isAllowedInMenuDebug( RuntimeMenuDebuggerActionType_LogDialog);2474 const bool fAllowToShowActionLogDialog = isAllowedInMenuDebug(UIExtraDataMetaDefs::RuntimeMenuDebuggerActionType_LogDialog); 2475 2475 action(UIActionIndex_Simple_LogDialog)->setEnabled(fAllowToShowActionLogDialog); 2476 2476 if (fAllowToShowActionLogDialog) -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIActionPoolRuntime.h
r52344 r52459 143 143 144 144 /** 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; 146 146 /** Defines menu-bar @a restriction for passed @a level. */ 147 void setRestrictionForMenuBar(UIActionRestrictionLevel level, RuntimeMenuType restriction);147 void setRestrictionForMenuBar(UIActionRestrictionLevel level, UIExtraDataMetaDefs::RuntimeMenuType restriction); 148 148 149 149 /** 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; 151 151 /** Defines 'Machine' menu @a restriction for passed @a level. */ 152 void setRestrictionForMenuMachine(UIActionRestrictionLevel level, RuntimeMenuMachineActionType restriction);152 void setRestrictionForMenuMachine(UIActionRestrictionLevel level, UIExtraDataMetaDefs::RuntimeMenuMachineActionType restriction); 153 153 154 154 /** 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; 156 156 /** Defines 'View' menu @a restriction for passed @a level. */ 157 void setRestrictionForMenuView(UIActionRestrictionLevel level, RuntimeMenuViewActionType restriction);157 void setRestrictionForMenuView(UIActionRestrictionLevel level, UIExtraDataMetaDefs::RuntimeMenuViewActionType restriction); 158 158 159 159 /** 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; 161 161 /** Defines 'Devices' menu @a restriction for passed @a level. */ 162 void setRestrictionForMenuDevices(UIActionRestrictionLevel level, RuntimeMenuDevicesActionType restriction);162 void setRestrictionForMenuDevices(UIActionRestrictionLevel level, UIExtraDataMetaDefs::RuntimeMenuDevicesActionType restriction); 163 163 164 164 #ifdef VBOX_WITH_DEBUGGER_GUI 165 165 /** 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; 167 167 /** Defines 'Debug' menu @a restriction for passed @a level. */ 168 void setRestrictionForMenuDebugger(UIActionRestrictionLevel level, RuntimeMenuDebuggerActionType restriction);168 void setRestrictionForMenuDebugger(UIActionRestrictionLevel level, UIExtraDataMetaDefs::RuntimeMenuDebuggerActionType restriction); 169 169 #endif /* VBOX_WITH_DEBUGGER_GUI */ 170 170 … … 254 254 UIMultiScreenLayout *m_pMultiScreenLayout; 255 255 256 /** Holds the list of main-menus. */256 /** Holds the list of Runtime UI main menus. */ 257 257 QList<QMenu*> m_mainMenus; 258 258 259 259 /** Holds restricted menu types. */ 260 QMap<UIActionRestrictionLevel, RuntimeMenuType> m_restrictedMenus;260 QMap<UIActionRestrictionLevel, UIExtraDataMetaDefs::RuntimeMenuType> m_restrictedMenus; 261 261 /** Holds restricted action types of the Machine menu. */ 262 QMap<UIActionRestrictionLevel, RuntimeMenuMachineActionType> m_restrictedActionsMenuMachine;262 QMap<UIActionRestrictionLevel, UIExtraDataMetaDefs::RuntimeMenuMachineActionType> m_restrictedActionsMenuMachine; 263 263 /** Holds restricted action types of the View menu. */ 264 QMap<UIActionRestrictionLevel, RuntimeMenuViewActionType> m_restrictedActionsMenuView;264 QMap<UIActionRestrictionLevel, UIExtraDataMetaDefs::RuntimeMenuViewActionType> m_restrictedActionsMenuView; 265 265 /** Holds restricted action types of the Devices menu. */ 266 QMap<UIActionRestrictionLevel, RuntimeMenuDevicesActionType> m_restrictedActionsMenuDevices;266 QMap<UIActionRestrictionLevel, UIExtraDataMetaDefs::RuntimeMenuDevicesActionType> m_restrictedActionsMenuDevices; 267 267 #ifdef VBOX_WITH_DEBUGGER_GUI 268 268 /** Holds restricted action types of the Debugger menu. */ 269 QMap<UIActionRestrictionLevel, RuntimeMenuDebuggerActionType> m_restrictedActionsMenuDebug;269 QMap<UIActionRestrictionLevel, UIExtraDataMetaDefs::RuntimeMenuDebuggerActionType> m_restrictedActionsMenuDebug; 270 270 #endif /* VBOX_WITH_DEBUGGER_GUI */ 271 271 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.cpp
r52275 r52459 1000 1000 const CHost host = vboxGlobal().host(); 1001 1001 const CMachine machine = session().GetConsole().GetMachine(); 1002 RuntimeMenuDevicesActionType restriction =RuntimeMenuDevicesActionType_Invalid;1002 UIExtraDataMetaDefs::RuntimeMenuDevicesActionType restriction = UIExtraDataMetaDefs::RuntimeMenuDevicesActionType_Invalid; 1003 1003 1004 1004 /* Storage stuff: */ … … 1019 1019 pFloppyDevicesMenu->setData(iDevicesCountFD); 1020 1020 if (!iDevicesCountCD) 1021 restriction = ( RuntimeMenuDevicesActionType)(restriction |RuntimeMenuDevicesActionType_OpticalDevices);1021 restriction = (UIExtraDataMetaDefs::RuntimeMenuDevicesActionType)(restriction | UIExtraDataMetaDefs::RuntimeMenuDevicesActionType_OpticalDevices); 1022 1022 if (!iDevicesCountFD) 1023 restriction = ( RuntimeMenuDevicesActionType)(restriction |RuntimeMenuDevicesActionType_FloppyDevices);1023 restriction = (UIExtraDataMetaDefs::RuntimeMenuDevicesActionType)(restriction | UIExtraDataMetaDefs::RuntimeMenuDevicesActionType_FloppyDevices); 1024 1024 } 1025 1025 … … 1040 1040 } 1041 1041 if (!fAtLeastOneAdapterActive) 1042 restriction = ( RuntimeMenuDevicesActionType)(restriction |RuntimeMenuDevicesActionType_Network);1042 restriction = (UIExtraDataMetaDefs::RuntimeMenuDevicesActionType)(restriction | UIExtraDataMetaDefs::RuntimeMenuDevicesActionType_Network); 1043 1043 } 1044 1044 … … 1050 1050 && machine.GetUSBProxyAvailable(); 1051 1051 if (!fUSBEnabled) 1052 restriction = ( RuntimeMenuDevicesActionType)(restriction |RuntimeMenuDevicesActionType_USBDevices);1052 restriction = (UIExtraDataMetaDefs::RuntimeMenuDevicesActionType)(restriction | UIExtraDataMetaDefs::RuntimeMenuDevicesActionType_USBDevices); 1053 1053 } 1054 1054 … … 1059 1059 const bool fWebCamsEnabled = host.isOk() && !machine.GetUSBControllers().isEmpty(); 1060 1060 if (!fWebCamsEnabled) 1061 restriction = ( RuntimeMenuDevicesActionType)(restriction |RuntimeMenuDevicesActionType_WebCams);1061 restriction = (UIExtraDataMetaDefs::RuntimeMenuDevicesActionType)(restriction | UIExtraDataMetaDefs::RuntimeMenuDevicesActionType_WebCams); 1062 1062 } 1063 1063 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/fullscreen/UIMachineLogicFullscreen.cpp
r52372 r52459 463 463 /* Restrict 'Adjust Window', 'Status Bar' and 'Resize' actions for 'View' menu: */ 464 464 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)); 469 469 470 470 /* Take care of view-action toggle state: */ … … 638 638 /* Allow 'Adjust Window', 'Status Bar' and 'Resize' actions for 'View' menu: */ 639 639 actionPool()->toRuntime()->setRestrictionForMenuView(UIActionRestrictionLevel_Logic, 640 RuntimeMenuViewActionType_Invalid);640 UIExtraDataMetaDefs::RuntimeMenuViewActionType_Invalid); 641 641 642 642 /* Call to base-class: */ -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/scale/UIMachineLogicScale.cpp
r52236 r52459 75 75 /* Restrict 'Adjust Window', 'Guest Autoresize', 'Status Bar' and 'Resize' actions for 'View' menu: */ 76 76 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)); 82 82 83 83 /* Take care of view-action toggle state: */ … … 201 201 /* Allow 'Adjust Window', 'Guest Autoresize', 'Status Bar' and 'Resize' actions for 'View' menu: */ 202 202 actionPool()->toRuntime()->setRestrictionForMenuView(UIActionRestrictionLevel_Logic, 203 RuntimeMenuViewActionType_Invalid);203 UIExtraDataMetaDefs::RuntimeMenuViewActionType_Invalid); 204 204 205 205 /* Call to base-class: */ -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/seamless/UIMachineLogicSeamless.cpp
r52372 r52459 205 205 /* Restrict 'Disable Mouse Integration' action for 'Machine' menu: */ 206 206 actionPool()->toRuntime()->setRestrictionForMenuMachine(UIActionRestrictionLevel_Logic, 207 RuntimeMenuMachineActionType_MouseIntegration);207 UIExtraDataMetaDefs::RuntimeMenuMachineActionType_MouseIntegration); 208 208 /* Restrict 'Adjust Window', 'Guest Autoresize', 'Status Bar' and 'Resize' actions for 'View' menu: */ 209 209 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)); 215 215 216 216 /* Take care of view-action toggle state: */ … … 335 335 /* Allow 'Disable Mouse Integration' action for 'Machine' menu: */ 336 336 actionPool()->toRuntime()->setRestrictionForMenuMachine(UIActionRestrictionLevel_Logic, 337 RuntimeMenuMachineActionType_Invalid);337 UIExtraDataMetaDefs::RuntimeMenuMachineActionType_Invalid); 338 338 /* Allow 'Adjust Window', 'Guest Autoresize', 'Status Bar' and 'Resize' actions for 'View' menu: */ 339 339 actionPool()->toRuntime()->setRestrictionForMenuView(UIActionRestrictionLevel_Logic, 340 RuntimeMenuViewActionType_Invalid);340 UIExtraDataMetaDefs::RuntimeMenuViewActionType_Invalid); 341 341 342 342 /* Call to base-class: */ -
trunk/src/VBox/Frontends/VirtualBox/src/selector/UIActionPoolSelector.h
r52215 r52459 111 111 virtual QString shortcutsExtraDataID() const; 112 112 113 /** Returns the list of RuntimeUI main menus. */113 /** Returns the list of Selector UI main menus. */ 114 114 virtual QList<QMenu*> menus() const { return QList<QMenu*>(); } 115 115
Note:
See TracChangeset
for help on using the changeset viewer.