Changeset 3445 in vbox for trunk/src/VBox
- Timestamp:
- Jul 5, 2007 10:56:54 AM (18 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/include/VBoxGlobal.h
r3144 r3445 435 435 static QString removeAccelMark (const QString &aText); 436 436 437 public slots: 438 439 void showHelpDialog(); 440 437 441 signals: 438 442 -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxGlobal.cpp
r3275 r3445 2941 2941 } 2942 2942 2943 /** 2943 /** 2944 2944 * Removes the acceletartor mark (the ampersand symbol) from the given string 2945 2945 * and returns the result. The string is supposed to be a menu item's text … … 2954 2954 * @note This function removes only the first occurense of the accelerator 2955 2955 * mark. 2956 * 2956 * 2957 2957 * @param aText Menu item's text to remove the acceletaror mark from. 2958 * 2958 * 2959 2959 * @return The resulting string. 2960 2960 */ … … 2976 2976 2977 2977 return result; 2978 } 2979 2980 void VBoxGlobal::showHelpDialog() 2981 { 2982 #ifndef VBOX_OSE 2983 #if defined (Q_WS_WIN32) 2984 QString fullHelpFilePath = qApp->applicationDirPath() + "/VirtualBox.chm"; 2985 2986 HtmlHelp (GetDesktopWindow(), fullHelpFilePath.ucs2(), 2987 HH_DISPLAY_TOPIC, NULL); 2988 #elif defined (Q_WS_X11) 2989 QString fullProgPath = qApp->applicationDirPath(); 2990 QProcess kchmViewer (fullProgPath + "/kchmviewer"); 2991 kchmViewer.addArgument (fullProgPath + "/VirtualBox.chm"); 2992 kchmViewer.launch (""); 2993 #elif defined (Q_WS_MAC) 2994 QProcess openApp (QString("/usr/bin/open")); 2995 openApp.addArgument (qApp->applicationDirPath() + "/UserManual.pdf"); 2996 openApp.launch (""); 2997 #endif 2998 #endif /* VBOX_OSE */ 2978 2999 } 2979 3000 -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxSelectorWnd.cpp
r3061 r3445 951 951 void VBoxSelectorWnd::showHelpContents() 952 952 { 953 #ifndef VBOX_OSE 954 #if defined (Q_WS_WIN32) 955 QString fullHelpFilePath = qApp->applicationDirPath() + "/VirtualBox.chm"; 956 957 HtmlHelp (GetDesktopWindow(), fullHelpFilePath.ucs2(), 958 HH_DISPLAY_TOPIC, NULL); 959 #elif defined (Q_WS_X11) 960 QString fullProgPath = qApp->applicationDirPath(); 961 QProcess kchmViewer (fullProgPath + "/kchmviewer"); 962 kchmViewer.addArgument (fullProgPath + "/VirtualBox.chm"); 963 kchmViewer.launch (""); 964 #elif defined (Q_WS_MAC) 965 QProcess openApp (QString("/usr/bin/open")); 966 openApp.addArgument (qApp->applicationDirPath() + "/UserManual.pdf"); 967 openApp.launch (""); 968 #endif 969 #endif /* VBOX_OSE */ 953 vboxGlobal().showHelpDialog(); 970 954 } 971 955 -
trunk/src/VBox/Frontends/VirtualBox/ui/VBoxCloseVMDlg.ui
r2988 r3445 288 288 <slot>setEnabled(bool)</slot> 289 289 </connection> 290 <connection> 291 <sender>buttonHelp</sender> 292 <signal>clicked()</signal> 293 <receiver>&vboxGlobal()</receiver> 294 <slot>showHelpDialog()</slot> 295 </connection> 290 296 </connections> 297 <includes> 298 <include location="local" impldecl="in implementation">VBoxGlobal.h</include> 299 </includes> 291 300 <pixmapinproject/> 292 301 <layoutdefaults spacing="6" margin="11"/> -
trunk/src/VBox/Frontends/VirtualBox/ui/VBoxDiskImageManagerDlg.ui
r2988 r3445 495 495 <receiver>VBoxDiskImageManagerDlg</receiver> 496 496 <slot>processCurrentChanged()</slot> 497 </connection> 498 <connection> 499 <sender>buttonHelp</sender> 500 <signal>clicked()</signal> 501 <receiver>&vboxGlobal()</receiver> 502 <slot>showHelpDialog()</slot> 497 503 </connection> 498 504 </connections> -
trunk/src/VBox/Frontends/VirtualBox/ui/VBoxGlobalSettingsDlg.ui
r3183 r3445 1271 1271 <receiver>VBoxGlobalSettingsDlg</receiver> 1272 1272 <slot>lvLanguages_currentChanged(QListViewItem*)</slot> 1273 </connection> 1274 <connection> 1275 <sender>buttonHelp</sender> 1276 <signal>clicked()</signal> 1277 <receiver>&vboxGlobal()</receiver> 1278 <slot>showHelpDialog()</slot> 1273 1279 </connection> 1274 1280 </connections> -
trunk/src/VBox/Frontends/VirtualBox/ui/VBoxSnapshotDetailsDlg.ui
r2988 r3445 273 273 <slot>leName_textChanged(const QString&)</slot> 274 274 </connection> 275 <connection> 276 <sender>buttonHelp</sender> 277 <signal>clicked()</signal> 278 <receiver>&vboxGlobal()</receiver> 279 <slot>showHelpDialog()</slot> 280 </connection> 275 281 </connections> 276 282 <tabstops> -
trunk/src/VBox/Frontends/VirtualBox/ui/VBoxTakeSnapshotDlg.ui
r2988 r3445 288 288 <slot>leName_textChanged(const QString&)</slot> 289 289 </connection> 290 <connection> 291 <sender>buttonHelp</sender> 292 <signal>clicked()</signal> 293 <receiver>&vboxGlobal()</receiver> 294 <slot>showHelpDialog()</slot> 295 </connection> 290 296 </connections> 291 297 <tabstops> … … 296 302 <include location="global" impldecl="in declaration">qlabel.h</include> 297 303 <include location="global" impldecl="in declaration">qlineedit.h</include> 304 <include location="local" impldecl="in implementation">VBoxGlobal.h</include> 298 305 <include location="local" impldecl="in implementation">VBoxUtils.h</include> 299 306 <include location="local" impldecl="in implementation">VBoxTakeSnapshotDlg.ui.h</include> -
trunk/src/VBox/Frontends/VirtualBox/ui/VBoxVMSettingsDlg.ui
r3349 r3445 2891 2891 <receiver>VBoxVMSettingsDlg</receiver> 2892 2892 <slot>hostInterfaceRemove()</slot> 2893 </connection> 2894 <connection> 2895 <sender>buttonHelp</sender> 2896 <signal>clicked()</signal> 2897 <receiver>&vboxGlobal()</receiver> 2898 <slot>showHelpDialog()</slot> 2893 2899 </connection> 2894 2900 </connections>
Note:
See TracChangeset
for help on using the changeset viewer.