- Timestamp:
- Aug 20, 2018 5:39:50 PM (7 years ago)
- svn:sync-xref-src-repo-rev:
- 124475
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/globals
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIActionPool.cpp
r73790 r73791 106 106 *********************************************************************************************************************************/ 107 107 108 UIAction::UIAction(UIActionPool *pParent, UIActionType enmType )108 UIAction::UIAction(UIActionPool *pParent, UIActionType enmType, bool fMachineMenuAction /* = false */) 109 109 : QAction(pParent) 110 110 , m_enmType(enmType) 111 , m_fMachineMenuAction(fMachineMenuAction) 111 112 , m_pActionPool(pParent) 112 113 , m_enmActionPoolType(pParent->type()) … … 211 212 /* The same as menu name for Selector UI: */ 212 213 case UIActionPoolType_Selector: 214 { 213 215 setText(nameInMenu()); 214 216 break; 217 } 215 218 /* With shortcut appended for Runtime UI: */ 216 219 case UIActionPoolType_Runtime: 217 setText(vboxGlobal().insertKeyToActionText(nameInMenu(), 218 gShortcutPool->shortcut(actionPool(), this).toString())); 220 { 221 if (machineMenuAction()) 222 setText(vboxGlobal().insertKeyToActionText(nameInMenu(), 223 gShortcutPool->shortcut(actionPool(), this).toString())); 224 else 225 setText(nameInMenu()); 219 226 break; 227 } 220 228 } 221 229 } … … 271 279 *********************************************************************************************************************************/ 272 280 273 UIActionSimple::UIActionSimple(UIActionPool *pParent)274 : UIAction(pParent, UIActionType_Simple)275 {276 }277 278 281 UIActionSimple::UIActionSimple(UIActionPool *pParent, 279 const QString &strIcon, const QString &strIconDisabled) 280 : UIAction(pParent, UIActionType_Simple) 282 bool fMachineMenuAction /* = false */) 283 : UIAction(pParent, UIActionType_Simple, fMachineMenuAction) 284 { 285 } 286 287 UIActionSimple::UIActionSimple(UIActionPool *pParent, 288 const QString &strIcon, const QString &strIconDisabled, 289 bool fMachineMenuAction /* = false */) 290 : UIAction(pParent, UIActionType_Simple, fMachineMenuAction) 281 291 { 282 292 setIcon(UIIconPool::iconSet(strIcon, strIconDisabled)); … … 285 295 UIActionSimple::UIActionSimple(UIActionPool *pParent, 286 296 const QString &strIconNormal, const QString &strIconSmall, 287 const QString &strIconNormalDisabled, const QString &strIconSmallDisabled) 288 : UIAction(pParent, UIActionType_Simple) 297 const QString &strIconNormalDisabled, const QString &strIconSmallDisabled, 298 bool fMachineMenuAction /* = false */) 299 : UIAction(pParent, UIActionType_Simple, fMachineMenuAction) 289 300 { 290 301 setIcon(UIIconPool::iconSetFull(strIconNormal, strIconSmall, strIconNormalDisabled, strIconSmallDisabled)); … … 292 303 293 304 UIActionSimple::UIActionSimple(UIActionPool *pParent, 294 const QIcon &icon) 295 : UIAction(pParent, UIActionType_Simple) 305 const QIcon &icon, 306 bool fMachineMenuAction /* = false */) 307 : UIAction(pParent, UIActionType_Simple, fMachineMenuAction) 296 308 { 297 309 setIcon(icon); … … 303 315 *********************************************************************************************************************************/ 304 316 305 UIActionToggle::UIActionToggle(UIActionPool *pParent)306 : UIAction(pParent, UIActionType_Toggle)307 {308 }309 310 317 UIActionToggle::UIActionToggle(UIActionPool *pParent, 311 const QString &strIcon, const QString &strIconDisabled) 312 : UIAction(pParent, UIActionType_Toggle) 318 bool fMachineMenuAction /* = false */) 319 : UIAction(pParent, UIActionType_Toggle, fMachineMenuAction) 320 { 321 } 322 323 UIActionToggle::UIActionToggle(UIActionPool *pParent, 324 const QString &strIcon, const QString &strIconDisabled, 325 bool fMachineMenuAction /* = false */) 326 : UIAction(pParent, UIActionType_Toggle, fMachineMenuAction) 313 327 { 314 328 setIcon(UIIconPool::iconSet(strIcon, strIconDisabled)); … … 318 332 UIActionToggle::UIActionToggle(UIActionPool *pParent, 319 333 const QString &strIconOn, const QString &strIconOff, 320 const QString &strIconOnDisabled, const QString &strIconOffDisabled) 321 : UIAction(pParent, UIActionType_Toggle) 334 const QString &strIconOnDisabled, const QString &strIconOffDisabled, 335 bool fMachineMenuAction /* = false */) 336 : UIAction(pParent, UIActionType_Toggle, fMachineMenuAction) 322 337 { 323 338 setIcon(UIIconPool::iconSetOnOff(strIconOn, strIconOff, strIconOnDisabled, strIconOffDisabled)); … … 326 341 327 342 UIActionToggle::UIActionToggle(UIActionPool *pParent, 328 const QIcon &icon) 329 : UIAction(pParent, UIActionType_Toggle) 343 const QIcon &icon, 344 bool fMachineMenuAction /* = false */) 345 : UIAction(pParent, UIActionType_Toggle, fMachineMenuAction) 330 346 { 331 347 if (!icon.isNull()) … … 482 498 /** Constructs action passing @a pParent to the base-class. */ 483 499 UIActionSimplePerformClose(UIActionPool *pParent) 484 : UIActionSimple(pParent, ":/exit_16px.png", ":/exit_16px.png" )500 : UIActionSimple(pParent, ":/exit_16px.png", ":/exit_16px.png", true) 485 501 { 486 502 setMenuRole(QAction::QuitRole); … … 664 680 /** Constructs action passing @a pParent to the base-class. */ 665 681 UIActionSimpleContents(UIActionPool *pParent) 666 : UIActionSimple(pParent, UIIconPool::defaultIcon(UIIconPool::UIDefaultIconType_DialogHelp) )682 : UIActionSimple(pParent, UIIconPool::defaultIcon(UIIconPool::UIDefaultIconType_DialogHelp), true) 667 683 { 668 684 retranslateUi(); … … 722 738 /** Constructs action passing @a pParent to the base-class. */ 723 739 UIActionSimpleWebSite(UIActionPool *pParent) 724 : UIActionSimple(pParent, ":/site_16px.png", ":/site_16px.png" )740 : UIActionSimple(pParent, ":/site_16px.png", ":/site_16px.png", true) 725 741 { 726 742 retranslateUi(); … … 769 785 /** Constructs action passing @a pParent to the base-class. */ 770 786 UIActionSimpleBugTracker(UIActionPool *pParent) 771 : UIActionSimple(pParent, ":/site_bugtracker_16px.png", ":/site_bugtracker_16px.png" )787 : UIActionSimple(pParent, ":/site_bugtracker_16px.png", ":/site_bugtracker_16px.png", true) 772 788 { 773 789 retranslateUi(); … … 816 832 /** Constructs action passing @a pParent to the base-class. */ 817 833 UIActionSimpleForums(UIActionPool *pParent) 818 : UIActionSimple(pParent, ":/site_forum_16px.png", ":/site_forum_16px.png" )834 : UIActionSimple(pParent, ":/site_forum_16px.png", ":/site_forum_16px.png", true) 819 835 { 820 836 retranslateUi(); … … 863 879 /** Constructs action passing @a pParent to the base-class. */ 864 880 UIActionSimpleOracle(UIActionPool *pParent) 865 : UIActionSimple(pParent, ":/site_oracle_16px.png", ":/site_oracle_16px.png" )881 : UIActionSimple(pParent, ":/site_oracle_16px.png", ":/site_oracle_16px.png", true) 866 882 { 867 883 retranslateUi(); … … 910 926 /** Constructs action passing @a pParent to the base-class. */ 911 927 UIActionSimpleResetWarnings(UIActionPool *pParent) 912 : UIActionSimple(pParent, ":/reset_warnings_16px.png", ":/reset_warnings_16px.png" )928 : UIActionSimple(pParent, ":/reset_warnings_16px.png", ":/reset_warnings_16px.png", true) 913 929 { 914 930 setMenuRole(QAction::ApplicationSpecificRole); … … 959 975 /** Constructs action passing @a pParent to the base-class. */ 960 976 UIActionSimpleNetworkAccessManager(UIActionPool *pParent) 961 : UIActionSimple(pParent, ":/download_manager_16px.png", ":/download_manager_16px.png" )977 : UIActionSimple(pParent, ":/download_manager_16px.png", ":/download_manager_16px.png", true) 962 978 { 963 979 setMenuRole(QAction::ApplicationSpecificRole); … … 1007 1023 /** Constructs action passing @a pParent to the base-class. */ 1008 1024 UIActionSimpleCheckForUpdates(UIActionPool *pParent) 1009 : UIActionSimple(pParent, ":/refresh_16px.png", ":/refresh_disabled_16px.png" )1025 : UIActionSimple(pParent, ":/refresh_16px.png", ":/refresh_disabled_16px.png", true) 1010 1026 { 1011 1027 setMenuRole(QAction::ApplicationSpecificRole); … … 1056 1072 /** Constructs action passing @a pParent to the base-class. */ 1057 1073 UIActionSimpleAbout(UIActionPool *pParent) 1058 : UIActionSimple(pParent, ":/about_16px.png", ":/about_16px.png" )1074 : UIActionSimple(pParent, ":/about_16px.png", ":/about_16px.png", true) 1059 1075 { 1060 1076 setMenuRole(QAction::AboutRole); … … 1116 1132 /** Constructs action passing @a pParent to the base-class. */ 1117 1133 UIActionSimplePreferences(UIActionPool *pParent) 1118 : UIActionSimple(pParent, ":/global_settings_16px.png", ":/global_settings_16px.png" )1134 : UIActionSimple(pParent, ":/global_settings_16px.png", ":/global_settings_16px.png", true) 1119 1135 { 1120 1136 setMenuRole(QAction::PreferencesRole); -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIActionPool.h
r73790 r73791 164 164 /** Returns action type. */ 165 165 UIActionType type() const { return m_enmType; } 166 /** Returns whether this is machine-menu action. */ 167 bool machineMenuAction() const { return m_fMachineMenuAction; } 166 168 167 169 /** Returns menu contained by this action. */ … … 217 219 /** Constructs action passing @a pParent to the base-class. 218 220 * @param enmType Brings the action type. */ 219 UIAction(UIActionPool *pParent, UIActionType enmType );221 UIAction(UIActionPool *pParent, UIActionType enmType, bool fMachineMenuAction = false); 220 222 221 223 /** Returns current action name in menu. */ … … 232 234 /** Holds the action type. */ 233 235 UIActionType m_enmType; 236 /** Holds whether this is machine-menu action. */ 237 bool m_fMachineMenuAction; 234 238 235 239 /** Holds the reference to the action-pool this action belongs to. */ … … 289 293 protected: 290 294 291 /** Constructs simple action passing @a pParent to the base-class. */292 UIActionSimple(UIActionPool *pParent);293 295 /** Constructs simple action passing @a pParent to the base-class. 294 * @param strIcon Brings the normal-icon name. 295 * @param strIconDisabled Brings the disabled-icon name. */ 296 * @param fMachineMenuAction Brings whether this action is a part of machine menu. */ 296 297 UIActionSimple(UIActionPool *pParent, 297 const QString &strIcon, const QString &strIconDisabled); 298 bool fMachineMenuAction = false); 299 /** Constructs simple action passing @a pParent to the base-class. 300 * @param strIcon Brings the normal-icon name. 301 * @param strIconDisabled Brings the disabled-icon name. 302 * @param fMachineMenuAction Brings whether this action is a part of machine menu. */ 303 UIActionSimple(UIActionPool *pParent, 304 const QString &strIcon, const QString &strIconDisabled, 305 bool fMachineMenuAction = false); 298 306 /** Constructs simple action passing @a pParent to the base-class. 299 307 * @param strIconNormal Brings the normal-icon name. 300 308 * @param strIconSmall Brings the small-icon name. 301 309 * @param strIconNormalDisabled Brings the normal-disabled-icon name. 302 * @param strIconSmallDisabled Brings the small-disabled-icon name. */ 310 * @param strIconSmallDisabled Brings the small-disabled-icon name. 311 * @param fMachineMenuAction Brings whether this action is a part of machine menu. */ 303 312 UIActionSimple(UIActionPool *pParent, 304 313 const QString &strIconNormal, const QString &strIconSmall, 305 const QString &strIconNormalDisabled, const QString &strIconSmallDisabled); 314 const QString &strIconNormalDisabled, const QString &strIconSmallDisabled, 315 bool fMachineMenuAction = false); 306 316 /** Constructs simple action passing @a pParent to the base-class. 307 * @param icon Brings the icon. */ 317 * @param icon Brings the icon. 318 * @param fMachineMenuAction Brings whether this action is a part of machine menu. */ 308 319 UIActionSimple(UIActionPool *pParent, 309 const QIcon &icon); 320 const QIcon &icon, 321 bool fMachineMenuAction = false); 310 322 }; 311 323 … … 318 330 protected: 319 331 320 /** Constructs toggle action passing @a pParent to the base-class. */321 UIActionToggle(UIActionPool *pParent);322 332 /** Constructs toggle action passing @a pParent to the base-class. 323 * @param strIcon Brings the normal-icon name. 324 * @param strIconDisabled Brings the disabled-icon name. */ 333 * @param fMachineMenuAction Brings whether this action is a part of machine menu. */ 325 334 UIActionToggle(UIActionPool *pParent, 326 const QString &strIcon, const QString &strIconDisabled); 335 bool fMachineMenuAction = false); 336 /** Constructs toggle action passing @a pParent to the base-class. 337 * @param strIcon Brings the normal-icon name. 338 * @param strIconDisabled Brings the disabled-icon name. 339 * @param fMachineMenuAction Brings whether this action is a part of machine menu. */ 340 UIActionToggle(UIActionPool *pParent, 341 const QString &strIcon, const QString &strIconDisabled, 342 bool fMachineMenuAction = false); 327 343 /** Constructs toggle action passing @a pParent to the base-class. 328 344 * @param strIconOn Brings the on-icon name. 329 345 * @param strIconOff Brings the off-icon name. 330 346 * @param strIconOnDisabled Brings the on-disabled-icon name. 331 * @param strIconOffDisabled Brings the off-disabled-icon name. */ 347 * @param strIconOffDisabled Brings the off-disabled-icon name. 348 * @param fMachineMenuAction Brings whether this action is a part of machine menu. */ 332 349 UIActionToggle(UIActionPool *pParent, 333 350 const QString &strIconOn, const QString &strIconOff, 334 const QString &strIconOnDisabled, const QString &strIconOffDisabled); 351 const QString &strIconOnDisabled, const QString &strIconOffDisabled, 352 bool fMachineMenuAction = false); 335 353 /** Constructs toggle action passing @a pParent to the base-class. 336 * @param icon Brings the icon. */ 354 * @param icon Brings the icon. 355 * @param fMachineMenuAction Brings whether this action is a part of machine menu. */ 337 356 UIActionToggle(UIActionPool *pParent, 338 const QIcon &icon); 357 const QIcon &icon, 358 bool fMachineMenuAction = false); 339 359 340 360 private: -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIActionPoolRuntime.cpp
r73790 r73791 89 89 /** Constructs action passing @a pParent to the base-class. */ 90 90 UIActionSimpleRuntimeShowSettings(UIActionPool *pParent) 91 : UIActionSimple(pParent, ":/vm_settings_16px.png", ":/vm_settings_disabled_16px.png" )91 : UIActionSimple(pParent, ":/vm_settings_16px.png", ":/vm_settings_disabled_16px.png", true) 92 92 {} 93 93 … … 139 139 /** Constructs action passing @a pParent to the base-class. */ 140 140 UIActionSimpleRuntimePerformTakeSnapshot(UIActionPool *pParent) 141 : UIActionSimple(pParent, ":/snapshot_take_16px.png", ":/snapshot_take_disabled_16px.png" )141 : UIActionSimple(pParent, ":/snapshot_take_16px.png", ":/snapshot_take_disabled_16px.png", true) 142 142 {} 143 143 … … 189 189 /** Constructs action passing @a pParent to the base-class. */ 190 190 UIActionSimpleRuntimeShowInformationDialog(UIActionPool *pParent) 191 : UIActionSimple(pParent, ":/session_info_16px.png", ":/session_info_disabled_16px.png" )191 : UIActionSimple(pParent, ":/session_info_16px.png", ":/session_info_disabled_16px.png", true) 192 192 {} 193 193 … … 241 241 : UIActionToggle(pParent, 242 242 ":/vm_pause_on_16px.png", ":/vm_pause_16px.png", 243 ":/vm_pause_on_disabled_16px.png", ":/vm_pause_disabled_16px.png") 243 ":/vm_pause_on_disabled_16px.png", ":/vm_pause_disabled_16px.png", 244 true) 244 245 {} 245 246 … … 291 292 /** Constructs action passing @a pParent to the base-class. */ 292 293 UIActionSimpleRuntimePerformReset(UIActionPool *pParent) 293 : UIActionSimple(pParent, ":/vm_reset_16px.png", ":/vm_reset_disabled_16px.png" )294 : UIActionSimple(pParent, ":/vm_reset_16px.png", ":/vm_reset_disabled_16px.png", true) 294 295 {} 295 296 … … 341 342 /** Constructs action passing @a pParent to the base-class. */ 342 343 UIActionSimpleRuntimePerformDetach(UIActionPool *pParent) 343 : UIActionSimple(pParent, ":/vm_create_shortcut_16px.png", ":/vm_create_shortcut_disabled_16px.png" )344 : UIActionSimple(pParent, ":/vm_create_shortcut_16px.png", ":/vm_create_shortcut_disabled_16px.png", true) 344 345 {} 345 346 … … 385 386 /** Constructs action passing @a pParent to the base-class. */ 386 387 UIActionSimpleRuntimePerformSaveState(UIActionPool *pParent) 387 : UIActionSimple(pParent, ":/vm_save_state_16px.png", ":/vm_save_state_disabled_16px.png" )388 : UIActionSimple(pParent, ":/vm_save_state_16px.png", ":/vm_save_state_disabled_16px.png", true) 388 389 {} 389 390 … … 429 430 /** Constructs action passing @a pParent to the base-class. */ 430 431 UIActionSimpleRuntimePerformShutdown(UIActionPool *pParent) 431 : UIActionSimple(pParent, ":/vm_shutdown_16px.png", ":/vm_shutdown_disabled_16px.png" )432 : UIActionSimple(pParent, ":/vm_shutdown_16px.png", ":/vm_shutdown_disabled_16px.png", true) 432 433 {} 433 434 … … 483 484 /** Constructs action passing @a pParent to the base-class. */ 484 485 UIActionSimpleRuntimePerformPowerOff(UIActionPool *pParent) 485 : UIActionSimple(pParent, ":/vm_poweroff_16px.png", ":/vm_poweroff_disabled_16px.png" )486 : UIActionSimple(pParent, ":/vm_poweroff_16px.png", ":/vm_poweroff_disabled_16px.png", true) 486 487 {} 487 488 … … 601 602 : UIActionToggle(pParent, 602 603 ":/fullscreen_on_16px.png", ":/fullscreen_16px.png", 603 ":/fullscreen_on_disabled_16px.png", ":/fullscreen_disabled_16px.png") 604 ":/fullscreen_on_disabled_16px.png", ":/fullscreen_disabled_16px.png", 605 true) 604 606 {} 605 607 … … 653 655 : UIActionToggle(pParent, 654 656 ":/seamless_on_16px.png", ":/seamless_16px.png", 655 ":/seamless_on_disabled_16px.png", ":/seamless_disabled_16px.png") 657 ":/seamless_on_disabled_16px.png", ":/seamless_disabled_16px.png", 658 true) 656 659 {} 657 660 … … 705 708 : UIActionToggle(pParent, 706 709 ":/scale_on_16px.png", ":/scale_16px.png", 707 ":/scale_on_disabled_16px.png", ":/scale_disabled_16px.png") 710 ":/scale_on_disabled_16px.png", ":/scale_disabled_16px.png", 711 true) 708 712 {} 709 713 … … 756 760 /** Constructs action passing @a pParent to the base-class. */ 757 761 UIActionSimpleRuntimePerformMinimizeWindow(UIActionPool *pParent) 758 : UIActionSimple(pParent, ":/minimize_16px.png", ":/minimize_16px.png" )762 : UIActionSimple(pParent, ":/minimize_16px.png", ":/minimize_16px.png", true) 759 763 {} 760 764 … … 807 811 /** Constructs action passing @a pParent to the base-class. */ 808 812 UIActionSimpleRuntimePerformWindowAdjust(UIActionPool *pParent) 809 : UIActionSimple(pParent, ":/adjust_win_size_16px.png", ":/adjust_win_size_disabled_16px.png" )813 : UIActionSimple(pParent, ":/adjust_win_size_16px.png", ":/adjust_win_size_disabled_16px.png", true) 810 814 {} 811 815 … … 859 863 : UIActionToggle(pParent, 860 864 ":/auto_resize_on_on_16px.png", ":/auto_resize_on_16px.png", 861 ":/auto_resize_on_on_disabled_16px.png", ":/auto_resize_on_disabled_16px.png") 865 ":/auto_resize_on_on_disabled_16px.png", ":/auto_resize_on_disabled_16px.png", 866 true) 862 867 {} 863 868 … … 903 908 /** Constructs action passing @a pParent to the base-class. */ 904 909 UIActionSimpleRuntimePerformTakeScreenshot(UIActionPool *pParent) 905 : UIActionSimple(pParent, ":/screenshot_take_16px.png", ":/screenshot_take_disabled_16px.png" )910 : UIActionSimple(pParent, ":/screenshot_take_16px.png", ":/screenshot_take_disabled_16px.png", true) 906 911 {} 907 912 … … 990 995 /** Constructs action passing @a pParent to the base-class. */ 991 996 UIActionSimpleRuntimeShowVideoCaptureSettings(UIActionPool *pParent) 992 : UIActionSimple(pParent, ":/video_capture_settings_16px.png", ":/video_capture_settings_16px.png" )997 : UIActionSimple(pParent, ":/video_capture_settings_16px.png", ":/video_capture_settings_16px.png", true) 993 998 {} 994 999 … … 1036 1041 : UIActionToggle(pParent, 1037 1042 ":/video_capture_on_16px.png", ":/video_capture_16px.png", 1038 ":/video_capture_on_disabled_16px.png", ":/video_capture_disabled_16px.png") 1043 ":/video_capture_on_disabled_16px.png", ":/video_capture_disabled_16px.png", 1044 true) 1039 1045 {} 1040 1046 … … 1082 1088 : UIActionToggle(pParent, 1083 1089 ":/vrdp_on_16px.png", ":/vrdp_16px.png", 1084 ":/vrdp_on_disabled_16px.png", ":/vrdp_disabled_16px.png") 1090 ":/vrdp_on_disabled_16px.png", ":/vrdp_disabled_16px.png", 1091 true) 1085 1092 {} 1086 1093 … … 1163 1170 /** Constructs action passing @a pParent to the base-class. */ 1164 1171 UIActionSimpleRuntimeShowMenuBarSettings(UIActionPool *pParent) 1165 : UIActionSimple(pParent, ":/menubar_settings_16px.png", ":/menubar_settings_disabled_16px.png" )1172 : UIActionSimple(pParent, ":/menubar_settings_16px.png", ":/menubar_settings_disabled_16px.png", true) 1166 1173 {} 1167 1174 … … 1210 1217 : UIActionToggle(pParent, 1211 1218 ":/menubar_on_16px.png", ":/menubar_16px.png", 1212 ":/menubar_on_disabled_16px.png", ":/menubar_disabled_16px.png") 1219 ":/menubar_on_disabled_16px.png", ":/menubar_disabled_16px.png", 1220 true) 1213 1221 {} 1214 1222 … … 1292 1300 /** Constructs action passing @a pParent to the base-class. */ 1293 1301 UIActionSimpleRuntimeShowStatusBarSettings(UIActionPool *pParent) 1294 : UIActionSimple(pParent, ":/statusbar_settings_16px.png", ":/statusbar_settings_disabled_16px.png" )1302 : UIActionSimple(pParent, ":/statusbar_settings_16px.png", ":/statusbar_settings_disabled_16px.png", true) 1295 1303 {} 1296 1304 … … 1338 1346 : UIActionToggle(pParent, 1339 1347 ":/statusbar_on_16px.png", ":/statusbar_16px.png", 1340 ":/statusbar_on_disabled_16px.png", ":/statusbar_disabled_16px.png") 1348 ":/statusbar_on_disabled_16px.png", ":/statusbar_disabled_16px.png", 1349 true) 1341 1350 {} 1342 1351 … … 1494 1503 /** Constructs action passing @a pParent to the base-class. */ 1495 1504 UIActionSimpleRuntimeShowKeyboardSettings(UIActionPool *pParent) 1496 : UIActionSimple(pParent, ":/keyboard_settings_16px.png", ":/keyboard_settings_disabled_16px.png" )1505 : UIActionSimple(pParent, ":/keyboard_settings_16px.png", ":/keyboard_settings_disabled_16px.png", true) 1497 1506 {} 1498 1507 … … 1538 1547 /** Constructs action passing @a pParent to the base-class. */ 1539 1548 UIActionSimpleRuntimePerformTypeCAD(UIActionPool *pParent) 1540 : UIActionSimple(pParent )1549 : UIActionSimple(pParent, true) 1541 1550 {} 1542 1551 … … 1589 1598 /** Constructs action passing @a pParent to the base-class. */ 1590 1599 UIActionSimpleRuntimePerformTypeCABS(UIActionPool *pParent) 1591 : UIActionSimple(pParent )1600 : UIActionSimple(pParent, true) 1592 1601 {} 1593 1602 … … 1640 1649 /** Constructs action passing @a pParent to the base-class. */ 1641 1650 UIActionSimpleRuntimePerformTypeCtrlBreak(UIActionPool *pParent) 1642 : UIActionSimple(pParent )1651 : UIActionSimple(pParent, true) 1643 1652 {} 1644 1653 … … 1684 1693 /** Constructs action passing @a pParent to the base-class. */ 1685 1694 UIActionSimpleRuntimePerformTypeInsert(UIActionPool *pParent) 1686 : UIActionSimple(pParent )1695 : UIActionSimple(pParent, true) 1687 1696 {} 1688 1697 … … 1728 1737 /** Constructs action passing @a pParent to the base-class. */ 1729 1738 UIActionSimpleRuntimePerformTypePrintScreen(UIActionPool *pParent) 1730 : UIActionSimple(pParent )1739 : UIActionSimple(pParent, true) 1731 1740 {} 1732 1741 … … 1772 1781 /** Constructs action passing @a pParent to the base-class. */ 1773 1782 UIActionSimpleRuntimePerformTypeAltPrintScreen(UIActionPool *pParent) 1774 : UIActionSimple(pParent )1783 : UIActionSimple(pParent, true) 1775 1784 {} 1776 1785 … … 1855 1864 : UIActionToggle(pParent, 1856 1865 ":/mouse_can_seamless_on_16px.png", ":/mouse_can_seamless_16px.png", 1857 ":/mouse_can_seamless_on_disabled_16px.png", ":/mouse_can_seamless_disabled_16px.png") 1866 ":/mouse_can_seamless_on_disabled_16px.png", ":/mouse_can_seamless_disabled_16px.png", 1867 true) 1858 1868 {} 1859 1869 … … 1976 1986 /** Constructs action passing @a pParent to the base-class. */ 1977 1987 UIActionSimpleRuntimeShowHardDrivesSettings(UIActionPool *pParent) 1978 : UIActionSimple(pParent, ":/hd_settings_16px.png", ":/hd_settings_disabled_16px.png" )1988 : UIActionSimple(pParent, ":/hd_settings_16px.png", ":/hd_settings_disabled_16px.png", true) 1979 1989 {} 1980 1990 … … 2137 2147 : UIActionToggle(pParent, 2138 2148 ":/audio_output_on_16px.png", ":/audio_output_16px.png", 2139 ":/audio_output_on_16px.png", ":/audio_output_16px.png") 2149 ":/audio_output_on_16px.png", ":/audio_output_16px.png", 2150 true) 2140 2151 {} 2141 2152 … … 2183 2194 : UIActionToggle(pParent, 2184 2195 ":/audio_input_on_16px.png", ":/audio_input_16px.png", 2185 ":/audio_input_on_16px.png", ":/audio_input_16px.png") 2196 ":/audio_input_on_16px.png", ":/audio_input_16px.png", 2197 true) 2186 2198 {} 2187 2199 … … 2264 2276 /** Constructs action passing @a pParent to the base-class. */ 2265 2277 UIActionSimpleRuntimeShowNetworkSettings(UIActionPool *pParent) 2266 : UIActionSimple(pParent, ":/nw_settings_16px.png", ":/nw_settings_disabled_16px.png" )2278 : UIActionSimple(pParent, ":/nw_settings_16px.png", ":/nw_settings_disabled_16px.png", true) 2267 2279 {} 2268 2280 … … 2347 2359 /** Constructs action passing @a pParent to the base-class. */ 2348 2360 UIActionSimpleRuntimeShowUSBDevicesSettings(UIActionPool *pParent) 2349 : UIActionSimple(pParent, ":/usb_settings_16px.png", ":/usb_settings_disabled_16px.png" )2361 : UIActionSimple(pParent, ":/usb_settings_16px.png", ":/usb_settings_disabled_16px.png", true) 2350 2362 {} 2351 2363 … … 2541 2553 /** Constructs action passing @a pParent to the base-class. */ 2542 2554 UIActionSimpleRuntimeShowSharedFoldersSettings(UIActionPool *pParent) 2543 : UIActionSimple(pParent, ":/sf_settings_16px.png", ":/sf_settings_disabled_16px.png" )2555 : UIActionSimple(pParent, ":/sf_settings_16px.png", ":/sf_settings_disabled_16px.png", true) 2544 2556 {} 2545 2557 … … 2585 2597 /** Constructs action passing @a pParent to the base-class. */ 2586 2598 UIActionSimpleRuntimePerformInstallGuestTools(UIActionPool *pParent) 2587 : UIActionSimple(pParent, ":/guesttools_16px.png", ":/guesttools_disabled_16px.png" )2599 : UIActionSimple(pParent, ":/guesttools_16px.png", ":/guesttools_disabled_16px.png", true) 2588 2600 {} 2589 2601 … … 2667 2679 /** Constructs action passing @a pParent to the base-class. */ 2668 2680 UIActionSimpleRuntimeShowStatistics(UIActionPool *pParent) 2669 : UIActionSimple(pParent )2681 : UIActionSimple(pParent, true) 2670 2682 {} 2671 2683 … … 2710 2722 /** Constructs action passing @a pParent to the base-class. */ 2711 2723 UIActionSimpleRuntimeShowCommandLine(UIActionPool *pParent) 2712 : UIActionSimple(pParent )2724 : UIActionSimple(pParent, true) 2713 2725 {} 2714 2726 … … 2753 2765 /** Constructs action passing @a pParent to the base-class. */ 2754 2766 UIActionToggleRuntimeLogging(UIActionPool *pParent) 2755 : UIActionToggle(pParent )2767 : UIActionToggle(pParent, true) 2756 2768 {} 2757 2769 … … 2796 2808 /** Constructs action passing @a pParent to the base-class. */ 2797 2809 UIActionSimpleRuntimeShowLogs(UIActionPool *pParent) 2798 : UIActionSimple(pParent )2810 : UIActionSimple(pParent, true) 2799 2811 {} 2800 2812
Note:
See TracChangeset
for help on using the changeset viewer.