Changeset 73790 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Aug 20, 2018 5:33:37 PM (6 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/globals
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIActionPool.cpp
r73780 r73790 271 271 *********************************************************************************************************************************/ 272 272 273 UIActionSimple::UIActionSimple(UIActionPool *pParent) 274 : UIAction(pParent, UIActionType_Simple) 275 { 276 } 277 273 278 UIActionSimple::UIActionSimple(UIActionPool *pParent, 274 const QString &strIcon /* = QString() */, const QString &strIconDisabled /* = QString() */)279 const QString &strIcon, const QString &strIconDisabled) 275 280 : UIAction(pParent, UIActionType_Simple) 276 281 { 277 if (!strIcon.isNull()) 278 setIcon(UIIconPool::iconSet(strIcon, strIconDisabled)); 282 setIcon(UIIconPool::iconSet(strIcon, strIconDisabled)); 279 283 } 280 284 … … 299 303 *********************************************************************************************************************************/ 300 304 305 UIActionToggle::UIActionToggle(UIActionPool *pParent) 306 : UIAction(pParent, UIActionType_Toggle) 307 { 308 } 309 301 310 UIActionToggle::UIActionToggle(UIActionPool *pParent, 302 const QString &strIcon /* = QString() */, const QString &strIconDisabled /* = QString() */)311 const QString &strIcon, const QString &strIconDisabled) 303 312 : UIAction(pParent, UIActionType_Toggle) 304 313 { 305 if (!strIcon.isNull()) 306 setIcon(UIIconPool::iconSet(strIcon, strIconDisabled)); 314 setIcon(UIIconPool::iconSet(strIcon, strIconDisabled)); 307 315 prepare(); 308 316 } … … 474 482 /** Constructs action passing @a pParent to the base-class. */ 475 483 UIActionSimplePerformClose(UIActionPool *pParent) 476 : UIActionSimple(pParent, ":/exit_16px.png" )484 : UIActionSimple(pParent, ":/exit_16px.png", ":/exit_16px.png") 477 485 { 478 486 setMenuRole(QAction::QuitRole); … … 714 722 /** Constructs action passing @a pParent to the base-class. */ 715 723 UIActionSimpleWebSite(UIActionPool *pParent) 716 : UIActionSimple(pParent, ":/site_16px.png" )724 : UIActionSimple(pParent, ":/site_16px.png", ":/site_16px.png") 717 725 { 718 726 retranslateUi(); … … 761 769 /** Constructs action passing @a pParent to the base-class. */ 762 770 UIActionSimpleBugTracker(UIActionPool *pParent) 763 : UIActionSimple(pParent, ":/site_bugtracker_16px.png" )771 : UIActionSimple(pParent, ":/site_bugtracker_16px.png", ":/site_bugtracker_16px.png") 764 772 { 765 773 retranslateUi(); … … 808 816 /** Constructs action passing @a pParent to the base-class. */ 809 817 UIActionSimpleForums(UIActionPool *pParent) 810 : UIActionSimple(pParent, ":/site_forum_16px.png" )818 : UIActionSimple(pParent, ":/site_forum_16px.png", ":/site_forum_16px.png") 811 819 { 812 820 retranslateUi(); … … 855 863 /** Constructs action passing @a pParent to the base-class. */ 856 864 UIActionSimpleOracle(UIActionPool *pParent) 857 : UIActionSimple(pParent, ":/site_oracle_16px.png" )865 : UIActionSimple(pParent, ":/site_oracle_16px.png", ":/site_oracle_16px.png") 858 866 { 859 867 retranslateUi(); … … 902 910 /** Constructs action passing @a pParent to the base-class. */ 903 911 UIActionSimpleResetWarnings(UIActionPool *pParent) 904 : UIActionSimple(pParent, ":/reset_warnings_16px.png" )912 : UIActionSimple(pParent, ":/reset_warnings_16px.png", ":/reset_warnings_16px.png") 905 913 { 906 914 setMenuRole(QAction::ApplicationSpecificRole); … … 951 959 /** Constructs action passing @a pParent to the base-class. */ 952 960 UIActionSimpleNetworkAccessManager(UIActionPool *pParent) 953 : UIActionSimple(pParent, ":/download_manager_16px.png" )961 : UIActionSimple(pParent, ":/download_manager_16px.png", ":/download_manager_16px.png") 954 962 { 955 963 setMenuRole(QAction::ApplicationSpecificRole); … … 1048 1056 /** Constructs action passing @a pParent to the base-class. */ 1049 1057 UIActionSimpleAbout(UIActionPool *pParent) 1050 : UIActionSimple(pParent, ":/about_16px.png" )1058 : UIActionSimple(pParent, ":/about_16px.png", ":/about_16px.png") 1051 1059 { 1052 1060 setMenuRole(QAction::AboutRole); … … 1108 1116 /** Constructs action passing @a pParent to the base-class. */ 1109 1117 UIActionSimplePreferences(UIActionPool *pParent) 1110 : UIActionSimple(pParent, ":/global_settings_16px.png" )1118 : UIActionSimple(pParent, ":/global_settings_16px.png", ":/global_settings_16px.png") 1111 1119 { 1112 1120 setMenuRole(QAction::PreferencesRole); -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIActionPool.h
r73780 r73790 289 289 protected: 290 290 291 /** Constructs simple action passing @a pParent to the base-class. */ 292 UIActionSimple(UIActionPool *pParent); 291 293 /** Constructs simple action passing @a pParent to the base-class. 292 294 * @param strIcon Brings the normal-icon name. 293 295 * @param strIconDisabled Brings the disabled-icon name. */ 294 296 UIActionSimple(UIActionPool *pParent, 295 const QString &strIcon = QString(), 296 const QString &strIconDisabled = QString()); 297 const QString &strIcon, const QString &strIconDisabled); 297 298 /** Constructs simple action passing @a pParent to the base-class. 298 299 * @param strIconNormal Brings the normal-icon name. … … 317 318 protected: 318 319 320 /** Constructs toggle action passing @a pParent to the base-class. */ 321 UIActionToggle(UIActionPool *pParent); 319 322 /** Constructs toggle action passing @a pParent to the base-class. 320 323 * @param strIcon Brings the normal-icon name. 321 324 * @param strIconDisabled Brings the disabled-icon name. */ 322 325 UIActionToggle(UIActionPool *pParent, 323 const QString &strIcon = QString(), const QString &strIconDisabled = QString());326 const QString &strIcon, const QString &strIconDisabled); 324 327 /** Constructs toggle action passing @a pParent to the base-class. 325 328 * @param strIconOn Brings the on-icon name. -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIActionPoolRuntime.cpp
r73780 r73790 756 756 /** Constructs action passing @a pParent to the base-class. */ 757 757 UIActionSimpleRuntimePerformMinimizeWindow(UIActionPool *pParent) 758 : UIActionSimple(pParent, ":/minimize_16px.png" )758 : UIActionSimple(pParent, ":/minimize_16px.png", ":/minimize_16px.png") 759 759 {} 760 760 … … 894 894 }; 895 895 896 /** Simple action extension, used as 'Perform Take S napshot' action class. */896 /** Simple action extension, used as 'Perform Take Screenshot' action class. */ 897 897 class UIActionSimpleRuntimePerformTakeScreenshot : public UIActionSimple 898 898 { … … 990 990 /** Constructs action passing @a pParent to the base-class. */ 991 991 UIActionSimpleRuntimeShowVideoCaptureSettings(UIActionPool *pParent) 992 : UIActionSimple(pParent, ":/video_capture_settings_16px.png" )992 : UIActionSimple(pParent, ":/video_capture_settings_16px.png", ":/video_capture_settings_16px.png") 993 993 {} 994 994 … … 1208 1208 /** Constructs action passing @a pParent to the base-class. */ 1209 1209 UIActionToggleRuntimeMenuBar(UIActionPool *pParent) 1210 : UIActionToggle(pParent, ":/menubar_on_16px.png", ":/menubar_16px.png", 1211 ":/menubar_on_disabled_16px.png", ":/menubar_disabled_16px.png") 1210 : UIActionToggle(pParent, 1211 ":/menubar_on_16px.png", ":/menubar_16px.png", 1212 ":/menubar_on_disabled_16px.png", ":/menubar_disabled_16px.png") 1212 1213 {} 1213 1214 … … 1335 1336 /** Constructs action passing @a pParent to the base-class. */ 1336 1337 UIActionToggleRuntimeStatusBar(UIActionPool *pParent) 1337 : UIActionToggle(pParent, ":/statusbar_on_16px.png", ":/statusbar_16px.png", 1338 ":/statusbar_on_disabled_16px.png", ":/statusbar_disabled_16px.png") 1338 : UIActionToggle(pParent, 1339 ":/statusbar_on_16px.png", ":/statusbar_16px.png", 1340 ":/statusbar_on_disabled_16px.png", ":/statusbar_disabled_16px.png") 1339 1341 {} 1340 1342 -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIActionPoolSelector.cpp
r73780 r73790 72 72 /** Constructs action passing @a pParent to the base-class. */ 73 73 UIActionSimpleSelectorFileShowVirtualMediaManager(UIActionPool *pParent) 74 : UIActionSimple(pParent, ":/media_manager_16px.png" )74 : UIActionSimple(pParent, ":/media_manager_16px.png", ":/media_manager_16px.png") 75 75 {} 76 76 … … 106 106 /** Constructs action passing @a pParent to the base-class. */ 107 107 UIActionSimpleSelectorFileShowHostNetworkManager(UIActionPool *pParent) 108 : UIActionSimple(pParent, ":/host_iface_manager_16px.png" )108 : UIActionSimple(pParent, ":/host_iface_manager_16px.png", ":/host_iface_manager_16px.png") 109 109 {} 110 110 … … 140 140 /** Constructs action passing @a pParent to the base-class. */ 141 141 UIActionSimpleSelectorFileShowImportApplianceWizard(UIActionPool *pParent) 142 : UIActionSimple(pParent, ":/import_16px.png" )142 : UIActionSimple(pParent, ":/import_16px.png", ":/import_16px.png") 143 143 {} 144 144 … … 174 174 /** Constructs action passing @a pParent to the base-class. */ 175 175 UIActionSimpleSelectorFileShowExportApplianceWizard(UIActionPool *pParent) 176 : UIActionSimple(pParent, ":/export_16px.png" )176 : UIActionSimple(pParent, ":/export_16px.png", ":/export_16px.png") 177 177 {} 178 178 … … 209 209 /** Constructs action passing @a pParent to the base-class. */ 210 210 UIActionSimpleSelectorFileShowExtraDataManager(UIActionPool *pParent) 211 : UIActionSimple(pParent, ":/edata_manager_16px.png" )211 : UIActionSimple(pParent, ":/edata_manager_16px.png", ":/edata_manager_16px.png") 212 212 {} 213 213 … … 244 244 /** Constructs action passing @a pParent to the base-class. */ 245 245 UIActionSimpleSelectorFilePerformExit(UIActionPool *pParent) 246 : UIActionSimple(pParent, ":/exit_16px.png" )246 : UIActionSimple(pParent, ":/exit_16px.png", ":/exit_16px.png") 247 247 { 248 248 setMenuRole(QAction::QuitRole); … … 338 338 /** Constructs action passing @a pParent to the base-class. */ 339 339 UIActionSimpleSelectorGroupPerformAddMachine(UIActionPool *pParent) 340 : UIActionSimple(pParent, ":/vm_add_16px.png" )340 : UIActionSimple(pParent, ":/vm_add_16px.png", ":/vm_add_16px.png") 341 341 {} 342 342 … … 526 526 /** Constructs action passing @a pParent to the base-class. */ 527 527 UIActionSimpleSelectorMachinePerformAdd(UIActionPool *pParent) 528 : UIActionSimple(pParent, ":/vm_add_16px.png" )528 : UIActionSimple(pParent, ":/vm_add_16px.png", ":/vm_add_16px.png") 529 529 {} 530 530 … … 818 818 /** Constructs action passing @a pParent to the base-class. */ 819 819 UIActionSimpleSelectorCommonPerformStartNormal(UIActionPool *pParent) 820 : UIActionSimple(pParent, ":/vm_start_16px.png" )820 : UIActionSimple(pParent, ":/vm_start_16px.png", ":/vm_start_16px.png") 821 821 {} 822 822 … … 846 846 /** Constructs action passing @a pParent to the base-class. */ 847 847 UIActionSimpleSelectorCommonPerformStartHeadless(UIActionPool *pParent) 848 : UIActionSimple(pParent, ":/vm_start_headless_16px.png" )848 : UIActionSimple(pParent, ":/vm_start_headless_16px.png", ":/vm_start_headless_16px.png") 849 849 {} 850 850 … … 874 874 /** Constructs action passing @a pParent to the base-class. */ 875 875 UIActionSimpleSelectorCommonPerformStartDetachable(UIActionPool *pParent) 876 : UIActionSimple(pParent, ":/vm_start_separate_16px.png" )876 : UIActionSimple(pParent, ":/vm_start_separate_16px.png", ":/vm_start_separate_16px.png") 877 877 {} 878 878 … … 1301 1301 /** Constructs action passing @a pParent to the base-class. */ 1302 1302 UIActionToggleSelectorToolsMachine(UIActionPool *pParent) 1303 : UIActionToggle(pParent, ":/tools_machine_32px.png" )1303 : UIActionToggle(pParent, ":/tools_machine_32px.png", ":/tools_machine_32px.png") 1304 1304 {} 1305 1305 … … 1448 1448 /** Constructs action passing @a pParent to the base-class. */ 1449 1449 UIActionToggleSelectorToolsGlobal(UIActionPool *pParent) 1450 : UIActionToggle(pParent, ":/tools_global_32px.png" )1450 : UIActionToggle(pParent, ":/tools_global_32px.png", ":/tools_global_32px.png") 1451 1451 {} 1452 1452
Note:
See TracChangeset
for help on using the changeset viewer.