Changeset 52133 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Jul 22, 2014 5:01:15 PM (10 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/runtime
- Files:
-
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIActionPoolRuntime.cpp
r52115 r52133 1408 1408 1409 1409 /* 'Machine' actions: */ 1410 m_pool[UIActionIndexR untime_Simple_SettingsDialog] = new UIActionSimpleShowSettingsDialog(this);1411 m_pool[UIActionIndexR untime_Simple_TakeSnapshot] = new UIActionSimplePerformTakeSnapshot(this);1412 m_pool[UIActionIndexR untime_Simple_TakeScreenshot] = new UIActionSimplePerformTakeScreenshot(this);1413 m_pool[UIActionIndexR untime_Simple_InformationDialog] = new UIActionSimpleShowInformationDialog(this);1414 m_pool[UIActionIndexR untime_Simple_KeyboardSettings] = new UIActionSimpleKeyboardSettings(this);1415 m_pool[UIActionIndexR untime_Toggle_MouseIntegration] = new UIActionToggleMouseIntegration(this);1416 m_pool[UIActionIndexR untime_Simple_TypeCAD] = new UIActionSimplePerformTypeCAD(this);1410 m_pool[UIActionIndexRT_M_Machine_S_Settings] = new UIActionSimpleShowSettingsDialog(this); 1411 m_pool[UIActionIndexRT_M_Machine_S_TakeSnapshot] = new UIActionSimplePerformTakeSnapshot(this); 1412 m_pool[UIActionIndexRT_M_Machine_S_TakeScreenshot] = new UIActionSimplePerformTakeScreenshot(this); 1413 m_pool[UIActionIndexRT_M_Machine_S_ShowInformation] = new UIActionSimpleShowInformationDialog(this); 1414 m_pool[UIActionIndexRT_M_Machine_M_Keyboard_S_Settings] = new UIActionSimpleKeyboardSettings(this); 1415 m_pool[UIActionIndexRT_M_Machine_M_Mouse_T_Integration] = new UIActionToggleMouseIntegration(this); 1416 m_pool[UIActionIndexRT_M_Machine_S_TypeCAD] = new UIActionSimplePerformTypeCAD(this); 1417 1417 #ifdef Q_WS_X11 1418 m_pool[UIActionIndexR untime_Simple_TypeCABS] = new UIActionSimplePerformTypeCABS(this);1418 m_pool[UIActionIndexRT_M_Machine_S_TypeCABS] = new UIActionSimplePerformTypeCABS(this); 1419 1419 #endif /* Q_WS_X11 */ 1420 m_pool[UIActionIndexR untime_Toggle_Pause] = new UIActionTogglePause(this);1421 m_pool[UIActionIndexR untime_Simple_Reset] = new UIActionSimplePerformReset(this);1422 m_pool[UIActionIndexR untime_Simple_Save] = new UIActionSimplePerformSave(this);1423 m_pool[UIActionIndexR untime_Simple_Shutdown] = new UIActionSimplePerformShutdown(this);1424 m_pool[UIActionIndexR untime_Simple_PowerOff] = new UIActionSimplePerformPowerOff(this);1425 m_pool[UIActionIndexR untime_Simple_Close] = new UIActionSimplePerformClose(this);1420 m_pool[UIActionIndexRT_M_Machine_T_Pause] = new UIActionTogglePause(this); 1421 m_pool[UIActionIndexRT_M_Machine_S_Reset] = new UIActionSimplePerformReset(this); 1422 m_pool[UIActionIndexRT_M_Machine_S_Save] = new UIActionSimplePerformSave(this); 1423 m_pool[UIActionIndexRT_M_Machine_S_Shutdown] = new UIActionSimplePerformShutdown(this); 1424 m_pool[UIActionIndexRT_M_Machine_S_PowerOff] = new UIActionSimplePerformPowerOff(this); 1425 m_pool[UIActionIndexRT_M_Machine_S_Close] = new UIActionSimplePerformClose(this); 1426 1426 1427 1427 /* 'View' actions: */ 1428 m_pool[UIActionIndexR untime_Toggle_Fullscreen] = new UIActionToggleFullscreenMode(this);1429 m_pool[UIActionIndexR untime_Toggle_Seamless] = new UIActionToggleSeamlessMode(this);1430 m_pool[UIActionIndexR untime_Toggle_Scale] = new UIActionToggleScaleMode(this);1431 m_pool[UIActionIndexR untime_Toggle_GuestAutoresize] = new UIActionToggleGuestAutoresize(this);1432 m_pool[UIActionIndexR untime_Simple_AdjustWindow] = new UIActionSimplePerformWindowAdjust(this);1433 m_pool[UIActionIndexR untime_Simple_StatusBarSettings] = new UIActionSimpleShowStatusBarSettingsWindow(this);1434 m_pool[UIActionIndexR untime_Toggle_StatusBar] = new UIActionToggleStatusBar(this);1428 m_pool[UIActionIndexRT_M_View_T_Fullscreen] = new UIActionToggleFullscreenMode(this); 1429 m_pool[UIActionIndexRT_M_View_T_Seamless] = new UIActionToggleSeamlessMode(this); 1430 m_pool[UIActionIndexRT_M_View_T_Scale] = new UIActionToggleScaleMode(this); 1431 m_pool[UIActionIndexRT_M_View_T_GuestAutoresize] = new UIActionToggleGuestAutoresize(this); 1432 m_pool[UIActionIndexRT_M_View_S_AdjustWindow] = new UIActionSimplePerformWindowAdjust(this); 1433 m_pool[UIActionIndexRT_M_View_M_StatusBar_S_Settings] = new UIActionSimpleShowStatusBarSettingsWindow(this); 1434 m_pool[UIActionIndexRT_M_View_M_StatusBar_T_Visibility] = new UIActionToggleStatusBar(this); 1435 1435 1436 1436 /* 'Devices' actions: */ 1437 m_pool[UIActionIndexR untime_Simple_StorageSettings] = new UIActionSimpleShowStorageSettingsDialog(this);1438 m_pool[UIActionIndexR untime_Simple_NetworkSettings] = new UIActionSimpleShowNetworkSettingsDialog(this);1439 m_pool[UIActionIndexR untime_Simple_SharedFoldersSettings] = new UIActionSimpleShowSharedFoldersSettingsDialog(this);1440 m_pool[UIActionIndexR untime_Toggle_VRDEServer] = new UIActionToggleVRDEServer(this);1441 m_pool[UIActionIndexR untime_Toggle_VideoCapture] = new UIActionToggleVideoCapture(this);1442 m_pool[UIActionIndexR untime_Simple_VideoCaptureSettings] = new UIActionSimpleShowVideoCaptureSettingsDialog(this);1443 m_pool[UIActionIndexR untime_Simple_InstallGuestTools] = new UIActionSimplePerformInstallGuestTools(this);1437 m_pool[UIActionIndexRT_M_Devices_M_HardDrives_S_Settings] = new UIActionSimpleShowStorageSettingsDialog(this); 1438 m_pool[UIActionIndexRT_M_Devices_M_Network_S_Settings] = new UIActionSimpleShowNetworkSettingsDialog(this); 1439 m_pool[UIActionIndexRT_M_Devices_M_SharedFolders_S_Settings] = new UIActionSimpleShowSharedFoldersSettingsDialog(this); 1440 m_pool[UIActionIndexRT_M_Devices_T_VRDEServer] = new UIActionToggleVRDEServer(this); 1441 m_pool[UIActionIndexRT_M_Devices_M_VideoCapture_T_Start] = new UIActionToggleVideoCapture(this); 1442 m_pool[UIActionIndexRT_M_Devices_M_VideoCapture_S_Settings] = new UIActionSimpleShowVideoCaptureSettingsDialog(this); 1443 m_pool[UIActionIndexRT_M_Devices_S_InstallGuestTools] = new UIActionSimplePerformInstallGuestTools(this); 1444 1444 1445 1445 #ifdef VBOX_WITH_DEBUGGER_GUI 1446 1446 /* 'Debug' actions: */ 1447 m_pool[UIActionIndexR untime_Simple_Statistics] = new UIActionSimpleShowStatistics(this);1448 m_pool[UIActionIndexR untime_Simple_CommandLine] = new UIActionSimpleShowCommandLine(this);1449 m_pool[UIActionIndexR untime_Toggle_Logging] = new UIActionToggleLogging(this);1447 m_pool[UIActionIndexRT_M_Debug_S_ShowStatistics] = new UIActionSimpleShowStatistics(this); 1448 m_pool[UIActionIndexRT_M_Debug_S_ShowCommandLine] = new UIActionSimpleShowCommandLine(this); 1449 m_pool[UIActionIndexRT_M_Debug_T_Logging] = new UIActionToggleLogging(this); 1450 1450 #endif /* VBOX_WITH_DEBUGGER_GUI */ 1451 1451 1452 1452 #ifdef Q_WS_MAC 1453 1453 /* 'Dock' actions: */ 1454 m_pool[UIActionIndexR untime_Toggle_DockPreviewMonitor] = new UIActionToggleDockPreviewMonitor(this);1455 m_pool[UIActionIndexR untime_Toggle_DockDisableMonitor] = new UIActionToggleDockDisableMonitor(this);1454 m_pool[UIActionIndexRT_M_Dock_M_DockSettings_T_PreviewMonitor] = new UIActionToggleDockPreviewMonitor(this); 1455 m_pool[UIActionIndexRT_M_Dock_M_DockSettings_T_DisableMonitor] = new UIActionToggleDockDisableMonitor(this); 1456 1456 #endif /* Q_WS_MAC */ 1457 1457 } … … 1468 1468 /* Recreate 'close' item as well. 1469 1469 * This makes sure it is removed also from the Application menu: */ 1470 if (m_pool[UIActionIndexR untime_Simple_Close])1471 delete m_pool[UIActionIndexR untime_Simple_Close];1472 m_pool[UIActionIndexR untime_Simple_Close] = new UIActionSimplePerformClose(this);1470 if (m_pool[UIActionIndexRT_M_Machine_S_Close]) 1471 delete m_pool[UIActionIndexRT_M_Machine_S_Close]; 1472 m_pool[UIActionIndexRT_M_Machine_S_Close] = new UIActionSimplePerformClose(this); 1473 1473 1474 1474 /* 'Machine' menu: */ 1475 if (m_pool[UIActionIndexR untime_Menu_Machine])1476 delete m_pool[UIActionIndexR untime_Menu_Machine];1477 m_pool[UIActionIndexR untime_Menu_Machine] = new UIActionMenuMachineRuntime(this);1478 if (m_pool[UIActionIndexR untime_Menu_Keyboard])1479 delete m_pool[UIActionIndexR untime_Menu_Keyboard];1480 m_pool[UIActionIndexR untime_Menu_Keyboard] = new UIActionMenuKeyboard(this);1481 if (m_pool[UIActionIndexR untime_Menu_MouseIntegration])1482 delete m_pool[UIActionIndexR untime_Menu_MouseIntegration];1483 m_pool[UIActionIndexR untime_Menu_MouseIntegration] = new UIActionMenuMouseIntegration(this);1475 if (m_pool[UIActionIndexRT_M_Machine]) 1476 delete m_pool[UIActionIndexRT_M_Machine]; 1477 m_pool[UIActionIndexRT_M_Machine] = new UIActionMenuMachineRuntime(this); 1478 if (m_pool[UIActionIndexRT_M_Machine_M_Keyboard]) 1479 delete m_pool[UIActionIndexRT_M_Machine_M_Keyboard]; 1480 m_pool[UIActionIndexRT_M_Machine_M_Keyboard] = new UIActionMenuKeyboard(this); 1481 if (m_pool[UIActionIndexRT_M_Machine_M_Mouse]) 1482 delete m_pool[UIActionIndexRT_M_Machine_M_Mouse]; 1483 m_pool[UIActionIndexRT_M_Machine_M_Mouse] = new UIActionMenuMouseIntegration(this); 1484 1484 1485 1485 /* 'View' menu: */ 1486 if (m_pool[UIActionIndexR untime_Menu_View])1487 delete m_pool[UIActionIndexR untime_Menu_View];1488 m_pool[UIActionIndexR untime_Menu_View] = new UIActionMenuView(this);1489 if (m_pool[UIActionIndexR untime_Menu_ViewPopup])1490 delete m_pool[UIActionIndexR untime_Menu_ViewPopup];1491 m_pool[UIActionIndexR untime_Menu_ViewPopup] = new UIActionMenuViewPopup(this);1492 if (m_pool[UIActionIndexR untime_Menu_StatusBar])1493 delete m_pool[UIActionIndexR untime_Menu_StatusBar];1494 m_pool[UIActionIndexR untime_Menu_StatusBar] = new UIActionMenuStatusBar(this);1486 if (m_pool[UIActionIndexRT_M_View]) 1487 delete m_pool[UIActionIndexRT_M_View]; 1488 m_pool[UIActionIndexRT_M_View] = new UIActionMenuView(this); 1489 if (m_pool[UIActionIndexRT_M_ViewPopup]) 1490 delete m_pool[UIActionIndexRT_M_ViewPopup]; 1491 m_pool[UIActionIndexRT_M_ViewPopup] = new UIActionMenuViewPopup(this); 1492 if (m_pool[UIActionIndexRT_M_View_M_StatusBar]) 1493 delete m_pool[UIActionIndexRT_M_View_M_StatusBar]; 1494 m_pool[UIActionIndexRT_M_View_M_StatusBar] = new UIActionMenuStatusBar(this); 1495 1495 1496 1496 /* 'Devices' menu: */ 1497 if (m_pool[UIActionIndexR untime_Menu_Devices])1498 delete m_pool[UIActionIndexR untime_Menu_Devices];1499 m_pool[UIActionIndexR untime_Menu_Devices] = new UIActionMenuDevices(this);1500 if (m_pool[UIActionIndexR untime_Menu_HardDisks])1501 delete m_pool[UIActionIndexR untime_Menu_HardDisks];1502 m_pool[UIActionIndexR untime_Menu_HardDisks] = new UIActionMenuHardDisks(this);1503 if (m_pool[UIActionIndexR untime_Menu_OpticalDevices])1504 delete m_pool[UIActionIndexR untime_Menu_OpticalDevices];1505 m_pool[UIActionIndexR untime_Menu_OpticalDevices] = new UIActionMenuOpticalDevices(this);1506 if (m_pool[UIActionIndexR untime_Menu_FloppyDevices])1507 delete m_pool[UIActionIndexR untime_Menu_FloppyDevices];1508 m_pool[UIActionIndexR untime_Menu_FloppyDevices] = new UIActionMenuFloppyDevices(this);1509 if (m_pool[UIActionIndexR untime_Menu_USBDevices])1510 delete m_pool[UIActionIndexR untime_Menu_USBDevices];1511 m_pool[UIActionIndexR untime_Menu_USBDevices] = new UIActionMenuUSBDevices(this);1512 if (m_pool[UIActionIndexR untime_Menu_WebCams])1513 delete m_pool[UIActionIndexR untime_Menu_WebCams];1514 m_pool[UIActionIndexR untime_Menu_WebCams] = new UIActionMenuWebCams(this);1515 if (m_pool[UIActionIndexR untime_Menu_SharedClipboard])1516 delete m_pool[UIActionIndexR untime_Menu_SharedClipboard];1517 m_pool[UIActionIndexR untime_Menu_SharedClipboard] = new UIActionMenuSharedClipboard(this);1518 if (m_pool[UIActionIndexR untime_Menu_DragAndDrop])1519 delete m_pool[UIActionIndexR untime_Menu_DragAndDrop];1520 m_pool[UIActionIndexR untime_Menu_DragAndDrop] = new UIActionMenuDragAndDrop(this);1521 if (m_pool[UIActionIndexR untime_Menu_Network])1522 delete m_pool[UIActionIndexR untime_Menu_Network];1523 m_pool[UIActionIndexR untime_Menu_Network] = new UIActionMenuNetworkAdapters(this);1524 if (m_pool[UIActionIndexR untime_Menu_SharedFolders])1525 delete m_pool[UIActionIndexR untime_Menu_SharedFolders];1526 m_pool[UIActionIndexR untime_Menu_SharedFolders] = new UIActionMenuSharedFolders(this);1527 if (m_pool[UIActionIndexR untime_Menu_VideoCapture])1528 delete m_pool[UIActionIndexR untime_Menu_VideoCapture];1529 m_pool[UIActionIndexR untime_Menu_VideoCapture] = new UIActionMenuVideoCapture(this);1497 if (m_pool[UIActionIndexRT_M_Devices]) 1498 delete m_pool[UIActionIndexRT_M_Devices]; 1499 m_pool[UIActionIndexRT_M_Devices] = new UIActionMenuDevices(this); 1500 if (m_pool[UIActionIndexRT_M_Devices_M_HardDrives]) 1501 delete m_pool[UIActionIndexRT_M_Devices_M_HardDrives]; 1502 m_pool[UIActionIndexRT_M_Devices_M_HardDrives] = new UIActionMenuHardDisks(this); 1503 if (m_pool[UIActionIndexRT_M_Devices_M_OpticalDevices]) 1504 delete m_pool[UIActionIndexRT_M_Devices_M_OpticalDevices]; 1505 m_pool[UIActionIndexRT_M_Devices_M_OpticalDevices] = new UIActionMenuOpticalDevices(this); 1506 if (m_pool[UIActionIndexRT_M_Devices_M_FloppyDevices]) 1507 delete m_pool[UIActionIndexRT_M_Devices_M_FloppyDevices]; 1508 m_pool[UIActionIndexRT_M_Devices_M_FloppyDevices] = new UIActionMenuFloppyDevices(this); 1509 if (m_pool[UIActionIndexRT_M_Devices_M_USBDevices]) 1510 delete m_pool[UIActionIndexRT_M_Devices_M_USBDevices]; 1511 m_pool[UIActionIndexRT_M_Devices_M_USBDevices] = new UIActionMenuUSBDevices(this); 1512 if (m_pool[UIActionIndexRT_M_Devices_M_WebCams]) 1513 delete m_pool[UIActionIndexRT_M_Devices_M_WebCams]; 1514 m_pool[UIActionIndexRT_M_Devices_M_WebCams] = new UIActionMenuWebCams(this); 1515 if (m_pool[UIActionIndexRT_M_Devices_M_SharedClipboard]) 1516 delete m_pool[UIActionIndexRT_M_Devices_M_SharedClipboard]; 1517 m_pool[UIActionIndexRT_M_Devices_M_SharedClipboard] = new UIActionMenuSharedClipboard(this); 1518 if (m_pool[UIActionIndexRT_M_Devices_M_DragAndDrop]) 1519 delete m_pool[UIActionIndexRT_M_Devices_M_DragAndDrop]; 1520 m_pool[UIActionIndexRT_M_Devices_M_DragAndDrop] = new UIActionMenuDragAndDrop(this); 1521 if (m_pool[UIActionIndexRT_M_Devices_M_Network]) 1522 delete m_pool[UIActionIndexRT_M_Devices_M_Network]; 1523 m_pool[UIActionIndexRT_M_Devices_M_Network] = new UIActionMenuNetworkAdapters(this); 1524 if (m_pool[UIActionIndexRT_M_Devices_M_SharedFolders]) 1525 delete m_pool[UIActionIndexRT_M_Devices_M_SharedFolders]; 1526 m_pool[UIActionIndexRT_M_Devices_M_SharedFolders] = new UIActionMenuSharedFolders(this); 1527 if (m_pool[UIActionIndexRT_M_Devices_M_VideoCapture]) 1528 delete m_pool[UIActionIndexRT_M_Devices_M_VideoCapture]; 1529 m_pool[UIActionIndexRT_M_Devices_M_VideoCapture] = new UIActionMenuVideoCapture(this); 1530 1530 1531 1531 #ifdef VBOX_WITH_DEBUGGER_GUI 1532 1532 /* 'Debug' menu: */ 1533 if (m_pool[UIActionIndexR untime_Menu_Debug])1534 delete m_pool[UIActionIndexR untime_Menu_Debug];1535 m_pool[UIActionIndexR untime_Menu_Debug] = new UIActionMenuDebug(this);1533 if (m_pool[UIActionIndexRT_M_Debug]) 1534 delete m_pool[UIActionIndexRT_M_Debug]; 1535 m_pool[UIActionIndexRT_M_Debug] = new UIActionMenuDebug(this); 1536 1536 #endif /* VBOX_WITH_DEBUGGER_GUI */ 1537 1537 1538 1538 #ifdef Q_WS_MAC 1539 1539 /* 'Dock' menu: */ 1540 if (m_pool[UIActionIndexR untime_Menu_Dock])1541 delete m_pool[UIActionIndexR untime_Menu_Dock];1542 m_pool[UIActionIndexR untime_Menu_Dock] = new UIActionMenuDock(this);1543 if (m_pool[UIActionIndexR untime_Menu_DockSettings])1544 delete m_pool[UIActionIndexR untime_Menu_DockSettings];1545 m_pool[UIActionIndexR untime_Menu_DockSettings] = new UIActionMenuDockSettings(this);1540 if (m_pool[UIActionIndexRT_M_Dock]) 1541 delete m_pool[UIActionIndexRT_M_Dock]; 1542 m_pool[UIActionIndexRT_M_Dock] = new UIActionMenuDock(this); 1543 if (m_pool[UIActionIndexRT_M_Dock_M_DockSettings]) 1544 delete m_pool[UIActionIndexRT_M_Dock_M_DockSettings]; 1545 m_pool[UIActionIndexRT_M_Dock_M_DockSettings] = new UIActionMenuDockSettings(this); 1546 1546 #endif /* Q_WS_MAC */ 1547 1547 } -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIActionPoolRuntime.h
r52112 r52133 23 23 #include "UIActionPool.h" 24 24 25 /* Action keys: */ 26 enum UIActionIndexRuntime 25 /** Runtime action-pool index enum. 26 * Naming convention is following: 27 * 1. Every simple-action index prepended with 'S', 28 * 2. Every toggle-action index presended with 'T', 29 * 3. Every menu index prepended with 'M', 30 * 4. Every sub-index contains full parent-index name. */ 31 enum UIActionIndexRT 27 32 { 28 33 /* 'Machine' menu actions: */ 29 UIActionIndexR untime_Menu_Machine = UIActionIndex_Max + 1,30 UIActionIndexR untime_Simple_SettingsDialog,31 UIActionIndexR untime_Simple_TakeSnapshot,32 UIActionIndexR untime_Simple_TakeScreenshot,33 UIActionIndexR untime_Simple_InformationDialog,34 UIActionIndexR untime_Menu_Keyboard,35 UIActionIndexR untime_Simple_KeyboardSettings,36 UIActionIndexR untime_Menu_MouseIntegration,37 UIActionIndexR untime_Toggle_MouseIntegration,38 UIActionIndexR untime_Simple_TypeCAD,34 UIActionIndexRT_M_Machine = UIActionIndex_Max + 1, 35 UIActionIndexRT_M_Machine_S_Settings, 36 UIActionIndexRT_M_Machine_S_TakeSnapshot, 37 UIActionIndexRT_M_Machine_S_TakeScreenshot, 38 UIActionIndexRT_M_Machine_S_ShowInformation, 39 UIActionIndexRT_M_Machine_M_Keyboard, 40 UIActionIndexRT_M_Machine_M_Keyboard_S_Settings, 41 UIActionIndexRT_M_Machine_M_Mouse, 42 UIActionIndexRT_M_Machine_M_Mouse_T_Integration, 43 UIActionIndexRT_M_Machine_S_TypeCAD, 39 44 #ifdef Q_WS_X11 40 UIActionIndexR untime_Simple_TypeCABS,45 UIActionIndexRT_M_Machine_S_TypeCABS, 41 46 #endif /* Q_WS_X11 */ 42 UIActionIndexR untime_Toggle_Pause,43 UIActionIndexR untime_Simple_Reset,44 UIActionIndexR untime_Simple_Save,45 UIActionIndexR untime_Simple_Shutdown,46 UIActionIndexR untime_Simple_PowerOff,47 UIActionIndexR untime_Simple_Close,47 UIActionIndexRT_M_Machine_T_Pause, 48 UIActionIndexRT_M_Machine_S_Reset, 49 UIActionIndexRT_M_Machine_S_Save, 50 UIActionIndexRT_M_Machine_S_Shutdown, 51 UIActionIndexRT_M_Machine_S_PowerOff, 52 UIActionIndexRT_M_Machine_S_Close, 48 53 49 54 /* 'View' menu actions: */ 50 UIActionIndexR untime_Menu_View,51 UIActionIndexR untime_Menu_ViewPopup,52 UIActionIndexR untime_Toggle_Fullscreen,53 UIActionIndexR untime_Toggle_Seamless,54 UIActionIndexR untime_Toggle_Scale,55 UIActionIndexR untime_Toggle_GuestAutoresize,56 UIActionIndexR untime_Simple_AdjustWindow,57 UIActionIndexR untime_Menu_StatusBar,58 UIActionIndexR untime_Simple_StatusBarSettings,59 UIActionIndexR untime_Toggle_StatusBar,55 UIActionIndexRT_M_View, 56 UIActionIndexRT_M_ViewPopup, 57 UIActionIndexRT_M_View_T_Fullscreen, 58 UIActionIndexRT_M_View_T_Seamless, 59 UIActionIndexRT_M_View_T_Scale, 60 UIActionIndexRT_M_View_S_AdjustWindow, 61 UIActionIndexRT_M_View_T_GuestAutoresize, 62 UIActionIndexRT_M_View_M_StatusBar, 63 UIActionIndexRT_M_View_M_StatusBar_S_Settings, 64 UIActionIndexRT_M_View_M_StatusBar_T_Visibility, 60 65 61 66 /* 'Devices' menu actions: */ 62 UIActionIndexR untime_Menu_Devices,63 UIActionIndexR untime_Menu_HardDisks,64 UIActionIndexR untime_Simple_StorageSettings,65 UIActionIndexR untime_Menu_OpticalDevices,66 UIActionIndexR untime_Menu_FloppyDevices,67 UIActionIndexR untime_Menu_USBDevices,68 UIActionIndexR untime_Menu_WebCams,69 UIActionIndexR untime_Menu_SharedClipboard,70 UIActionIndexR untime_Menu_DragAndDrop,71 UIActionIndexR untime_Menu_Network,72 UIActionIndexR untime_Simple_NetworkSettings,73 UIActionIndexR untime_Menu_SharedFolders,74 UIActionIndexR untime_Simple_SharedFoldersSettings,75 UIActionIndexR untime_Toggle_VRDEServer,76 UIActionIndexR untime_Menu_VideoCapture,77 UIActionIndexR untime_Toggle_VideoCapture,78 UIActionIndexR untime_Simple_VideoCaptureSettings,79 UIActionIndexR untime_Simple_InstallGuestTools,67 UIActionIndexRT_M_Devices, 68 UIActionIndexRT_M_Devices_M_HardDrives, 69 UIActionIndexRT_M_Devices_M_HardDrives_S_Settings, 70 UIActionIndexRT_M_Devices_M_OpticalDevices, 71 UIActionIndexRT_M_Devices_M_FloppyDevices, 72 UIActionIndexRT_M_Devices_M_USBDevices, 73 UIActionIndexRT_M_Devices_M_WebCams, 74 UIActionIndexRT_M_Devices_M_SharedClipboard, 75 UIActionIndexRT_M_Devices_M_DragAndDrop, 76 UIActionIndexRT_M_Devices_M_Network, 77 UIActionIndexRT_M_Devices_M_Network_S_Settings, 78 UIActionIndexRT_M_Devices_M_SharedFolders, 79 UIActionIndexRT_M_Devices_M_SharedFolders_S_Settings, 80 UIActionIndexRT_M_Devices_T_VRDEServer, 81 UIActionIndexRT_M_Devices_M_VideoCapture, 82 UIActionIndexRT_M_Devices_M_VideoCapture_S_Settings, 83 UIActionIndexRT_M_Devices_M_VideoCapture_T_Start, 84 UIActionIndexRT_M_Devices_S_InstallGuestTools, 80 85 81 86 #ifdef VBOX_WITH_DEBUGGER_GUI 82 87 /* 'Debugger' menu actions: */ 83 UIActionIndexR untime_Menu_Debug,84 UIActionIndexR untime_Simple_Statistics,85 UIActionIndexR untime_Simple_CommandLine,86 UIActionIndexR untime_Toggle_Logging,88 UIActionIndexRT_M_Debug, 89 UIActionIndexRT_M_Debug_S_ShowStatistics, 90 UIActionIndexRT_M_Debug_S_ShowCommandLine, 91 UIActionIndexRT_M_Debug_T_Logging, 87 92 #endif /* VBOX_WITH_DEBUGGER_GUI */ 88 93 89 94 #ifdef Q_WS_MAC 90 95 /* 'Dock' menu actions: */ 91 UIActionIndexR untime_Menu_Dock,92 UIActionIndexR untime_Menu_DockSettings,93 UIActionIndexR untime_Toggle_DockPreviewMonitor,94 UIActionIndexR untime_Toggle_DockDisableMonitor,96 UIActionIndexRT_M_Dock, 97 UIActionIndexRT_M_Dock_M_DockSettings, 98 UIActionIndexRT_M_Dock_M_DockSettings_T_PreviewMonitor, 99 UIActionIndexRT_M_Dock_M_DockSettings_T_DisableMonitor, 95 100 #endif /* Q_WS_MAC */ 96 101 97 102 /* Maximum index: */ 98 UIActionIndexR untime_Max103 UIActionIndexRT_Max 99 104 }; 100 105 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineLogic.cpp
r52132 r52133 273 273 /* Append 'Machine' menu: */ 274 274 if (uisession()->allowedMenus() & RuntimeMenuType_Machine) 275 result << gActionPool->action(UIActionIndexR untime_Menu_Machine)->menu();275 result << gActionPool->action(UIActionIndexRT_M_Machine)->menu(); 276 276 /* Append 'View' menu: */ 277 277 if (uisession()->allowedMenus() & RuntimeMenuType_View) 278 result << gActionPool->action(UIActionIndexR untime_Menu_View)->menu();278 result << gActionPool->action(UIActionIndexRT_M_View)->menu(); 279 279 /* Append 'Devices' menu: */ 280 280 if (uisession()->allowedMenus() & RuntimeMenuType_Devices) 281 result << gActionPool->action(UIActionIndexR untime_Menu_Devices)->menu();281 result << gActionPool->action(UIActionIndexRT_M_Devices)->menu(); 282 282 #ifdef VBOX_WITH_DEBUGGER_GUI 283 283 /* Append 'Debug' menu: */ 284 284 if (uisession()->allowedMenus() & RuntimeMenuType_Debug) 285 result << gActionPool->action(UIActionIndexR untime_Menu_Debug)->menu();285 result << gActionPool->action(UIActionIndexRT_M_Debug)->menu(); 286 286 #endif /* VBOX_WITH_DEBUGGER_GUI */ 287 287 /* Append 'Help' menu: */ … … 474 474 case KMachineState_TeleportingPausedVM: 475 475 { 476 QAction *pPauseAction = gActionPool->action(UIActionIndexR untime_Toggle_Pause);476 QAction *pPauseAction = gActionPool->action(UIActionIndexRT_M_Machine_T_Pause); 477 477 if (!pPauseAction->isChecked()) 478 478 { … … 488 488 case KMachineState_LiveSnapshotting: 489 489 { 490 QAction *pPauseAction = gActionPool->action(UIActionIndexR untime_Toggle_Pause);490 QAction *pPauseAction = gActionPool->action(UIActionIndexRT_M_Machine_T_Pause); 491 491 if (pPauseAction->isChecked()) 492 492 { … … 536 536 { 537 537 /* Update action states: */ 538 gActionPool->action(UIActionIndexR untime_Toggle_GuestAutoresize)->setEnabled(uisession()->isGuestSupportsGraphics());539 gActionPool->action(UIActionIndexR untime_Toggle_Seamless)->setEnabled(uisession()->isVisualStateAllowed(UIVisualStateType_Seamless) &&538 gActionPool->action(UIActionIndexRT_M_View_T_GuestAutoresize)->setEnabled(uisession()->isGuestSupportsGraphics()); 539 gActionPool->action(UIActionIndexRT_M_View_T_Seamless)->setEnabled(uisession()->isVisualStateAllowed(UIVisualStateType_Seamless) && 540 540 uisession()->isGuestSupportsSeamless()); 541 541 } … … 553 553 554 554 /* Update action state: */ 555 QAction *pAction = gActionPool->action(UIActionIndexR untime_Toggle_MouseIntegration);555 QAction *pAction = gActionPool->action(UIActionIndexRT_M_Machine_M_Mouse_T_Integration); 556 556 pAction->setEnabled(fIsMouseSupportsAbsolute && fIsMouseSupportsRelative && !fIsMouseHostCursorNeeded); 557 557 if (fIsMouseHostCursorNeeded) … … 862 862 863 863 /* Move actions into running actions group: */ 864 m_pRunningActions->addAction(gActionPool->action(UIActionIndexR untime_Simple_TypeCAD));864 m_pRunningActions->addAction(gActionPool->action(UIActionIndexRT_M_Machine_S_TypeCAD)); 865 865 #ifdef Q_WS_X11 866 m_pRunningActions->addAction(gActionPool->action(UIActionIndexR untime_Simple_TypeCABS));866 m_pRunningActions->addAction(gActionPool->action(UIActionIndexRT_M_Machine_S_TypeCABS)); 867 867 #endif 868 m_pRunningActions->addAction(gActionPool->action(UIActionIndexR untime_Simple_Reset));869 m_pRunningActions->addAction(gActionPool->action(UIActionIndexR untime_Simple_Shutdown));870 m_pRunningActions->addAction(gActionPool->action(UIActionIndexR untime_Menu_ViewPopup));871 m_pRunningActions->addAction(gActionPool->action(UIActionIndexR untime_Toggle_Fullscreen));872 m_pRunningActions->addAction(gActionPool->action(UIActionIndexR untime_Toggle_Seamless));873 m_pRunningActions->addAction(gActionPool->action(UIActionIndexR untime_Toggle_Scale));874 m_pRunningActions->addAction(gActionPool->action(UIActionIndexR untime_Toggle_GuestAutoresize));875 m_pRunningActions->addAction(gActionPool->action(UIActionIndexR untime_Simple_AdjustWindow));868 m_pRunningActions->addAction(gActionPool->action(UIActionIndexRT_M_Machine_S_Reset)); 869 m_pRunningActions->addAction(gActionPool->action(UIActionIndexRT_M_Machine_S_Shutdown)); 870 m_pRunningActions->addAction(gActionPool->action(UIActionIndexRT_M_ViewPopup)); 871 m_pRunningActions->addAction(gActionPool->action(UIActionIndexRT_M_View_T_Fullscreen)); 872 m_pRunningActions->addAction(gActionPool->action(UIActionIndexRT_M_View_T_Seamless)); 873 m_pRunningActions->addAction(gActionPool->action(UIActionIndexRT_M_View_T_Scale)); 874 m_pRunningActions->addAction(gActionPool->action(UIActionIndexRT_M_View_T_GuestAutoresize)); 875 m_pRunningActions->addAction(gActionPool->action(UIActionIndexRT_M_View_S_AdjustWindow)); 876 876 877 877 /* Move actions into running-n-paused actions group: */ 878 m_pRunningOrPausedActions->addAction(gActionPool->action(UIActionIndexR untime_Simple_Save));879 m_pRunningOrPausedActions->addAction(gActionPool->action(UIActionIndexR untime_Simple_SettingsDialog));880 m_pRunningOrPausedActions->addAction(gActionPool->action(UIActionIndexR untime_Simple_TakeSnapshot));881 m_pRunningOrPausedActions->addAction(gActionPool->action(UIActionIndexR untime_Simple_TakeScreenshot));882 m_pRunningOrPausedActions->addAction(gActionPool->action(UIActionIndexR untime_Simple_InformationDialog));883 m_pRunningOrPausedActions->addAction(gActionPool->action(UIActionIndexR untime_Menu_Keyboard));884 m_pRunningOrPausedActions->addAction(gActionPool->action(UIActionIndexR untime_Simple_KeyboardSettings));885 m_pRunningOrPausedActions->addAction(gActionPool->action(UIActionIndexR untime_Menu_MouseIntegration));886 m_pRunningOrPausedActions->addAction(gActionPool->action(UIActionIndexR untime_Toggle_MouseIntegration));887 m_pRunningOrPausedActions->addAction(gActionPool->action(UIActionIndexR untime_Toggle_Pause));888 m_pRunningOrPausedActions->addAction(gActionPool->action(UIActionIndexR untime_Menu_StatusBar));889 m_pRunningOrPausedActions->addAction(gActionPool->action(UIActionIndexR untime_Simple_StatusBarSettings));890 m_pRunningOrPausedActions->addAction(gActionPool->action(UIActionIndexR untime_Toggle_StatusBar));891 m_pRunningOrPausedActions->addAction(gActionPool->action(UIActionIndexR untime_Menu_HardDisks));892 m_pRunningOrPausedActions->addAction(gActionPool->action(UIActionIndexR untime_Simple_StorageSettings));893 m_pRunningOrPausedActions->addAction(gActionPool->action(UIActionIndexR untime_Menu_OpticalDevices));894 m_pRunningOrPausedActions->addAction(gActionPool->action(UIActionIndexR untime_Menu_FloppyDevices));895 m_pRunningOrPausedActions->addAction(gActionPool->action(UIActionIndexR untime_Menu_USBDevices));896 m_pRunningOrPausedActions->addAction(gActionPool->action(UIActionIndexR untime_Menu_WebCams));897 m_pRunningOrPausedActions->addAction(gActionPool->action(UIActionIndexR untime_Menu_SharedClipboard));898 m_pRunningOrPausedActions->addAction(gActionPool->action(UIActionIndexR untime_Menu_DragAndDrop));899 m_pRunningOrPausedActions->addAction(gActionPool->action(UIActionIndexR untime_Menu_Network));900 m_pRunningOrPausedActions->addAction(gActionPool->action(UIActionIndexR untime_Simple_NetworkSettings));901 m_pRunningOrPausedActions->addAction(gActionPool->action(UIActionIndexR untime_Menu_SharedFolders));902 m_pRunningOrPausedActions->addAction(gActionPool->action(UIActionIndexR untime_Simple_SharedFoldersSettings));903 m_pRunningOrPausedActions->addAction(gActionPool->action(UIActionIndexR untime_Toggle_VRDEServer));904 m_pRunningOrPausedActions->addAction(gActionPool->action(UIActionIndexR untime_Menu_VideoCapture));905 m_pRunningOrPausedActions->addAction(gActionPool->action(UIActionIndexR untime_Toggle_VideoCapture));906 m_pRunningOrPausedActions->addAction(gActionPool->action(UIActionIndexR untime_Simple_VideoCaptureSettings));907 m_pRunningOrPausedActions->addAction(gActionPool->action(UIActionIndexR untime_Simple_InstallGuestTools));878 m_pRunningOrPausedActions->addAction(gActionPool->action(UIActionIndexRT_M_Machine_S_Save)); 879 m_pRunningOrPausedActions->addAction(gActionPool->action(UIActionIndexRT_M_Machine_S_Settings)); 880 m_pRunningOrPausedActions->addAction(gActionPool->action(UIActionIndexRT_M_Machine_S_TakeSnapshot)); 881 m_pRunningOrPausedActions->addAction(gActionPool->action(UIActionIndexRT_M_Machine_S_TakeScreenshot)); 882 m_pRunningOrPausedActions->addAction(gActionPool->action(UIActionIndexRT_M_Machine_S_ShowInformation)); 883 m_pRunningOrPausedActions->addAction(gActionPool->action(UIActionIndexRT_M_Machine_M_Keyboard)); 884 m_pRunningOrPausedActions->addAction(gActionPool->action(UIActionIndexRT_M_Machine_M_Keyboard_S_Settings)); 885 m_pRunningOrPausedActions->addAction(gActionPool->action(UIActionIndexRT_M_Machine_M_Mouse)); 886 m_pRunningOrPausedActions->addAction(gActionPool->action(UIActionIndexRT_M_Machine_M_Mouse_T_Integration)); 887 m_pRunningOrPausedActions->addAction(gActionPool->action(UIActionIndexRT_M_Machine_T_Pause)); 888 m_pRunningOrPausedActions->addAction(gActionPool->action(UIActionIndexRT_M_View_M_StatusBar)); 889 m_pRunningOrPausedActions->addAction(gActionPool->action(UIActionIndexRT_M_View_M_StatusBar_S_Settings)); 890 m_pRunningOrPausedActions->addAction(gActionPool->action(UIActionIndexRT_M_View_M_StatusBar_T_Visibility)); 891 m_pRunningOrPausedActions->addAction(gActionPool->action(UIActionIndexRT_M_Devices_M_HardDrives)); 892 m_pRunningOrPausedActions->addAction(gActionPool->action(UIActionIndexRT_M_Devices_M_HardDrives_S_Settings)); 893 m_pRunningOrPausedActions->addAction(gActionPool->action(UIActionIndexRT_M_Devices_M_OpticalDevices)); 894 m_pRunningOrPausedActions->addAction(gActionPool->action(UIActionIndexRT_M_Devices_M_FloppyDevices)); 895 m_pRunningOrPausedActions->addAction(gActionPool->action(UIActionIndexRT_M_Devices_M_USBDevices)); 896 m_pRunningOrPausedActions->addAction(gActionPool->action(UIActionIndexRT_M_Devices_M_WebCams)); 897 m_pRunningOrPausedActions->addAction(gActionPool->action(UIActionIndexRT_M_Devices_M_SharedClipboard)); 898 m_pRunningOrPausedActions->addAction(gActionPool->action(UIActionIndexRT_M_Devices_M_DragAndDrop)); 899 m_pRunningOrPausedActions->addAction(gActionPool->action(UIActionIndexRT_M_Devices_M_Network)); 900 m_pRunningOrPausedActions->addAction(gActionPool->action(UIActionIndexRT_M_Devices_M_Network_S_Settings)); 901 m_pRunningOrPausedActions->addAction(gActionPool->action(UIActionIndexRT_M_Devices_M_SharedFolders)); 902 m_pRunningOrPausedActions->addAction(gActionPool->action(UIActionIndexRT_M_Devices_M_SharedFolders_S_Settings)); 903 m_pRunningOrPausedActions->addAction(gActionPool->action(UIActionIndexRT_M_Devices_T_VRDEServer)); 904 m_pRunningOrPausedActions->addAction(gActionPool->action(UIActionIndexRT_M_Devices_M_VideoCapture)); 905 m_pRunningOrPausedActions->addAction(gActionPool->action(UIActionIndexRT_M_Devices_M_VideoCapture_T_Start)); 906 m_pRunningOrPausedActions->addAction(gActionPool->action(UIActionIndexRT_M_Devices_M_VideoCapture_S_Settings)); 907 m_pRunningOrPausedActions->addAction(gActionPool->action(UIActionIndexRT_M_Devices_S_InstallGuestTools)); 908 908 909 909 /* Move actions into running-n-paused-n-stucked actions group: */ 910 m_pRunningOrPausedOrStackedActions->addAction(gActionPool->action(UIActionIndexR untime_Simple_PowerOff));910 m_pRunningOrPausedOrStackedActions->addAction(gActionPool->action(UIActionIndexRT_M_Machine_S_PowerOff)); 911 911 } 912 912 … … 914 914 { 915 915 /* "Machine" actions connections: */ 916 connect(gActionPool->action(UIActionIndexR untime_Simple_SettingsDialog), SIGNAL(triggered()),916 connect(gActionPool->action(UIActionIndexRT_M_Machine_S_Settings), SIGNAL(triggered()), 917 917 this, SLOT(sltOpenVMSettingsDialog())); 918 connect(gActionPool->action(UIActionIndexR untime_Simple_TakeSnapshot), SIGNAL(triggered()),918 connect(gActionPool->action(UIActionIndexRT_M_Machine_S_TakeSnapshot), SIGNAL(triggered()), 919 919 this, SLOT(sltTakeSnapshot())); 920 connect(gActionPool->action(UIActionIndexR untime_Simple_TakeScreenshot), SIGNAL(triggered()),920 connect(gActionPool->action(UIActionIndexRT_M_Machine_S_TakeScreenshot), SIGNAL(triggered()), 921 921 this, SLOT(sltTakeScreenshot())); 922 connect(gActionPool->action(UIActionIndexR untime_Simple_InformationDialog), SIGNAL(triggered()),922 connect(gActionPool->action(UIActionIndexRT_M_Machine_S_ShowInformation), SIGNAL(triggered()), 923 923 this, SLOT(sltShowInformationDialog())); 924 connect(gActionPool->action(UIActionIndexR untime_Simple_KeyboardSettings), SIGNAL(triggered()),924 connect(gActionPool->action(UIActionIndexRT_M_Machine_M_Keyboard_S_Settings), SIGNAL(triggered()), 925 925 this, SLOT(sltShowKeyboardSettings())); 926 connect(gActionPool->action(UIActionIndexR untime_Toggle_MouseIntegration), SIGNAL(toggled(bool)),926 connect(gActionPool->action(UIActionIndexRT_M_Machine_M_Mouse_T_Integration), SIGNAL(toggled(bool)), 927 927 this, SLOT(sltToggleMouseIntegration(bool))); 928 connect(gActionPool->action(UIActionIndexR untime_Simple_TypeCAD), SIGNAL(triggered()),928 connect(gActionPool->action(UIActionIndexRT_M_Machine_S_TypeCAD), SIGNAL(triggered()), 929 929 this, SLOT(sltTypeCAD())); 930 930 #ifdef Q_WS_X11 931 connect(gActionPool->action(UIActionIndexR untime_Simple_TypeCABS), SIGNAL(triggered()),931 connect(gActionPool->action(UIActionIndexRT_M_Machine_S_TypeCABS), SIGNAL(triggered()), 932 932 this, SLOT(sltTypeCABS())); 933 933 #endif 934 connect(gActionPool->action(UIActionIndexR untime_Toggle_Pause), SIGNAL(toggled(bool)),934 connect(gActionPool->action(UIActionIndexRT_M_Machine_T_Pause), SIGNAL(toggled(bool)), 935 935 this, SLOT(sltPause(bool))); 936 connect(gActionPool->action(UIActionIndexR untime_Simple_Reset), SIGNAL(triggered()),936 connect(gActionPool->action(UIActionIndexRT_M_Machine_S_Reset), SIGNAL(triggered()), 937 937 this, SLOT(sltReset())); 938 connect(gActionPool->action(UIActionIndexR untime_Simple_Save), SIGNAL(triggered()),938 connect(gActionPool->action(UIActionIndexRT_M_Machine_S_Save), SIGNAL(triggered()), 939 939 this, SLOT(sltSaveState())); 940 connect(gActionPool->action(UIActionIndexR untime_Simple_Shutdown), SIGNAL(triggered()),940 connect(gActionPool->action(UIActionIndexRT_M_Machine_S_Shutdown), SIGNAL(triggered()), 941 941 this, SLOT(sltShutdown())); 942 connect(gActionPool->action(UIActionIndexR untime_Simple_PowerOff), SIGNAL(triggered()),942 connect(gActionPool->action(UIActionIndexRT_M_Machine_S_PowerOff), SIGNAL(triggered()), 943 943 this, SLOT(sltPowerOff())); 944 connect(gActionPool->action(UIActionIndexR untime_Simple_Close), SIGNAL(triggered()),944 connect(gActionPool->action(UIActionIndexRT_M_Machine_S_Close), SIGNAL(triggered()), 945 945 this, SLOT(sltClose())); 946 946 947 947 /* "View" actions connections: */ 948 connect(gActionPool->action(UIActionIndexR untime_Toggle_GuestAutoresize), SIGNAL(toggled(bool)),948 connect(gActionPool->action(UIActionIndexRT_M_View_T_GuestAutoresize), SIGNAL(toggled(bool)), 949 949 this, SLOT(sltToggleGuestAutoresize(bool))); 950 connect(gActionPool->action(UIActionIndexR untime_Simple_AdjustWindow), SIGNAL(triggered()),950 connect(gActionPool->action(UIActionIndexRT_M_View_S_AdjustWindow), SIGNAL(triggered()), 951 951 this, SLOT(sltAdjustWindow())); 952 952 953 953 /* "Devices" actions connections: */ 954 connect(gActionPool->action(UIActionIndexR untime_Simple_StorageSettings), SIGNAL(triggered()),954 connect(gActionPool->action(UIActionIndexRT_M_Devices_M_HardDrives_S_Settings), SIGNAL(triggered()), 955 955 this, SLOT(sltOpenStorageSettingsDialog())); 956 connect(gActionPool->action(UIActionIndexR untime_Menu_OpticalDevices)->menu(), SIGNAL(aboutToShow()),956 connect(gActionPool->action(UIActionIndexRT_M_Devices_M_OpticalDevices)->menu(), SIGNAL(aboutToShow()), 957 957 this, SLOT(sltPrepareStorageMenu())); 958 connect(gActionPool->action(UIActionIndexR untime_Menu_FloppyDevices)->menu(), SIGNAL(aboutToShow()),958 connect(gActionPool->action(UIActionIndexRT_M_Devices_M_FloppyDevices)->menu(), SIGNAL(aboutToShow()), 959 959 this, SLOT(sltPrepareStorageMenu())); 960 connect(gActionPool->action(UIActionIndexR untime_Menu_USBDevices)->menu(), SIGNAL(aboutToShow()),960 connect(gActionPool->action(UIActionIndexRT_M_Devices_M_USBDevices)->menu(), SIGNAL(aboutToShow()), 961 961 this, SLOT(sltPrepareUSBMenu())); 962 connect(gActionPool->action(UIActionIndexR untime_Menu_WebCams)->menu(), SIGNAL(aboutToShow()),962 connect(gActionPool->action(UIActionIndexRT_M_Devices_M_WebCams)->menu(), SIGNAL(aboutToShow()), 963 963 this, SLOT(sltPrepareWebCamMenu())); 964 connect(gActionPool->action(UIActionIndexR untime_Menu_SharedClipboard)->menu(), SIGNAL(aboutToShow()),964 connect(gActionPool->action(UIActionIndexRT_M_Devices_M_SharedClipboard)->menu(), SIGNAL(aboutToShow()), 965 965 this, SLOT(sltPrepareSharedClipboardMenu())); 966 connect(gActionPool->action(UIActionIndexR untime_Menu_DragAndDrop)->menu(), SIGNAL(aboutToShow()),966 connect(gActionPool->action(UIActionIndexRT_M_Devices_M_DragAndDrop)->menu(), SIGNAL(aboutToShow()), 967 967 this, SLOT(sltPrepareDragAndDropMenu())); 968 connect(gActionPool->action(UIActionIndexR untime_Menu_Network)->menu(), SIGNAL(aboutToShow()),968 connect(gActionPool->action(UIActionIndexRT_M_Devices_M_Network)->menu(), SIGNAL(aboutToShow()), 969 969 this, SLOT(sltPrepareNetworkMenu())); 970 connect(gActionPool->action(UIActionIndexR untime_Simple_NetworkSettings), SIGNAL(triggered()),970 connect(gActionPool->action(UIActionIndexRT_M_Devices_M_Network_S_Settings), SIGNAL(triggered()), 971 971 this, SLOT(sltOpenNetworkAdaptersDialog())); 972 connect(gActionPool->action(UIActionIndexR untime_Simple_SharedFoldersSettings), SIGNAL(triggered()),972 connect(gActionPool->action(UIActionIndexRT_M_Devices_M_SharedFolders_S_Settings), SIGNAL(triggered()), 973 973 this, SLOT(sltOpenSharedFoldersDialog())); 974 connect(gActionPool->action(UIActionIndexR untime_Toggle_VRDEServer), SIGNAL(toggled(bool)),974 connect(gActionPool->action(UIActionIndexRT_M_Devices_T_VRDEServer), SIGNAL(toggled(bool)), 975 975 this, SLOT(sltToggleVRDE(bool))); 976 connect(gActionPool->action(UIActionIndexR untime_Toggle_VideoCapture), SIGNAL(toggled(bool)),976 connect(gActionPool->action(UIActionIndexRT_M_Devices_M_VideoCapture_T_Start), SIGNAL(toggled(bool)), 977 977 this, SLOT(sltToggleVideoCapture(bool))); 978 connect(gActionPool->action(UIActionIndexR untime_Simple_VideoCaptureSettings), SIGNAL(triggered()),978 connect(gActionPool->action(UIActionIndexRT_M_Devices_M_VideoCapture_S_Settings), SIGNAL(triggered()), 979 979 this, SLOT(sltOpenVideoCaptureOptions())); 980 connect(gActionPool->action(UIActionIndexR untime_Simple_InstallGuestTools), SIGNAL(triggered()),980 connect(gActionPool->action(UIActionIndexRT_M_Devices_S_InstallGuestTools), SIGNAL(triggered()), 981 981 this, SLOT(sltInstallGuestAdditions())); 982 982 983 983 #ifdef VBOX_WITH_DEBUGGER_GUI 984 984 /* "Debug" actions connections: */ 985 connect(gActionPool->action(UIActionIndexR untime_Menu_Debug)->menu(), SIGNAL(aboutToShow()),985 connect(gActionPool->action(UIActionIndexRT_M_Debug)->menu(), SIGNAL(aboutToShow()), 986 986 this, SLOT(sltPrepareDebugMenu())); 987 connect(gActionPool->action(UIActionIndexR untime_Simple_Statistics), SIGNAL(triggered()),987 connect(gActionPool->action(UIActionIndexRT_M_Debug_S_ShowStatistics), SIGNAL(triggered()), 988 988 this, SLOT(sltShowDebugStatistics())); 989 connect(gActionPool->action(UIActionIndexR untime_Simple_CommandLine), SIGNAL(triggered()),989 connect(gActionPool->action(UIActionIndexRT_M_Debug_S_ShowCommandLine), SIGNAL(triggered()), 990 990 this, SLOT(sltShowDebugCommandLine())); 991 connect(gActionPool->action(UIActionIndexR untime_Toggle_Logging), SIGNAL(toggled(bool)),991 connect(gActionPool->action(UIActionIndexRT_M_Debug_T_Logging), SIGNAL(toggled(bool)), 992 992 this, SLOT(sltLoggingToggled(bool))); 993 993 connect(gActionPool->action(UIActionIndex_Simple_LogDialog), SIGNAL(triggered()), … … 1037 1037 void UIMachineLogic::prepareDock() 1038 1038 { 1039 QMenu *pDockMenu = gActionPool->action(UIActionIndexR untime_Menu_Dock)->menu();1039 QMenu *pDockMenu = gActionPool->action(UIActionIndexRT_M_Dock)->menu(); 1040 1040 1041 1041 /* Add all VM menu entries to the dock menu. Leave out close and stuff like 1042 1042 * this. */ 1043 QList<QAction*> actions = gActionPool->action(UIActionIndexR untime_Menu_Machine)->menu()->actions();1043 QList<QAction*> actions = gActionPool->action(UIActionIndexRT_M_Machine)->menu()->actions(); 1044 1044 for (int i=0; i < actions.size(); ++i) 1045 1045 if (actions.at(i)->menuRole() == QAction::NoRole) … … 1047 1047 pDockMenu->addSeparator(); 1048 1048 1049 QMenu *pDockSettingsMenu = gActionPool->action(UIActionIndexR untime_Menu_DockSettings)->menu();1049 QMenu *pDockSettingsMenu = gActionPool->action(UIActionIndexRT_M_Dock_M_DockSettings)->menu(); 1050 1050 QActionGroup *pDockPreviewModeGroup = new QActionGroup(this); 1051 QAction *pDockDisablePreview = gActionPool->action(UIActionIndexR untime_Toggle_DockDisableMonitor);1051 QAction *pDockDisablePreview = gActionPool->action(UIActionIndexRT_M_Dock_M_DockSettings_T_DisableMonitor); 1052 1052 pDockPreviewModeGroup->addAction(pDockDisablePreview); 1053 QAction *pDockEnablePreviewMonitor = gActionPool->action(UIActionIndexR untime_Toggle_DockPreviewMonitor);1053 QAction *pDockEnablePreviewMonitor = gActionPool->action(UIActionIndexRT_M_Dock_M_DockSettings_T_PreviewMonitor); 1054 1054 pDockPreviewModeGroup->addAction(pDockEnablePreviewMonitor); 1055 1055 pDockSettingsMenu->addActions(pDockPreviewModeGroup->actions()); … … 1182 1182 { 1183 1183 /* Get corresponding menu: */ 1184 QMenu *pMenu = gActionPool->action(UIActionIndexR untime_Menu_Machine)->menu();1184 QMenu *pMenu = gActionPool->action(UIActionIndexRT_M_Machine)->menu(); 1185 1185 AssertPtrReturnVoid(pMenu); 1186 1186 /* Clear contents: */ … … 1194 1194 if (uisession()->allowedActionsMenuMachine() & RuntimeMenuMachineActionType_SettingsDialog) 1195 1195 { 1196 pMenu->addAction(gActionPool->action(UIActionIndexR untime_Simple_SettingsDialog));1196 pMenu->addAction(gActionPool->action(UIActionIndexRT_M_Machine_S_Settings)); 1197 1197 fSeparator1 = true; 1198 1198 } 1199 1199 else 1200 gActionPool->action(UIActionIndexR untime_Simple_SettingsDialog)->setEnabled(false);1200 gActionPool->action(UIActionIndexRT_M_Machine_S_Settings)->setEnabled(false); 1201 1201 1202 1202 /* 'Take Snapshot' action: */ … … 1204 1204 uisession()->isSnapshotOperationsAllowed()) 1205 1205 { 1206 pMenu->addAction(gActionPool->action(UIActionIndexR untime_Simple_TakeSnapshot));1206 pMenu->addAction(gActionPool->action(UIActionIndexRT_M_Machine_S_TakeSnapshot)); 1207 1207 fSeparator1 = true; 1208 1208 } 1209 1209 else 1210 gActionPool->action(UIActionIndexR untime_Simple_TakeSnapshot)->setEnabled(false);1210 gActionPool->action(UIActionIndexRT_M_Machine_S_TakeSnapshot)->setEnabled(false); 1211 1211 1212 1212 /* 'Take Screenshot' action: */ 1213 1213 if (uisession()->allowedActionsMenuMachine() & RuntimeMenuMachineActionType_TakeScreenshot) 1214 1214 { 1215 pMenu->addAction(gActionPool->action(UIActionIndexR untime_Simple_TakeScreenshot));1215 pMenu->addAction(gActionPool->action(UIActionIndexRT_M_Machine_S_TakeScreenshot)); 1216 1216 fSeparator1 = true; 1217 1217 } 1218 1218 else 1219 gActionPool->action(UIActionIndexR untime_Simple_TakeScreenshot)->setEnabled(false);1219 gActionPool->action(UIActionIndexRT_M_Machine_S_TakeScreenshot)->setEnabled(false); 1220 1220 1221 1221 /* 'Information Dialog' action: */ 1222 1222 if (uisession()->allowedActionsMenuMachine() & RuntimeMenuMachineActionType_InformationDialog) 1223 1223 { 1224 pMenu->addAction(gActionPool->action(UIActionIndexR untime_Simple_InformationDialog));1224 pMenu->addAction(gActionPool->action(UIActionIndexRT_M_Machine_S_ShowInformation)); 1225 1225 fSeparator1 = true; 1226 1226 } 1227 1227 else 1228 gActionPool->action(UIActionIndexR untime_Simple_InformationDialog)->setEnabled(false);1228 gActionPool->action(UIActionIndexRT_M_Machine_S_ShowInformation)->setEnabled(false); 1229 1229 1230 1230 /* Separator #1: */ … … 1239 1239 if (uisession()->allowedActionsMenuMachine() & RuntimeMenuMachineActionType_KeyboardSettings) 1240 1240 { 1241 // pMenu->addAction(gActionPool->action(UIActionIndexR untime_Simple_KeyboardSettings));1241 // pMenu->addAction(gActionPool->action(UIActionIndexRT_M_Machine_M_Keyboard_S_Settings)); 1242 1242 // fSeparator2 = true; 1243 1243 } 1244 1244 else 1245 gActionPool->action(UIActionIndexR untime_Simple_KeyboardSettings)->setEnabled(false);1245 gActionPool->action(UIActionIndexRT_M_Machine_M_Keyboard_S_Settings)->setEnabled(false); 1246 1246 1247 1247 /* 'Mouse Integration' action: */ 1248 1248 if (uisession()->allowedActionsMenuMachine() & RuntimeMenuMachineActionType_MouseIntegration) 1249 1249 { 1250 pMenu->addAction(gActionPool->action(UIActionIndexR untime_Toggle_MouseIntegration));1250 pMenu->addAction(gActionPool->action(UIActionIndexRT_M_Machine_M_Mouse_T_Integration)); 1251 1251 fSeparator2 = true; 1252 1252 } 1253 1253 else 1254 gActionPool->action(UIActionIndexR untime_Toggle_MouseIntegration)->setEnabled(false);1254 gActionPool->action(UIActionIndexRT_M_Machine_M_Mouse_T_Integration)->setEnabled(false); 1255 1255 1256 1256 /* Separator #2: */ … … 1265 1265 if (uisession()->allowedActionsMenuMachine() & RuntimeMenuMachineActionType_TypeCAD) 1266 1266 { 1267 pMenu->addAction(gActionPool->action(UIActionIndexR untime_Simple_TypeCAD));1267 pMenu->addAction(gActionPool->action(UIActionIndexRT_M_Machine_S_TypeCAD)); 1268 1268 fSeparator3 = true; 1269 1269 } 1270 1270 else 1271 gActionPool->action(UIActionIndexR untime_Simple_TypeCAD)->setEnabled(false);1271 gActionPool->action(UIActionIndexRT_M_Machine_S_TypeCAD)->setEnabled(false); 1272 1272 1273 1273 #ifdef Q_WS_X11 … … 1275 1275 if (uisession()->allowedActionsMenuMachine() & RuntimeMenuMachineActionType_TypeCABS) 1276 1276 { 1277 pMenu->addAction(gActionPool->action(UIActionIndexR untime_Simple_TypeCABS));1277 pMenu->addAction(gActionPool->action(UIActionIndexRT_M_Machine_S_TypeCABS)); 1278 1278 fSeparator3 = true; 1279 1279 } 1280 1280 else 1281 gActionPool->action(UIActionIndexR untime_Simple_TypeCABS)->setEnabled(false);1281 gActionPool->action(UIActionIndexRT_M_Machine_S_TypeCABS)->setEnabled(false); 1282 1282 #endif /* Q_WS_X11 */ 1283 1283 … … 1293 1293 if (uisession()->allowedActionsMenuMachine() & RuntimeMenuMachineActionType_Pause) 1294 1294 { 1295 pMenu->addAction(gActionPool->action(UIActionIndexR untime_Toggle_Pause));1295 pMenu->addAction(gActionPool->action(UIActionIndexRT_M_Machine_T_Pause)); 1296 1296 fSeparator4 = true; 1297 1297 } 1298 1298 else 1299 gActionPool->action(UIActionIndexR untime_Toggle_Pause)->setEnabled(false);1299 gActionPool->action(UIActionIndexRT_M_Machine_T_Pause)->setEnabled(false); 1300 1300 1301 1301 /* 'Reset' action: */ 1302 1302 if (uisession()->allowedActionsMenuMachine() & RuntimeMenuMachineActionType_Reset) 1303 1303 { 1304 pMenu->addAction(gActionPool->action(UIActionIndexR untime_Simple_Reset));1304 pMenu->addAction(gActionPool->action(UIActionIndexRT_M_Machine_S_Reset)); 1305 1305 fSeparator4 = true; 1306 1306 } 1307 1307 else 1308 gActionPool->action(UIActionIndexR untime_Simple_Reset)->setEnabled(false);1308 gActionPool->action(UIActionIndexRT_M_Machine_S_Reset)->setEnabled(false); 1309 1309 1310 1310 /* 'Save' action: */ 1311 1311 if (uisession()->allowedActionsMenuMachine() & RuntimeMenuMachineActionType_SaveState) 1312 1312 { 1313 // pMenu->addAction(gActionPool->action(UIActionIndexR untime_Simple_Save));1313 // pMenu->addAction(gActionPool->action(UIActionIndexRT_M_Machine_S_Save)); 1314 1314 // fSeparator4 = true; 1315 1315 } 1316 1316 else 1317 gActionPool->action(UIActionIndexR untime_Simple_Save)->setEnabled(false);1317 gActionPool->action(UIActionIndexRT_M_Machine_S_Save)->setEnabled(false); 1318 1318 1319 1319 /* 'Shutdown' action: */ 1320 1320 if (uisession()->allowedActionsMenuMachine() & RuntimeMenuMachineActionType_Shutdown) 1321 1321 { 1322 pMenu->addAction(gActionPool->action(UIActionIndexR untime_Simple_Shutdown));1322 pMenu->addAction(gActionPool->action(UIActionIndexRT_M_Machine_S_Shutdown)); 1323 1323 fSeparator4 = true; 1324 1324 } 1325 1325 else 1326 gActionPool->action(UIActionIndexR untime_Simple_Shutdown)->setEnabled(false);1326 gActionPool->action(UIActionIndexRT_M_Machine_S_Shutdown)->setEnabled(false); 1327 1327 1328 1328 /* 'PowerOff' action: */ 1329 1329 if (uisession()->allowedActionsMenuMachine() & RuntimeMenuMachineActionType_PowerOff) 1330 1330 { 1331 // pMenu->addAction(gActionPool->action(UIActionIndexR untime_Simple_PowerOff));1331 // pMenu->addAction(gActionPool->action(UIActionIndexRT_M_Machine_S_PowerOff)); 1332 1332 // fSeparator4 = true; 1333 1333 } 1334 1334 else 1335 gActionPool->action(UIActionIndexR untime_Simple_PowerOff)->setEnabled(false);1335 gActionPool->action(UIActionIndexRT_M_Machine_S_PowerOff)->setEnabled(false); 1336 1336 1337 1337 #ifndef Q_WS_MAC … … 1343 1343 1344 1344 /* Close action: */ 1345 pMenu->addAction(gActionPool->action(UIActionIndexR untime_Simple_Close));1345 pMenu->addAction(gActionPool->action(UIActionIndexRT_M_Machine_S_Close)); 1346 1346 if (uisession()->isAllCloseActionsRestricted()) 1347 gActionPool->action(UIActionIndexR untime_Simple_Close)->setEnabled(false);1347 gActionPool->action(UIActionIndexRT_M_Machine_S_Close)->setEnabled(false); 1348 1348 } 1349 1349 … … 1351 1351 { 1352 1352 /* Get corresponding menu: */ 1353 QMenu *pMenu = gActionPool->action(UIActionIndexR untime_Menu_View)->menu();1353 QMenu *pMenu = gActionPool->action(UIActionIndexRT_M_View)->menu(); 1354 1354 AssertPtrReturnVoid(pMenu); 1355 1355 /* Clear contents: */ … … 1365 1365 1366 1366 /* 'Fullscreen' action: */ 1367 gActionPool->action(UIActionIndexR untime_Toggle_Fullscreen)->setEnabled(fIsAllowedFullscreen);1367 gActionPool->action(UIActionIndexRT_M_View_T_Fullscreen)->setEnabled(fIsAllowedFullscreen); 1368 1368 if (fIsAllowedFullscreen) 1369 pMenu->addAction(gActionPool->action(UIActionIndexR untime_Toggle_Fullscreen));1369 pMenu->addAction(gActionPool->action(UIActionIndexRT_M_View_T_Fullscreen)); 1370 1370 1371 1371 /* 'Seamless' action: */ 1372 gActionPool->action(UIActionIndexR untime_Toggle_Seamless)->setEnabled(fIsAllowedSeamless);1372 gActionPool->action(UIActionIndexRT_M_View_T_Seamless)->setEnabled(fIsAllowedSeamless); 1373 1373 if (fIsAllowedSeamless) 1374 pMenu->addAction(gActionPool->action(UIActionIndexR untime_Toggle_Seamless));1374 pMenu->addAction(gActionPool->action(UIActionIndexRT_M_View_T_Seamless)); 1375 1375 1376 1376 /* 'Scale' action: */ 1377 gActionPool->action(UIActionIndexR untime_Toggle_Scale)->setEnabled(fIsAllowedScale);1377 gActionPool->action(UIActionIndexRT_M_View_T_Scale)->setEnabled(fIsAllowedScale); 1378 1378 if (fIsAllowedScale) 1379 pMenu->addAction(gActionPool->action(UIActionIndexR untime_Toggle_Scale));1379 pMenu->addAction(gActionPool->action(UIActionIndexRT_M_View_T_Scale)); 1380 1380 1381 1381 /* Visual representation mode separator: */ … … 1387 1387 { 1388 1388 /* Get corresponding menu: */ 1389 QMenu *pMenu = gActionPool->action(UIActionIndexR untime_Menu_Devices)->menu();1389 QMenu *pMenu = gActionPool->action(UIActionIndexRT_M_Devices)->menu(); 1390 1390 AssertPtrReturnVoid(pMenu); 1391 1391 /* Clear contents: */ … … 1399 1399 if (uisession()->allowedActionsMenuDevices() & RuntimeMenuDevicesActionType_OpticalDevices) 1400 1400 { 1401 pMenu->addAction(gActionPool->action(UIActionIndexR untime_Menu_OpticalDevices));1401 pMenu->addAction(gActionPool->action(UIActionIndexRT_M_Devices_M_OpticalDevices)); 1402 1402 fSeparator1 = true; 1403 1403 } 1404 1404 else 1405 gActionPool->action(UIActionIndexR untime_Menu_OpticalDevices)->setEnabled(false);1405 gActionPool->action(UIActionIndexRT_M_Devices_M_OpticalDevices)->setEnabled(false); 1406 1406 1407 1407 /* 'Floppy Devices' submenu: */ 1408 1408 if (uisession()->allowedActionsMenuDevices() & RuntimeMenuDevicesActionType_FloppyDevices) 1409 1409 { 1410 pMenu->addAction(gActionPool->action(UIActionIndexR untime_Menu_FloppyDevices));1410 pMenu->addAction(gActionPool->action(UIActionIndexRT_M_Devices_M_FloppyDevices)); 1411 1411 fSeparator1 = true; 1412 1412 } 1413 1413 else 1414 gActionPool->action(UIActionIndexR untime_Menu_FloppyDevices)->setEnabled(false);1414 gActionPool->action(UIActionIndexRT_M_Devices_M_FloppyDevices)->setEnabled(false); 1415 1415 1416 1416 /* 'USB Devices' submenu: */ 1417 1417 if (uisession()->allowedActionsMenuDevices() & RuntimeMenuDevicesActionType_USBDevices) 1418 1418 { 1419 pMenu->addAction(gActionPool->action(UIActionIndexR untime_Menu_USBDevices));1419 pMenu->addAction(gActionPool->action(UIActionIndexRT_M_Devices_M_USBDevices)); 1420 1420 fSeparator1 = true; 1421 1421 } 1422 1422 else 1423 gActionPool->action(UIActionIndexR untime_Menu_USBDevices)->setEnabled(false);1423 gActionPool->action(UIActionIndexRT_M_Devices_M_USBDevices)->setEnabled(false); 1424 1424 1425 1425 /* 'Web Cams' submenu: */ 1426 1426 if (uisession()->allowedActionsMenuDevices() & RuntimeMenuDevicesActionType_WebCams) 1427 1427 { 1428 pMenu->addAction(gActionPool->action(UIActionIndexR untime_Menu_WebCams));1428 pMenu->addAction(gActionPool->action(UIActionIndexRT_M_Devices_M_WebCams)); 1429 1429 fSeparator1 = true; 1430 1430 } 1431 1431 else 1432 gActionPool->action(UIActionIndexR untime_Menu_WebCams)->setEnabled(false);1432 gActionPool->action(UIActionIndexRT_M_Devices_M_WebCams)->setEnabled(false); 1433 1433 1434 1434 /* 'Shared Clipboard' submenu: */ 1435 1435 if (uisession()->allowedActionsMenuDevices() & RuntimeMenuDevicesActionType_SharedClipboard) 1436 1436 { 1437 pMenu->addAction(gActionPool->action(UIActionIndexR untime_Menu_SharedClipboard));1437 pMenu->addAction(gActionPool->action(UIActionIndexRT_M_Devices_M_SharedClipboard)); 1438 1438 fSeparator1 = true; 1439 1439 } 1440 1440 else 1441 gActionPool->action(UIActionIndexR untime_Menu_SharedClipboard)->setEnabled(false);1441 gActionPool->action(UIActionIndexRT_M_Devices_M_SharedClipboard)->setEnabled(false); 1442 1442 1443 1443 /* 'Drag&Drop' submenu: */ 1444 1444 if (uisession()->allowedActionsMenuDevices() & RuntimeMenuDevicesActionType_DragAndDrop) 1445 1445 { 1446 pMenu->addAction(gActionPool->action(UIActionIndexR untime_Menu_DragAndDrop));1446 pMenu->addAction(gActionPool->action(UIActionIndexRT_M_Devices_M_DragAndDrop)); 1447 1447 fSeparator1 = true; 1448 1448 } 1449 1449 else 1450 gActionPool->action(UIActionIndexR untime_Menu_DragAndDrop)->setEnabled(false);1450 gActionPool->action(UIActionIndexRT_M_Devices_M_DragAndDrop)->setEnabled(false); 1451 1451 1452 1452 /* 'Network' submenu: */ 1453 1453 if (uisession()->allowedActionsMenuDevices() & RuntimeMenuDevicesActionType_Network) 1454 1454 { 1455 pMenu->addAction(gActionPool->action(UIActionIndexR untime_Menu_Network));1455 pMenu->addAction(gActionPool->action(UIActionIndexRT_M_Devices_M_Network)); 1456 1456 fSeparator1 = true; 1457 1457 } 1458 1458 else 1459 gActionPool->action(UIActionIndexR untime_Menu_Network)->setEnabled(false);1459 gActionPool->action(UIActionIndexRT_M_Devices_M_Network)->setEnabled(false); 1460 1460 updateMenuDevicesNetwork(); 1461 1461 … … 1463 1463 if (uisession()->allowedActionsMenuDevices() & RuntimeMenuDevicesActionType_SharedFoldersSettings) 1464 1464 { 1465 pMenu->addAction(gActionPool->action(UIActionIndexR untime_Simple_SharedFoldersSettings));1465 pMenu->addAction(gActionPool->action(UIActionIndexRT_M_Devices_M_SharedFolders_S_Settings)); 1466 1466 fSeparator1 = true; 1467 1467 } 1468 1468 else 1469 gActionPool->action(UIActionIndexR untime_Simple_SharedFoldersSettings)->setEnabled(false);1469 gActionPool->action(UIActionIndexRT_M_Devices_M_SharedFolders_S_Settings)->setEnabled(false); 1470 1470 1471 1471 /* Separator #1: */ … … 1480 1480 if (uisession()->allowedActionsMenuDevices() & RuntimeMenuDevicesActionType_VRDEServer) 1481 1481 { 1482 pMenu->addAction(gActionPool->action(UIActionIndexR untime_Toggle_VRDEServer));1482 pMenu->addAction(gActionPool->action(UIActionIndexRT_M_Devices_T_VRDEServer)); 1483 1483 if (!uisession()->isExtensionPackUsable()) 1484 gActionPool->action(UIActionIndexR untime_Toggle_VRDEServer)->setEnabled(false);1484 gActionPool->action(UIActionIndexRT_M_Devices_T_VRDEServer)->setEnabled(false); 1485 1485 fSeparator2 = true; 1486 1486 } 1487 1487 else 1488 gActionPool->action(UIActionIndexR untime_Toggle_VRDEServer)->setEnabled(false);1488 gActionPool->action(UIActionIndexRT_M_Devices_T_VRDEServer)->setEnabled(false); 1489 1489 1490 1490 /* 'Video Capture' action: */ 1491 1491 if (uisession()->allowedActionsMenuDevices() & RuntimeMenuDevicesActionType_VideoCapture) 1492 1492 { 1493 pMenu->addAction(gActionPool->action(UIActionIndexR untime_Toggle_VideoCapture));1493 pMenu->addAction(gActionPool->action(UIActionIndexRT_M_Devices_M_VideoCapture_T_Start)); 1494 1494 fSeparator2 = true; 1495 1495 } 1496 1496 else 1497 gActionPool->action(UIActionIndexR untime_Toggle_VideoCapture)->setEnabled(false);1497 gActionPool->action(UIActionIndexRT_M_Devices_M_VideoCapture_T_Start)->setEnabled(false); 1498 1498 1499 1499 /* Separator #2: */ … … 1504 1504 /* Install Guest Tools action: */ 1505 1505 if (uisession()->allowedActionsMenuDevices() & RuntimeMenuDevicesActionType_InstallGuestTools) 1506 pMenu->addAction(gActionPool->action(UIActionIndexR untime_Simple_InstallGuestTools));1507 else 1508 gActionPool->action(UIActionIndexR untime_Simple_InstallGuestTools)->setEnabled(false);1506 pMenu->addAction(gActionPool->action(UIActionIndexRT_M_Devices_S_InstallGuestTools)); 1507 else 1508 gActionPool->action(UIActionIndexRT_M_Devices_S_InstallGuestTools)->setEnabled(false); 1509 1509 } 1510 1510 … … 1512 1512 { 1513 1513 /* Get corresponding menu: */ 1514 QMenu *pMenu = gActionPool->action(UIActionIndexR untime_Menu_Network)->menu();1514 QMenu *pMenu = gActionPool->action(UIActionIndexRT_M_Devices_M_Network)->menu(); 1515 1515 AssertPtrReturnVoid(pMenu); 1516 1516 /* Clear contents: */ … … 1520 1520 /* 'Network Settings' action: */ 1521 1521 if (uisession()->allowedActionsMenuDevices() & RuntimeMenuDevicesActionType_NetworkSettings) 1522 pMenu->addAction(gActionPool->action(UIActionIndexR untime_Simple_NetworkSettings));1523 else 1524 gActionPool->action(UIActionIndexR untime_Simple_NetworkSettings)->setEnabled(false);1522 pMenu->addAction(gActionPool->action(UIActionIndexRT_M_Devices_M_Network_S_Settings)); 1523 else 1524 gActionPool->action(UIActionIndexRT_M_Devices_M_Network_S_Settings)->setEnabled(false); 1525 1525 } 1526 1526 … … 1529 1529 { 1530 1530 /* Get corresponding menu: */ 1531 QMenu *pMenu = gActionPool->action(UIActionIndexR untime_Menu_Debug)->menu();1531 QMenu *pMenu = gActionPool->action(UIActionIndexRT_M_Debug)->menu(); 1532 1532 AssertPtrReturnVoid(pMenu); 1533 1533 /* Clear contents: */ … … 1537 1537 /* 'Statistics' action: */ 1538 1538 if (uisession()->allowedActionsMenuDebugger() & RuntimeMenuDebuggerActionType_Statistics) 1539 pMenu->addAction(gActionPool->action(UIActionIndexR untime_Simple_Statistics));1540 else 1541 gActionPool->action(UIActionIndexR untime_Simple_Statistics)->setEnabled(false);1539 pMenu->addAction(gActionPool->action(UIActionIndexRT_M_Debug_S_ShowStatistics)); 1540 else 1541 gActionPool->action(UIActionIndexRT_M_Debug_S_ShowStatistics)->setEnabled(false); 1542 1542 1543 1543 /* 'Command Line' action: */ 1544 1544 if (uisession()->allowedActionsMenuDebugger() & RuntimeMenuDebuggerActionType_CommandLine) 1545 pMenu->addAction(gActionPool->action(UIActionIndexR untime_Simple_CommandLine));1546 else 1547 gActionPool->action(UIActionIndexR untime_Simple_CommandLine)->setEnabled(false);1545 pMenu->addAction(gActionPool->action(UIActionIndexRT_M_Debug_S_ShowCommandLine)); 1546 else 1547 gActionPool->action(UIActionIndexRT_M_Debug_S_ShowCommandLine)->setEnabled(false); 1548 1548 1549 1549 /* 'Logging' action: */ 1550 1550 if (uisession()->allowedActionsMenuDebugger() & RuntimeMenuDebuggerActionType_Logging) 1551 pMenu->addAction(gActionPool->action(UIActionIndexR untime_Toggle_Logging));1552 else 1553 gActionPool->action(UIActionIndexR untime_Toggle_Logging)->setEnabled(false);1551 pMenu->addAction(gActionPool->action(UIActionIndexRT_M_Debug_T_Logging)); 1552 else 1553 gActionPool->action(UIActionIndexRT_M_Debug_T_Logging)->setEnabled(false); 1554 1554 1555 1555 /* 'Log Dialog' action: */ … … 2097 2097 2098 2098 /* Determine device-type: */ 2099 const QMenu *pOpticalDevicesMenu = gActionPool->action(UIActionIndexR untime_Menu_OpticalDevices)->menu();2100 const QMenu *pFloppyDevicesMenu = gActionPool->action(UIActionIndexR untime_Menu_FloppyDevices)->menu();2099 const QMenu *pOpticalDevicesMenu = gActionPool->action(UIActionIndexRT_M_Devices_M_OpticalDevices)->menu(); 2100 const QMenu *pFloppyDevicesMenu = gActionPool->action(UIActionIndexRT_M_Devices_M_FloppyDevices)->menu(); 2101 2101 const KDeviceType deviceType = pMenu == pOpticalDevicesMenu ? KDeviceType_DVD : 2102 2102 pMenu == pFloppyDevicesMenu ? KDeviceType_Floppy : … … 2166 2166 /* Get and check the sender menu object: */ 2167 2167 QMenu *pMenu = qobject_cast<QMenu*>(sender()); 2168 QMenu *pUSBDevicesMenu = gActionPool->action(UIActionIndexR untime_Menu_USBDevices)->menu();2168 QMenu *pUSBDevicesMenu = gActionPool->action(UIActionIndexRT_M_Devices_M_USBDevices)->menu(); 2169 2169 AssertMsg(pMenu == pUSBDevicesMenu, ("This slot should only be called on hovering USB menu!\n")); 2170 2170 Q_UNUSED(pUSBDevicesMenu); … … 2235 2235 /* Get and check the sender menu object: */ 2236 2236 QMenu *pMenu = qobject_cast<QMenu*>(sender()); 2237 QMenu *pWebCamMenu = gActionPool->action(UIActionIndexR untime_Menu_WebCams)->menu();2237 QMenu *pWebCamMenu = gActionPool->action(UIActionIndexRT_M_Devices_M_WebCams)->menu(); 2238 2238 AssertReturnVoid(pMenu == pWebCamMenu); Q_UNUSED(pWebCamMenu); 2239 2239 … … 2370 2370 /* Get and check the sender menu object: */ 2371 2371 QMenu *pMenu = qobject_cast<QMenu*>(sender()); 2372 QMenu *pSharedClipboardMenu = gActionPool->action(UIActionIndexR untime_Menu_SharedClipboard)->menu();2372 QMenu *pSharedClipboardMenu = gActionPool->action(UIActionIndexRT_M_Devices_M_SharedClipboard)->menu(); 2373 2373 AssertMsg(pMenu == pSharedClipboardMenu, ("This slot should only be called on hovering Shared Clipboard menu!\n")); 2374 2374 Q_UNUSED(pSharedClipboardMenu); … … 2408 2408 /* Get and check the sender menu object: */ 2409 2409 QMenu *pMenu = qobject_cast<QMenu*>(sender()); 2410 QMenu *pDragAndDropMenu = gActionPool->action(UIActionIndexR untime_Menu_DragAndDrop)->menu();2410 QMenu *pDragAndDropMenu = gActionPool->action(UIActionIndexRT_M_Devices_M_DragAndDrop)->menu(); 2411 2411 AssertMsg(pMenu == pDragAndDropMenu, ("This slot should only be called on hovering Drag'n'drop menu!\n")); 2412 2412 Q_UNUSED(pDragAndDropMenu); … … 2440 2440 /* Get and check 'the sender' menu object: */ 2441 2441 QMenu *pMenu = qobject_cast<QMenu*>(sender()); 2442 QMenu *pNetworkMenu = gActionPool->action(UIActionIndexR untime_Menu_Network)->menu();2442 QMenu *pNetworkMenu = gActionPool->action(UIActionIndexRT_M_Devices_M_Network)->menu(); 2443 2443 AssertReturnVoid(pMenu == pNetworkMenu); 2444 2444 Q_UNUSED(pNetworkMenu); … … 2674 2674 } 2675 2675 } 2676 if (fEnabled != gActionPool->action(UIActionIndexR untime_Toggle_Logging)->isEnabled())2677 gActionPool->action(UIActionIndexR untime_Toggle_Logging)->setEnabled(fEnabled);2678 if (fChecked != gActionPool->action(UIActionIndexR untime_Toggle_Logging)->isChecked())2679 gActionPool->action(UIActionIndexR untime_Toggle_Logging)->setChecked(fChecked);2676 if (fEnabled != gActionPool->action(UIActionIndexRT_M_Debug_T_Logging)->isEnabled()) 2677 gActionPool->action(UIActionIndexRT_M_Debug_T_Logging)->setEnabled(fEnabled); 2678 if (fChecked != gActionPool->action(UIActionIndexRT_M_Debug_T_Logging)->isChecked()) 2679 gActionPool->action(UIActionIndexRT_M_Debug_T_Logging)->setChecked(fChecked); 2680 2680 } 2681 2681 … … 2724 2724 if (!machine.isNull()) 2725 2725 { 2726 bool fEnabled = pAction != gActionPool->action(UIActionIndexR untime_Toggle_DockDisableMonitor);2726 bool fEnabled = pAction != gActionPool->action(UIActionIndexRT_M_Dock_M_DockSettings_T_DisableMonitor); 2727 2727 gEDataManager->setRealtimeDockIconUpdateEnabled(fEnabled, vboxGlobal().managedVMUuid()); 2728 2728 updateDockOverlay(); … … 2941 2941 { 2942 2942 m_pDbgGuiVT->pfnSetParent(m_pDbgGui, activeMachineWindow()); 2943 m_pDbgGuiVT->pfnSetMenu(m_pDbgGui, gActionPool->action(UIActionIndexR untime_Menu_Debug));2943 m_pDbgGuiVT->pfnSetMenu(m_pDbgGui, gActionPool->action(UIActionIndexRT_M_Debug)); 2944 2944 dbgAdjustRelativePos(); 2945 2945 return true; -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMultiScreenLayout.cpp
r51679 r52133 359 359 360 360 /* Get the list of all view-menu actions: */ 361 QList<QAction*> viewMenuActions = gActionPool->action(UIActionIndexR untime_Menu_View)->menu()->actions();361 QList<QAction*> viewMenuActions = gActionPool->action(UIActionIndexRT_M_View)->menu()->actions(); 362 362 /* Get the list of all view related actions: */ 363 363 QList<QAction*> viewActions; -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.cpp
r52132 r52133 760 760 bool fIsVRDEServerAvailable = !server.isNull(); 761 761 /* Show/Hide VRDE action depending on VRDE server availability status: */ 762 gActionPool->action(UIActionIndexR untime_Toggle_VRDEServer)->setVisible(fIsVRDEServerAvailable);762 gActionPool->action(UIActionIndexRT_M_Devices_T_VRDEServer)->setVisible(fIsVRDEServerAvailable); 763 763 /* Check/Uncheck VRDE action depending on VRDE server activity status: */ 764 764 if (fIsVRDEServerAvailable) 765 gActionPool->action(UIActionIndexR untime_Toggle_VRDEServer)->setChecked(server.GetEnabled());765 gActionPool->action(UIActionIndexRT_M_Devices_T_VRDEServer)->setChecked(server.GetEnabled()); 766 766 /* Notify listeners about VRDE change: */ 767 767 emit sigVRDEChange(); … … 773 773 const CMachine machine = session().GetMachine(); 774 774 /* Check/Uncheck Video Capture action depending on feature status: */ 775 gActionPool->action(UIActionIndexR untime_Toggle_VideoCapture)->setChecked(machine.GetVideoCaptureEnabled());775 gActionPool->action(UIActionIndexRT_M_Devices_M_VideoCapture_T_Start)->setChecked(machine.GetVideoCaptureEnabled()); 776 776 /* Notify listeners about Video Capture change: */ 777 777 emit sigVideoCaptureChange(); … … 990 990 ++iDevicesCountFD; 991 991 } 992 QAction *pOpticalDevicesMenu = gActionPool->action(UIActionIndexR untime_Menu_OpticalDevices);993 QAction *pFloppyDevicesMenu = gActionPool->action(UIActionIndexR untime_Menu_FloppyDevices);992 QAction *pOpticalDevicesMenu = gActionPool->action(UIActionIndexRT_M_Devices_M_OpticalDevices); 993 QAction *pFloppyDevicesMenu = gActionPool->action(UIActionIndexRT_M_Devices_M_FloppyDevices); 994 994 pOpticalDevicesMenu->setData(iDevicesCountCD); 995 995 pOpticalDevicesMenu->setVisible(iDevicesCountCD); … … 1013 1013 } 1014 1014 } 1015 gActionPool->action(UIActionIndexR untime_Menu_Network)->setVisible(fAtLeastOneAdapterActive);1015 gActionPool->action(UIActionIndexRT_M_Devices_M_Network)->setVisible(fAtLeastOneAdapterActive); 1016 1016 } 1017 1017 … … 1022 1022 && !machine.GetUSBControllers().isEmpty() 1023 1023 && machine.GetUSBProxyAvailable(); 1024 gActionPool->action(UIActionIndexR untime_Menu_USBDevices)->setVisible(fUSBEnabled);1024 gActionPool->action(UIActionIndexRT_M_Devices_M_USBDevices)->setVisible(fUSBEnabled); 1025 1025 } 1026 1026 … … 1030 1030 host.GetVideoInputDevices(); 1031 1031 const bool fWebCamsEnabled = host.isOk() && !machine.GetUSBControllers().isEmpty(); 1032 gActionPool->action(UIActionIndexR untime_Menu_WebCams)->setVisible(fWebCamsEnabled);1032 gActionPool->action(UIActionIndexRT_M_Devices_M_WebCams)->setVisible(fWebCamsEnabled); 1033 1033 } 1034 1034 } … … 1156 1156 1157 1157 /* Should guest autoresize? */ 1158 QAction *pGuestAutoresizeSwitch = gActionPool->action(UIActionIndexR untime_Toggle_GuestAutoresize);1158 QAction *pGuestAutoresizeSwitch = gActionPool->action(UIActionIndexRT_M_View_T_GuestAutoresize); 1159 1159 pGuestAutoresizeSwitch->setChecked(gEDataManager->guestScreenAutoResizeEnabled(vboxGlobal().managedVMUuid())); 1160 1160 … … 1168 1168 const bool fEnabledForMachine = gEDataManager->statusBarEnabled(vboxGlobal().managedVMUuid()); 1169 1169 const bool fEnabled = fEnabledGlobally && fEnabledForMachine; 1170 QAction *pActionStatusBarSettings = gActionPool->action(UIActionIndexR untime_Simple_StatusBarSettings);1170 QAction *pActionStatusBarSettings = gActionPool->action(UIActionIndexRT_M_View_M_StatusBar_S_Settings); 1171 1171 pActionStatusBarSettings->setEnabled(fEnabled); 1172 QAction *pActionStatusBarSwitch = gActionPool->action(UIActionIndexR untime_Toggle_StatusBar);1172 QAction *pActionStatusBarSwitch = gActionPool->action(UIActionIndexRT_M_View_M_StatusBar_T_Visibility); 1173 1173 pActionStatusBarSwitch->blockSignals(true); 1174 1174 pActionStatusBarSwitch->setChecked(fEnabled); … … 1205 1205 1206 1206 /* Remember if guest should autoresize: */ 1207 gEDataManager->setGuestScreenAutoResizeEnabled(gActionPool->action(UIActionIndexR untime_Toggle_GuestAutoresize)->isChecked(), vboxGlobal().managedVMUuid());1207 gEDataManager->setGuestScreenAutoResizeEnabled(gActionPool->action(UIActionIndexRT_M_View_T_GuestAutoresize)->isChecked(), vboxGlobal().managedVMUuid()); 1208 1208 1209 1209 #if 0 /* Disabled for now! */ … … 1259 1259 { 1260 1260 /* Particularly enable/disable reconfigurable action: */ 1261 gActionPool->action(UIActionIndexR untime_Simple_SettingsDialog)->setEnabled(m_fReconfigurable);1262 gActionPool->action(UIActionIndexR untime_Simple_StorageSettings)->setEnabled(m_fReconfigurable);1263 gActionPool->action(UIActionIndexR untime_Simple_SharedFoldersSettings)->setEnabled(m_fReconfigurable);1264 gActionPool->action(UIActionIndexR untime_Simple_VideoCaptureSettings)->setEnabled(m_fReconfigurable);1265 gActionPool->action(UIActionIndexR untime_Simple_NetworkSettings)->setEnabled(m_fReconfigurable);1261 gActionPool->action(UIActionIndexRT_M_Machine_S_Settings)->setEnabled(m_fReconfigurable); 1262 gActionPool->action(UIActionIndexRT_M_Devices_M_HardDrives_S_Settings)->setEnabled(m_fReconfigurable); 1263 gActionPool->action(UIActionIndexRT_M_Devices_M_SharedFolders_S_Settings)->setEnabled(m_fReconfigurable); 1264 gActionPool->action(UIActionIndexRT_M_Devices_M_VideoCapture_S_Settings)->setEnabled(m_fReconfigurable); 1265 gActionPool->action(UIActionIndexRT_M_Devices_M_Network_S_Settings)->setEnabled(m_fReconfigurable); 1266 1266 /* Particularly enable/disable snapshot related action: */ 1267 gActionPool->action(UIActionIndexR untime_Simple_TakeSnapshot)->setEnabled(m_fSnapshotOperationsAllowed);1267 gActionPool->action(UIActionIndexRT_M_Machine_S_TakeSnapshot)->setEnabled(m_fSnapshotOperationsAllowed); 1268 1268 } 1269 1269 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/fullscreen/UIMachineLogicFullscreen.cpp
r52130 r52133 75 75 * the linked key without the 'Host+' part we are adding it here. */ 76 76 QString hotKey = QString("Host+%1") 77 .arg(VBoxGlobal::extractKeyFromActionText(gActionPool->action(UIActionIndexR untime_Toggle_Fullscreen)->text()));77 .arg(VBoxGlobal::extractKeyFromActionText(gActionPool->action(UIActionIndexRT_M_View_T_Fullscreen)->text())); 78 78 Assert(!hotKey.isEmpty()); 79 79 … … 446 446 447 447 /* Take care of view-action toggle state: */ 448 UIAction *pActionFullscreen = gActionPool->action(UIActionIndexR untime_Toggle_Fullscreen);448 UIAction *pActionFullscreen = gActionPool->action(UIActionIndexRT_M_View_T_Fullscreen); 449 449 if (!pActionFullscreen->isChecked()) 450 450 { … … 462 462 463 463 /* "View" actions connections: */ 464 connect(gActionPool->action(UIActionIndexR untime_Toggle_Fullscreen), SIGNAL(triggered(bool)),464 connect(gActionPool->action(UIActionIndexRT_M_View_T_Fullscreen), SIGNAL(triggered(bool)), 465 465 this, SLOT(sltChangeVisualStateToNormal())); 466 connect(gActionPool->action(UIActionIndexR untime_Toggle_Seamless), SIGNAL(triggered(bool)),466 connect(gActionPool->action(UIActionIndexRT_M_View_T_Seamless), SIGNAL(triggered(bool)), 467 467 this, SLOT(sltChangeVisualStateToSeamless())); 468 connect(gActionPool->action(UIActionIndexR untime_Toggle_Scale), SIGNAL(triggered(bool)),468 connect(gActionPool->action(UIActionIndexRT_M_View_T_Scale), SIGNAL(triggered(bool)), 469 469 this, SLOT(sltChangeVisualStateToScale())); 470 470 } … … 608 608 { 609 609 /* "View" actions disconnections: */ 610 disconnect(gActionPool->action(UIActionIndexR untime_Toggle_Fullscreen), SIGNAL(triggered(bool)),610 disconnect(gActionPool->action(UIActionIndexRT_M_View_T_Fullscreen), SIGNAL(triggered(bool)), 611 611 this, SLOT(sltChangeVisualStateToNormal())); 612 disconnect(gActionPool->action(UIActionIndexR untime_Toggle_Seamless), SIGNAL(triggered(bool)),612 disconnect(gActionPool->action(UIActionIndexRT_M_View_T_Seamless), SIGNAL(triggered(bool)), 613 613 this, SLOT(sltChangeVisualStateToSeamless())); 614 disconnect(gActionPool->action(UIActionIndexR untime_Toggle_Scale), SIGNAL(triggered(bool)),614 disconnect(gActionPool->action(UIActionIndexRT_M_View_T_Scale), SIGNAL(triggered(bool)), 615 615 this, SLOT(sltChangeVisualStateToScale())); 616 616 … … 622 622 { 623 623 /* Take care of view-action toggle state: */ 624 UIAction *pActionFullscreen = gActionPool->action(UIActionIndexR untime_Toggle_Fullscreen);624 UIAction *pActionFullscreen = gActionPool->action(UIActionIndexRT_M_View_T_Fullscreen); 625 625 if (pActionFullscreen->isChecked()) 626 626 { … … 641 641 642 642 /* Get corresponding menu: */ 643 QMenu *pMenu = gActionPool->action(UIActionIndexR untime_Menu_View)->menu();643 QMenu *pMenu = gActionPool->action(UIActionIndexRT_M_View)->menu(); 644 644 AssertPtrReturnVoid(pMenu); 645 645 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/fullscreen/UIMachineViewFullscreen.cpp
r49322 r52133 51 51 #endif 52 52 ) 53 , m_bIsGuestAutoresizeEnabled(gActionPool->action(UIActionIndexR untime_Toggle_GuestAutoresize)->isChecked())53 , m_bIsGuestAutoresizeEnabled(gActionPool->action(UIActionIndexRT_M_View_T_GuestAutoresize)->isChecked()) 54 54 { 55 55 } -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/fullscreen/UIMachineWindowFullscreen.cpp
r52129 r52133 226 226 #endif /* !RT_OS_DARWIN */ 227 227 connect(m_pMiniToolBar, SIGNAL(sigExitAction()), 228 gActionPool->action(UIActionIndexR untime_Toggle_Fullscreen), SLOT(trigger()));228 gActionPool->action(UIActionIndexRT_M_View_T_Fullscreen), SLOT(trigger())); 229 229 connect(m_pMiniToolBar, SIGNAL(sigCloseAction()), 230 gActionPool->action(UIActionIndexR untime_Simple_Close), SLOT(trigger()));230 gActionPool->action(UIActionIndexRT_M_Machine_S_Close), SLOT(trigger())); 231 231 connect(m_pMiniToolBar, SIGNAL(sigNotifyAboutFocusStolen()), this, SLOT(sltRevokeFocus())); 232 232 } -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/normal/UIMachineLogicNormal.cpp
r52129 r52133 81 81 82 82 /* Make sure status-bar is enabled: */ 83 const bool fEnabled = gActionPool->action(UIActionIndexR untime_Toggle_StatusBar)->isChecked();83 const bool fEnabled = gActionPool->action(UIActionIndexRT_M_View_M_StatusBar_T_Visibility)->isChecked(); 84 84 AssertReturnVoid(fEnabled); 85 85 86 86 /* Prevent user from opening another one editor or toggle status-bar: */ 87 gActionPool->action(UIActionIndexR untime_Simple_StatusBarSettings)->setEnabled(false);88 gActionPool->action(UIActionIndexR untime_Toggle_StatusBar)->setEnabled(false);87 gActionPool->action(UIActionIndexRT_M_View_M_StatusBar_S_Settings)->setEnabled(false); 88 gActionPool->action(UIActionIndexRT_M_View_M_StatusBar_T_Visibility)->setEnabled(false); 89 89 /* Create status-bar editor: */ 90 90 UIStatusBarEditorWindow *pStatusBarEditor = new UIStatusBarEditorWindow(activeMachineWindow()); … … 106 106 { 107 107 /* Make sure status-bar is enabled: */ 108 const bool fEnabled = gActionPool->action(UIActionIndexR untime_Toggle_StatusBar)->isChecked();108 const bool fEnabled = gActionPool->action(UIActionIndexRT_M_View_M_StatusBar_T_Visibility)->isChecked(); 109 109 AssertReturnVoid(fEnabled); 110 110 111 111 /* Allow user to open editor and toggle status-bar again: */ 112 gActionPool->action(UIActionIndexR untime_Simple_StatusBarSettings)->setEnabled(true);113 gActionPool->action(UIActionIndexR untime_Toggle_StatusBar)->setEnabled(true);112 gActionPool->action(UIActionIndexRT_M_View_M_StatusBar_S_Settings)->setEnabled(true); 113 gActionPool->action(UIActionIndexRT_M_View_M_StatusBar_T_Visibility)->setEnabled(true); 114 114 } 115 115 … … 134 134 135 135 /* Add default contents: */ 136 pMenu->addAction(gActionPool->action(UIActionIndexR untime_Simple_AdjustWindow));137 pMenu->addAction(gActionPool->action(UIActionIndexR untime_Toggle_GuestAutoresize));136 pMenu->addAction(gActionPool->action(UIActionIndexRT_M_View_S_AdjustWindow)); 137 pMenu->addAction(gActionPool->action(UIActionIndexRT_M_View_T_GuestAutoresize)); 138 138 pMenu->addSeparator(); 139 139 … … 233 233 AssertMsg(pMenu, ("This slot should be called only on Hard Disks menu show!\n")); 234 234 pMenu->clear(); 235 pMenu->addAction(gActionPool->action(UIActionIndexR untime_Simple_StorageSettings));235 pMenu->addAction(gActionPool->action(UIActionIndexRT_M_Devices_M_HardDrives_S_Settings)); 236 236 } 237 237 … … 241 241 AssertMsg(menu, ("This slot should be called only on Shared Folders menu show!\n")); 242 242 menu->clear(); 243 menu->addAction(gActionPool->action(UIActionIndexR untime_Simple_SharedFoldersSettings));243 menu->addAction(gActionPool->action(UIActionIndexRT_M_Devices_M_SharedFolders_S_Settings)); 244 244 } 245 245 … … 249 249 AssertMsg(pMenu, ("This slot should be called only on Video Capture menu show!\n")); 250 250 pMenu->clear(); 251 pMenu->addAction(gActionPool->action(UIActionIndexR untime_Simple_VideoCaptureSettings));252 pMenu->addAction(gActionPool->action(UIActionIndexR untime_Toggle_VideoCapture));251 pMenu->addAction(gActionPool->action(UIActionIndexRT_M_Devices_M_VideoCapture_S_Settings)); 252 pMenu->addAction(gActionPool->action(UIActionIndexRT_M_Devices_M_VideoCapture_T_Start)); 253 253 } 254 254 … … 258 258 AssertMsg(pMenu, ("This slot should be called only on Keyboard menu show!\n")); 259 259 pMenu->clear(); 260 pMenu->addAction(gActionPool->action(UIActionIndexR untime_Simple_KeyboardSettings));260 pMenu->addAction(gActionPool->action(UIActionIndexRT_M_Machine_M_Keyboard_S_Settings)); 261 261 } 262 262 … … 266 266 AssertMsg(menu, ("This slot should be called only on Mouse Integration Menu show!\n")); 267 267 menu->clear(); 268 menu->addAction(gActionPool->action(UIActionIndexR untime_Toggle_MouseIntegration));268 menu->addAction(gActionPool->action(UIActionIndexRT_M_Machine_M_Mouse_T_Integration)); 269 269 } 270 270 … … 275 275 276 276 /* "View" actions connections: */ 277 connect(gActionPool->action(UIActionIndexR untime_Menu_ViewPopup)->menu(), SIGNAL(aboutToShow()),277 connect(gActionPool->action(UIActionIndexRT_M_ViewPopup)->menu(), SIGNAL(aboutToShow()), 278 278 this, SLOT(sltPrepareMenuViewPopup())); 279 connect(gActionPool->action(UIActionIndexR untime_Toggle_Fullscreen), SIGNAL(triggered(bool)),279 connect(gActionPool->action(UIActionIndexRT_M_View_T_Fullscreen), SIGNAL(triggered(bool)), 280 280 this, SLOT(sltChangeVisualStateToFullscreen())); 281 connect(gActionPool->action(UIActionIndexR untime_Toggle_Seamless), SIGNAL(triggered(bool)),281 connect(gActionPool->action(UIActionIndexRT_M_View_T_Seamless), SIGNAL(triggered(bool)), 282 282 this, SLOT(sltChangeVisualStateToSeamless())); 283 connect(gActionPool->action(UIActionIndexR untime_Toggle_Scale), SIGNAL(triggered(bool)),283 connect(gActionPool->action(UIActionIndexRT_M_View_T_Scale), SIGNAL(triggered(bool)), 284 284 this, SLOT(sltChangeVisualStateToScale())); 285 connect(gActionPool->action(UIActionIndexR untime_Simple_StatusBarSettings), SIGNAL(triggered(bool)),285 connect(gActionPool->action(UIActionIndexRT_M_View_M_StatusBar_S_Settings), SIGNAL(triggered(bool)), 286 286 this, SLOT(sltOpenStatusBarSettings())); 287 connect(gActionPool->action(UIActionIndexR untime_Toggle_StatusBar), SIGNAL(triggered(bool)),287 connect(gActionPool->action(UIActionIndexRT_M_View_M_StatusBar_T_Visibility), SIGNAL(triggered(bool)), 288 288 this, SLOT(sltToggleStatusBar())); 289 289 290 290 /* "Device" actions connections: */ 291 connect(gActionPool->action(UIActionIndexR untime_Menu_HardDisks)->menu(), SIGNAL(aboutToShow()),291 connect(gActionPool->action(UIActionIndexRT_M_Devices_M_HardDrives)->menu(), SIGNAL(aboutToShow()), 292 292 this, SLOT(sltPrepareHardDisksMenu())); 293 connect(gActionPool->action(UIActionIndexR untime_Menu_SharedFolders)->menu(), SIGNAL(aboutToShow()),293 connect(gActionPool->action(UIActionIndexRT_M_Devices_M_SharedFolders)->menu(), SIGNAL(aboutToShow()), 294 294 this, SLOT(sltPrepareSharedFoldersMenu())); 295 connect(gActionPool->action(UIActionIndexR untime_Menu_VideoCapture)->menu(), SIGNAL(aboutToShow()),295 connect(gActionPool->action(UIActionIndexRT_M_Devices_M_VideoCapture)->menu(), SIGNAL(aboutToShow()), 296 296 this, SLOT(sltPrepareVideoCaptureMenu())); 297 connect(gActionPool->action(UIActionIndexR untime_Menu_Keyboard)->menu(), SIGNAL(aboutToShow()),297 connect(gActionPool->action(UIActionIndexRT_M_Machine_M_Keyboard)->menu(), SIGNAL(aboutToShow()), 298 298 this, SLOT(sltPrepareKeyboardMenu())); 299 connect(gActionPool->action(UIActionIndexR untime_Menu_MouseIntegration)->menu(), SIGNAL(aboutToShow()),299 connect(gActionPool->action(UIActionIndexRT_M_Machine_M_Mouse)->menu(), SIGNAL(aboutToShow()), 300 300 this, SLOT(sltPrepareMouseIntegrationMenu())); 301 301 } … … 343 343 { 344 344 /* "View" actions disconnections: */ 345 disconnect(gActionPool->action(UIActionIndexR untime_Toggle_Fullscreen), SIGNAL(triggered(bool)),345 disconnect(gActionPool->action(UIActionIndexRT_M_View_T_Fullscreen), SIGNAL(triggered(bool)), 346 346 this, SLOT(sltChangeVisualStateToFullscreen())); 347 disconnect(gActionPool->action(UIActionIndexR untime_Toggle_Seamless), SIGNAL(triggered(bool)),347 disconnect(gActionPool->action(UIActionIndexRT_M_View_T_Seamless), SIGNAL(triggered(bool)), 348 348 this, SLOT(sltChangeVisualStateToSeamless())); 349 disconnect(gActionPool->action(UIActionIndexR untime_Toggle_Scale), SIGNAL(triggered(bool)),349 disconnect(gActionPool->action(UIActionIndexRT_M_View_T_Scale), SIGNAL(triggered(bool)), 350 350 this, SLOT(sltChangeVisualStateToScale())); 351 disconnect(gActionPool->action(UIActionIndexR untime_Simple_StatusBarSettings), SIGNAL(triggered(bool)),351 disconnect(gActionPool->action(UIActionIndexRT_M_View_M_StatusBar_S_Settings), SIGNAL(triggered(bool)), 352 352 this, SLOT(sltOpenStatusBarSettings())); 353 disconnect(gActionPool->action(UIActionIndexR untime_Toggle_StatusBar), SIGNAL(triggered(bool)),353 disconnect(gActionPool->action(UIActionIndexRT_M_View_M_StatusBar_T_Visibility), SIGNAL(triggered(bool)), 354 354 this, SLOT(sltToggleStatusBar())); 355 355 … … 364 364 365 365 /* Get corresponding menu: */ 366 QMenu *pMenu = gActionPool->action(UIActionIndexR untime_Menu_View)->menu();366 QMenu *pMenu = gActionPool->action(UIActionIndexRT_M_View)->menu(); 367 367 AssertPtrReturnVoid(pMenu); 368 368 … … 373 373 if (uisession()->allowedActionsMenuView() & RuntimeMenuViewActionType_AdjustWindow) 374 374 { 375 pMenu->addAction(gActionPool->action(UIActionIndexR untime_Simple_AdjustWindow));375 pMenu->addAction(gActionPool->action(UIActionIndexRT_M_View_S_AdjustWindow)); 376 376 fSeparator1 = true; 377 377 } 378 378 else 379 gActionPool->action(UIActionIndexR untime_Simple_AdjustWindow)->setEnabled(false);379 gActionPool->action(UIActionIndexRT_M_View_S_AdjustWindow)->setEnabled(false); 380 380 381 381 /* 'Guest Autoresize' action: */ 382 382 if (uisession()->allowedActionsMenuView() & RuntimeMenuViewActionType_GuestAutoresize) 383 383 { 384 pMenu->addAction(gActionPool->action(UIActionIndexR untime_Toggle_GuestAutoresize));384 pMenu->addAction(gActionPool->action(UIActionIndexRT_M_View_T_GuestAutoresize)); 385 385 fSeparator1 = true; 386 386 } 387 387 else 388 gActionPool->action(UIActionIndexR untime_Toggle_GuestAutoresize)->setEnabled(false);388 gActionPool->action(UIActionIndexRT_M_View_T_GuestAutoresize)->setEnabled(false); 389 389 390 390 /* Separator #1: */ … … 394 394 /* 'Status Bar' submenu: */ 395 395 if (uisession()->allowedActionsMenuView() & RuntimeMenuViewActionType_StatusBar) 396 pMenu->addAction(gActionPool->action(UIActionIndexR untime_Menu_StatusBar));396 pMenu->addAction(gActionPool->action(UIActionIndexRT_M_View_M_StatusBar)); 397 397 else 398 gActionPool->action(UIActionIndexR untime_Menu_StatusBar)->setEnabled(false);398 gActionPool->action(UIActionIndexRT_M_View_M_StatusBar)->setEnabled(false); 399 399 updateMenuViewStatusBar(); 400 400 } … … 403 403 { 404 404 /* Get corresponding menu: */ 405 QMenu *pMenu = gActionPool->action(UIActionIndexR untime_Menu_StatusBar)->menu();405 QMenu *pMenu = gActionPool->action(UIActionIndexRT_M_View_M_StatusBar)->menu(); 406 406 AssertPtrReturnVoid(pMenu); 407 407 /* Clear contents: */ … … 410 410 /* 'Status Bar Settings' action: */ 411 411 if (uisession()->allowedActionsMenuView() & RuntimeMenuViewActionType_StatusBarSettings) 412 pMenu->addAction(gActionPool->action(UIActionIndexR untime_Simple_StatusBarSettings));412 pMenu->addAction(gActionPool->action(UIActionIndexRT_M_View_M_StatusBar_S_Settings)); 413 413 else 414 gActionPool->action(UIActionIndexR untime_Simple_StatusBarSettings)->setEnabled(false);414 gActionPool->action(UIActionIndexRT_M_View_M_StatusBar_S_Settings)->setEnabled(false); 415 415 416 416 /* 'Toggle Status Bar' action: */ 417 417 if (uisession()->allowedActionsMenuView() & RuntimeMenuViewActionType_ToggleStatusBar) 418 pMenu->addAction(gActionPool->action(UIActionIndexR untime_Toggle_StatusBar));418 pMenu->addAction(gActionPool->action(UIActionIndexRT_M_View_M_StatusBar_T_Visibility)); 419 419 else 420 gActionPool->action(UIActionIndexR untime_Toggle_StatusBar)->setEnabled(false);421 } 422 420 gActionPool->action(UIActionIndexRT_M_View_M_StatusBar_T_Visibility)->setEnabled(false); 421 } 422 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/normal/UIMachineViewNormal.cpp
r51558 r52133 48 48 #endif 49 49 ) 50 , m_bIsGuestAutoresizeEnabled(gActionPool->action(UIActionIndexR untime_Toggle_GuestAutoresize)->isChecked())50 , m_bIsGuestAutoresizeEnabled(gActionPool->action(UIActionIndexRT_M_View_T_GuestAutoresize)->isChecked()) 51 51 { 52 52 /* Resend the last resize hint if there was a fullscreen or -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/normal/UIMachineWindowNormal.cpp
r52130 r52133 120 120 const bool fEnabled = gEDataManager->statusBarEnabled(vboxGlobal().managedVMUuid()); 121 121 /* Update settings action 'enable' state: */ 122 QAction *pActionStatusBarSettings = gActionPool->action(UIActionIndexR untime_Simple_StatusBarSettings);122 QAction *pActionStatusBarSettings = gActionPool->action(UIActionIndexRT_M_View_M_StatusBar_S_Settings); 123 123 pActionStatusBarSettings->setEnabled(fEnabled); 124 124 /* Update switch action 'checked' state: */ 125 QAction *pActionStatusBarSwitch = gActionPool->action(UIActionIndexR untime_Toggle_StatusBar);125 QAction *pActionStatusBarSwitch = gActionPool->action(UIActionIndexRT_M_View_M_StatusBar_T_Visibility); 126 126 pActionStatusBarSwitch->blockSignals(true); 127 127 pActionStatusBarSwitch->setChecked(fEnabled); … … 139 139 { 140 140 /* Raise action's context-menu: */ 141 gActionPool->action(UIActionIndexR untime_Menu_StatusBar)->menu()->exec(statusBar()->mapToGlobal(position));141 gActionPool->action(UIActionIndexRT_M_View_M_StatusBar)->menu()->exec(statusBar()->mapToGlobal(position)); 142 142 } 143 143 … … 148 148 switch (indicatorType) 149 149 { 150 case IndicatorType_HardDisks: pAction = gActionPool->action(UIActionIndexR untime_Menu_HardDisks); break;151 case IndicatorType_OpticalDisks: pAction = gActionPool->action(UIActionIndexR untime_Menu_OpticalDevices); break;152 case IndicatorType_FloppyDisks: pAction = gActionPool->action(UIActionIndexR untime_Menu_FloppyDevices); break;153 case IndicatorType_USB: pAction = gActionPool->action(UIActionIndexR untime_Menu_USBDevices); break;154 case IndicatorType_Network: pAction = gActionPool->action(UIActionIndexR untime_Menu_Network); break;155 case IndicatorType_SharedFolders: pAction = gActionPool->action(UIActionIndexR untime_Menu_SharedFolders); break;156 case IndicatorType_Display: pAction = gActionPool->action(UIActionIndexR untime_Menu_ViewPopup); break;157 case IndicatorType_VideoCapture: pAction = gActionPool->action(UIActionIndexR untime_Menu_VideoCapture); break;158 case IndicatorType_Mouse: pAction = gActionPool->action(UIActionIndexR untime_Menu_MouseIntegration); break;159 case IndicatorType_Keyboard: pAction = gActionPool->action(UIActionIndexR untime_Menu_Keyboard); break;150 case IndicatorType_HardDisks: pAction = gActionPool->action(UIActionIndexRT_M_Devices_M_HardDrives); break; 151 case IndicatorType_OpticalDisks: pAction = gActionPool->action(UIActionIndexRT_M_Devices_M_OpticalDevices); break; 152 case IndicatorType_FloppyDisks: pAction = gActionPool->action(UIActionIndexRT_M_Devices_M_FloppyDevices); break; 153 case IndicatorType_USB: pAction = gActionPool->action(UIActionIndexRT_M_Devices_M_USBDevices); break; 154 case IndicatorType_Network: pAction = gActionPool->action(UIActionIndexRT_M_Devices_M_Network); break; 155 case IndicatorType_SharedFolders: pAction = gActionPool->action(UIActionIndexRT_M_Devices_M_SharedFolders); break; 156 case IndicatorType_Display: pAction = gActionPool->action(UIActionIndexRT_M_ViewPopup); break; 157 case IndicatorType_VideoCapture: pAction = gActionPool->action(UIActionIndexRT_M_Devices_M_VideoCapture); break; 158 case IndicatorType_Mouse: pAction = gActionPool->action(UIActionIndexRT_M_Machine_M_Mouse); break; 159 case IndicatorType_Keyboard: pAction = gActionPool->action(UIActionIndexRT_M_Machine_M_Keyboard); break; 160 160 default: break; 161 161 } … … 286 286 #endif /* !Q_WS_MAC */ 287 287 /* Update status-bar visibility: */ 288 statusBar()->setVisible(gActionPool->action(UIActionIndexR untime_Toggle_StatusBar)->isChecked());288 statusBar()->setVisible(gActionPool->action(UIActionIndexRT_M_View_M_StatusBar_T_Visibility)->isChecked()); 289 289 m_pIndicatorsPool->setAutoUpdateIndicatorStates(statusBar()->isVisible()); 290 290 } -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/scale/UIMachineLogicScale.cpp
r52130 r52133 48 48 * the linked key without the 'Host+' part we are adding it here. */ 49 49 QString strHotKey = QString("Host+%1") 50 .arg(VBoxGlobal::extractKeyFromActionText(gActionPool->action(UIActionIndexR untime_Toggle_Scale)->text()));50 .arg(VBoxGlobal::extractKeyFromActionText(gActionPool->action(UIActionIndexRT_M_View_T_Scale)->text())); 51 51 Assert(!strHotKey.isEmpty()); 52 52 … … 76 76 77 77 /* Take care of view-action toggle state: */ 78 UIAction *pActionScale = gActionPool->action(UIActionIndexR untime_Toggle_Scale);78 UIAction *pActionScale = gActionPool->action(UIActionIndexRT_M_View_T_Scale); 79 79 if (!pActionScale->isChecked()) 80 80 { … … 92 92 93 93 /* "View" actions connections: */ 94 connect(gActionPool->action(UIActionIndexR untime_Toggle_Scale), SIGNAL(triggered(bool)),94 connect(gActionPool->action(UIActionIndexRT_M_View_T_Scale), SIGNAL(triggered(bool)), 95 95 this, SLOT(sltChangeVisualStateToNormal())); 96 connect(gActionPool->action(UIActionIndexR untime_Toggle_Fullscreen), SIGNAL(triggered(bool)),96 connect(gActionPool->action(UIActionIndexRT_M_View_T_Fullscreen), SIGNAL(triggered(bool)), 97 97 this, SLOT(sltChangeVisualStateToFullscreen())); 98 connect(gActionPool->action(UIActionIndexR untime_Toggle_Seamless), SIGNAL(triggered(bool)),98 connect(gActionPool->action(UIActionIndexRT_M_View_T_Seamless), SIGNAL(triggered(bool)), 99 99 this, SLOT(sltChangeVisualStateToSeamless())); 100 100 } … … 171 171 { 172 172 /* "View" actions disconnections: */ 173 disconnect(gActionPool->action(UIActionIndexR untime_Toggle_Scale), SIGNAL(triggered(bool)),173 disconnect(gActionPool->action(UIActionIndexRT_M_View_T_Scale), SIGNAL(triggered(bool)), 174 174 this, SLOT(sltChangeVisualStateToNormal())); 175 disconnect(gActionPool->action(UIActionIndexR untime_Toggle_Fullscreen), SIGNAL(triggered(bool)),175 disconnect(gActionPool->action(UIActionIndexRT_M_View_T_Fullscreen), SIGNAL(triggered(bool)), 176 176 this, SLOT(sltChangeVisualStateToFullscreen())); 177 disconnect(gActionPool->action(UIActionIndexR untime_Toggle_Seamless), SIGNAL(triggered(bool)),177 disconnect(gActionPool->action(UIActionIndexRT_M_View_T_Seamless), SIGNAL(triggered(bool)), 178 178 this, SLOT(sltChangeVisualStateToSeamless())); 179 179 … … 186 186 { 187 187 /* Take care of view-action toggle state: */ 188 UIAction *pActionScale = gActionPool->action(UIActionIndexR untime_Toggle_Scale);188 UIAction *pActionScale = gActionPool->action(UIActionIndexRT_M_View_T_Scale); 189 189 if (pActionScale->isChecked()) 190 190 { -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/seamless/UIMachineLogicSeamless.cpp
r52130 r52133 75 75 * the linked key without the 'Host+' part we are adding it here. */ 76 76 QString hotKey = QString("Host+%1") 77 .arg(VBoxGlobal::extractKeyFromActionText(gActionPool->action(UIActionIndexR untime_Toggle_Seamless)->text()));77 .arg(VBoxGlobal::extractKeyFromActionText(gActionPool->action(UIActionIndexRT_M_View_T_Seamless)->text())); 78 78 Assert(!hotKey.isEmpty()); 79 79 … … 204 204 205 205 /* Disable mouse-integration isn't allowed in seamless: */ 206 gActionPool->action(UIActionIndexR untime_Toggle_MouseIntegration)->setVisible(false);206 gActionPool->action(UIActionIndexRT_M_Machine_M_Mouse_T_Integration)->setVisible(false); 207 207 208 208 /* Take care of view-action toggle state: */ 209 UIAction *pActionSeamless = gActionPool->action(UIActionIndexR untime_Toggle_Seamless);209 UIAction *pActionSeamless = gActionPool->action(UIActionIndexRT_M_View_T_Seamless); 210 210 if (!pActionSeamless->isChecked()) 211 211 { … … 223 223 224 224 /* "View" actions connections: */ 225 connect(gActionPool->action(UIActionIndexR untime_Toggle_Seamless), SIGNAL(triggered(bool)),225 connect(gActionPool->action(UIActionIndexRT_M_View_T_Seamless), SIGNAL(triggered(bool)), 226 226 this, SLOT(sltChangeVisualStateToNormal())); 227 connect(gActionPool->action(UIActionIndexR untime_Toggle_Fullscreen), SIGNAL(triggered(bool)),227 connect(gActionPool->action(UIActionIndexRT_M_View_T_Fullscreen), SIGNAL(triggered(bool)), 228 228 this, SLOT(sltChangeVisualStateToFullscreen())); 229 connect(gActionPool->action(UIActionIndexR untime_Toggle_Scale), SIGNAL(triggered(bool)),229 connect(gActionPool->action(UIActionIndexRT_M_View_T_Scale), SIGNAL(triggered(bool)), 230 230 this, SLOT(sltChangeVisualStateToScale())); 231 231 } … … 304 304 { 305 305 /* "View" actions disconnections: */ 306 disconnect(gActionPool->action(UIActionIndexR untime_Toggle_Seamless), SIGNAL(triggered(bool)),306 disconnect(gActionPool->action(UIActionIndexRT_M_View_T_Seamless), SIGNAL(triggered(bool)), 307 307 this, SLOT(sltChangeVisualStateToNormal())); 308 disconnect(gActionPool->action(UIActionIndexR untime_Toggle_Fullscreen), SIGNAL(triggered(bool)),308 disconnect(gActionPool->action(UIActionIndexRT_M_View_T_Fullscreen), SIGNAL(triggered(bool)), 309 309 this, SLOT(sltChangeVisualStateToFullscreen())); 310 disconnect(gActionPool->action(UIActionIndexR untime_Toggle_Scale), SIGNAL(triggered(bool)),310 disconnect(gActionPool->action(UIActionIndexRT_M_View_T_Scale), SIGNAL(triggered(bool)), 311 311 this, SLOT(sltChangeVisualStateToScale())); 312 312 … … 318 318 { 319 319 /* Take care of view-action toggle state: */ 320 UIAction *pActionSeamless = gActionPool->action(UIActionIndexR untime_Toggle_Seamless);320 UIAction *pActionSeamless = gActionPool->action(UIActionIndexRT_M_View_T_Seamless); 321 321 if (pActionSeamless->isChecked()) 322 322 { … … 328 328 329 329 /* Reenable mouse-integration action: */ 330 gActionPool->action(UIActionIndexR untime_Toggle_MouseIntegration)->setVisible(true);330 gActionPool->action(UIActionIndexRT_M_Machine_M_Mouse_T_Integration)->setVisible(true); 331 331 332 332 /* Call to base-class: */ … … 340 340 341 341 /* Get corresponding menu: */ 342 QMenu *pMenu = gActionPool->action(UIActionIndexR untime_Menu_View)->menu();342 QMenu *pMenu = gActionPool->action(UIActionIndexRT_M_View)->menu(); 343 343 AssertPtrReturnVoid(pMenu); 344 344 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/seamless/UIMachineWindowSeamless.cpp
r52129 r52133 119 119 connect(m_pMiniToolBar, SIGNAL(sigMinimizeAction()), this, SLOT(showMinimized())); 120 120 connect(m_pMiniToolBar, SIGNAL(sigExitAction()), 121 gActionPool->action(UIActionIndexR untime_Toggle_Seamless), SLOT(trigger()));121 gActionPool->action(UIActionIndexRT_M_View_T_Seamless), SLOT(trigger())); 122 122 connect(m_pMiniToolBar, SIGNAL(sigCloseAction()), 123 gActionPool->action(UIActionIndexR untime_Simple_Close), SLOT(trigger()));123 gActionPool->action(UIActionIndexRT_M_Machine_S_Close), SLOT(trigger())); 124 124 connect(m_pMiniToolBar, SIGNAL(sigNotifyAboutFocusStolen()), this, SLOT(sltRevokeFocus())); 125 125 }
Note:
See TracChangeset
for help on using the changeset viewer.