Changeset 52572 in vbox
- Timestamp:
- Sep 2, 2014 3:30:19 PM (10 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIActionPool.cpp
r52567 r52572 880 880 /* Retranslate finally: */ 881 881 retranslateUi(); 882 } 883 884 void UIActionPool::prepareConnections() 885 { 886 /* 'Help' menu connections: */ 887 connect(action(UIActionIndex_Simple_Contents), SIGNAL(triggered()), 888 &msgCenter(), SLOT(sltShowHelpHelpDialog()), Qt::UniqueConnection); 889 connect(action(UIActionIndex_Simple_WebSite), SIGNAL(triggered()), 890 &msgCenter(), SLOT(sltShowHelpWebDialog()), Qt::UniqueConnection); 891 connect(action(UIActionIndex_Simple_ResetWarnings), SIGNAL(triggered()), 892 &msgCenter(), SLOT(sltResetSuppressedMessages()), Qt::UniqueConnection); 893 #ifdef VBOX_GUI_WITH_NETWORK_MANAGER 894 connect(action(UIActionIndex_Simple_NetworkAccessManager), SIGNAL(triggered()), 895 gNetworkManager, SLOT(show()), Qt::UniqueConnection); 896 connect(action(UIActionIndex_Simple_CheckForUpdates), SIGNAL(triggered()), 897 gUpdateManager, SLOT(sltForceCheck()), Qt::UniqueConnection); 898 #endif /* VBOX_GUI_WITH_NETWORK_MANAGER */ 899 #ifdef RT_OS_DARWIN 900 connect(action(UIActionIndex_M_Application_S_About), SIGNAL(triggered()), 901 &msgCenter(), SLOT(sltShowHelpAboutDialog()), Qt::UniqueConnection); 902 #else /* !RT_OS_DARWIN */ 903 connect(action(UIActionIndex_Simple_About), SIGNAL(triggered()), 904 &msgCenter(), SLOT(sltShowHelpAboutDialog()), Qt::UniqueConnection); 905 #endif /* !RT_OS_DARWIN */ 882 906 } 883 907 … … 971 995 action(UIActionIndex_M_Application_S_About)->setVisible(fAllowToShowActionAbout); 972 996 if (!pMenu->isConsumed()) 973 {974 997 pMenu->addAction(action(UIActionIndex_M_Application_S_About)); 975 connect(action(UIActionIndex_M_Application_S_About), SIGNAL(triggered()),976 &msgCenter(), SLOT(sltShowHelpAboutDialog()), Qt::UniqueConnection);977 }978 998 979 999 /* Only for Runtime pool: */ … … 1018 1038 { 1019 1039 pMenu->addAction(action(UIActionIndex_Simple_Contents)); 1020 connect(action(UIActionIndex_Simple_Contents), SIGNAL(triggered()),1021 &msgCenter(), SLOT(sltShowHelpHelpDialog()), Qt::UniqueConnection);1022 1040 fSeparator = true; 1023 1041 } … … 1029 1047 { 1030 1048 pMenu->addAction(action(UIActionIndex_Simple_WebSite)); 1031 connect(action(UIActionIndex_Simple_WebSite), SIGNAL(triggered()),1032 &msgCenter(), SLOT(sltShowHelpWebDialog()), Qt::UniqueConnection);1033 1049 fSeparator = true; 1034 1050 } … … 1049 1065 { 1050 1066 pMenu->addAction(action(UIActionIndex_Simple_ResetWarnings)); 1051 connect(action(UIActionIndex_Simple_ResetWarnings), SIGNAL(triggered()),1052 &msgCenter(), SLOT(sltResetSuppressedMessages()), Qt::UniqueConnection);1053 1067 fSeparator = true; 1054 1068 } … … 1070 1084 { 1071 1085 pMenu->addAction(action(UIActionIndex_Simple_NetworkAccessManager)); 1072 connect(action(UIActionIndex_Simple_NetworkAccessManager), SIGNAL(triggered()),1073 gNetworkManager, SLOT(show()), Qt::UniqueConnection);1074 1086 fSeparator = true; 1075 1087 } … … 1084 1096 { 1085 1097 pMenu->addAction(action(UIActionIndex_Simple_CheckForUpdates)); 1086 connect(action(UIActionIndex_Simple_CheckForUpdates), SIGNAL(triggered()),1087 gUpdateManager, SLOT(sltForceCheck()), Qt::UniqueConnection);1088 1098 fSeparator = true; 1089 1099 } … … 1105 1115 action(UIActionIndex_Simple_About)->setEnabled(fAllowToShowActionAbout); 1106 1116 if (fAllowToShowActionAbout) 1107 {1108 1117 pMenu->addAction(action(UIActionIndex_Simple_About)); 1109 connect(action(UIActionIndex_Simple_About), SIGNAL(triggered()),1110 &msgCenter(), SLOT(sltShowHelpAboutDialog()), Qt::UniqueConnection);1111 }1112 1118 1113 1119 /* Only for Runtime pool: */ -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIActionPool.h
r52558 r52572 397 397 virtual void preparePool(); 398 398 /** Prepare connections routine. */ 399 virtual void prepareConnections() = 0;399 virtual void prepareConnections(); 400 400 /** Cleanup connections routine. */ 401 401 virtual void cleanupConnections() {} -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIActionPoolRuntime.cpp
r52567 r52572 1859 1859 connect(gShortcutPool, SIGNAL(sigMachineShortcutsReloaded()), this, SLOT(sltApplyShortcuts())); 1860 1860 connect(gEDataManager, SIGNAL(sigMenuBarConfigurationChange()), this, SLOT(sltHandleConfigurationChange())); 1861 1862 /* Call to base-class: */ 1863 UIActionPool::prepareConnections(); 1861 1864 } 1862 1865 -
trunk/src/VBox/Frontends/VirtualBox/src/selector/UIActionPoolSelector.cpp
r52215 r52572 952 952 /* Prepare connections: */ 953 953 connect(gShortcutPool, SIGNAL(sigSelectorShortcutsReloaded()), this, SLOT(sltApplyShortcuts())); 954 955 /* Call to base-class: */ 956 UIActionPool::prepareConnections(); 954 957 } 955 958
Note:
See TracChangeset
for help on using the changeset viewer.