VirtualBox

Changeset 3448 in vbox for trunk


Ignore:
Timestamp:
Jul 5, 2007 11:22:58 AM (17 years ago)
Author:
vboxsync
Message:

Moved VBoxGlobal::showHelpDialog() to VBoxProblemReporter::showHelpHelpDialog()

Location:
trunk/src/VBox/Frontends/VirtualBox
Files:
11 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/include/VBoxGlobal.h

    r3445 r3448  
    435435    static QString removeAccelMark (const QString &aText);
    436436
    437 public slots:
    438 
    439     void showHelpDialog();
    440 
    441437signals:
    442438
  • trunk/src/VBox/Frontends/VirtualBox/include/VBoxProblemReporter.h

    r3275 r3448  
    247247    void showHelpWebDialog();
    248248    void showHelpAboutDialog();
     249    void showHelpHelpDialog();
    249250    void resetSuppressedMessages();
    250251
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxGlobal.cpp

    r3445 r3448  
    29782978}
    29792979
    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 */
    2999 }
    3000 
    30012980// Protected members
    30022981////////////////////////////////////////////////////////////////////////////////
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxProblemReporter.cpp

    r3275 r3448  
    16931693}
    16941694
     1695void VBoxProblemReporter::showHelpHelpDialog()
     1696{
     1697#ifndef VBOX_OSE
     1698#if defined (Q_WS_WIN32)
     1699    QString fullHelpFilePath = qApp->applicationDirPath() + "/VirtualBox.chm";
     1700
     1701    HtmlHelp (GetDesktopWindow(), fullHelpFilePath.ucs2(),
     1702              HH_DISPLAY_TOPIC, NULL);
     1703#elif defined (Q_WS_X11)
     1704    QString fullProgPath = qApp->applicationDirPath();
     1705    QProcess kchmViewer (fullProgPath + "/kchmviewer");
     1706    kchmViewer.addArgument (fullProgPath + "/VirtualBox.chm");
     1707    kchmViewer.launch ("");
     1708#elif defined (Q_WS_MAC)
     1709    QProcess openApp (QString("/usr/bin/open"));
     1710    openApp.addArgument (qApp->applicationDirPath() + "/UserManual.pdf");
     1711    openApp.launch ("");
     1712#endif
     1713#endif /* VBOX_OSE */
     1714}
     1715
    16951716void VBoxProblemReporter::resetSuppressedMessages()
    16961717{
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxSelectorWnd.cpp

    r3445 r3448  
    951951void VBoxSelectorWnd::showHelpContents()
    952952{
    953     vboxGlobal().showHelpDialog();
     953    vboxProblem().showHelpHelpDialog();
    954954}
    955955
  • trunk/src/VBox/Frontends/VirtualBox/ui/VBoxCloseVMDlg.ui

    r3445 r3448  
    291291        <sender>buttonHelp</sender>
    292292        <signal>clicked()</signal>
    293         <receiver>&amp;vboxGlobal()</receiver>
    294         <slot>showHelpDialog()</slot>
     293        <receiver>&amp;vboxProblem()</receiver>
     294        <slot>showHelpHelpDialog()</slot>
    295295    </connection>
    296296</connections>
    297297<includes>
    298     <include location="local" impldecl="in implementation">VBoxGlobal.h</include>
     298    <include location="local" impldecl="in implementation">VBoxProblemReporter.h</include>
    299299</includes>
    300300<pixmapinproject/>
  • trunk/src/VBox/Frontends/VirtualBox/ui/VBoxDiskImageManagerDlg.ui

    r3445 r3448  
    499499        <sender>buttonHelp</sender>
    500500        <signal>clicked()</signal>
    501         <receiver>&amp;vboxGlobal()</receiver>
    502         <slot>showHelpDialog()</slot>
     501        <receiver>&amp;vboxProblem()</receiver>
     502        <slot>showHelpHelpDialog()</slot>
    503503    </connection>
    504504</connections>
  • trunk/src/VBox/Frontends/VirtualBox/ui/VBoxGlobalSettingsDlg.ui

    r3445 r3448  
    12751275        <sender>buttonHelp</sender>
    12761276        <signal>clicked()</signal>
    1277         <receiver>&amp;vboxGlobal()</receiver>
    1278         <slot>showHelpDialog()</slot>
     1277        <receiver>&amp;vboxProblem()</receiver>
     1278        <slot>showHelpHelpDialog()</slot>
    12791279    </connection>
    12801280</connections>
  • trunk/src/VBox/Frontends/VirtualBox/ui/VBoxSnapshotDetailsDlg.ui

    r3445 r3448  
    276276        <sender>buttonHelp</sender>
    277277        <signal>clicked()</signal>
    278         <receiver>&amp;vboxGlobal()</receiver>
    279         <slot>showHelpDialog()</slot>
     278        <receiver>&amp;vboxProblem()</receiver>
     279        <slot>showHelpHelpDialog()</slot>
    280280    </connection>
    281281</connections>
     
    288288    <include location="local" impldecl="in declaration">COMDefs.h</include>
    289289    <include location="local" impldecl="in implementation">VBoxUtils.h</include>
     290    <include location="local" impldecl="in implementation">VBoxProblemReporter.h</include>
    290291    <include location="local" impldecl="in implementation">VBoxGlobal.h</include>
    291292</includes>
  • trunk/src/VBox/Frontends/VirtualBox/ui/VBoxTakeSnapshotDlg.ui

    r3445 r3448  
    291291        <sender>buttonHelp</sender>
    292292        <signal>clicked()</signal>
    293         <receiver>&amp;vboxGlobal()</receiver>
    294         <slot>showHelpDialog()</slot>
     293        <receiver>&amp;vboxProblem()</receiver>
     294        <slot>showHelpHelpDialog()</slot>
    295295    </connection>
    296296</connections>
     
    302302    <include location="global" impldecl="in declaration">qlabel.h</include>
    303303    <include location="global" impldecl="in declaration">qlineedit.h</include>
    304     <include location="local" impldecl="in implementation">VBoxGlobal.h</include>
     304    <include location="local" impldecl="in implementation">VBoxProblemReporter.h</include>
    305305    <include location="local" impldecl="in implementation">VBoxUtils.h</include>
    306306    <include location="local" impldecl="in implementation">VBoxTakeSnapshotDlg.ui.h</include>
  • trunk/src/VBox/Frontends/VirtualBox/ui/VBoxVMSettingsDlg.ui

    r3445 r3448  
    28952895        <sender>buttonHelp</sender>
    28962896        <signal>clicked()</signal>
    2897         <receiver>&amp;vboxGlobal()</receiver>
    2898         <slot>showHelpDialog()</slot>
     2897        <receiver>&amp;vboxProblem()</receiver>
     2898        <slot>showHelpHelpDialog()</slot>
    28992899    </connection>
    29002900</connections>
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette