Skip to content
Permalink
Browse files

Add support page link.

Load online help manual from help menu
  • Loading branch information
NathanW2 committed May 10, 2013
1 parent 576102b commit 7f72d7f3d35fa5bfc9509b26a28c5edf0e998d1d
Showing with 16 additions and 1 deletion.
  1. +8 −1 src/app/qgisapp.cpp
  2. +2 −0 src/app/qgisapp.h
  3. +6 −0 src/ui/qgisapp.ui
@@ -1075,6 +1075,7 @@ void QgisApp::createActions()

connect( mActionHelpContents, SIGNAL( triggered() ), this, SLOT( helpContents() ) );
connect( mActionHelpAPI, SIGNAL( triggered() ), this, SLOT( apiDocumentation() ) );
connect( mActionNeedSupport, SIGNAL( triggered() ), this, SLOT( supportProviders() ) );
connect( mActionQgisHomePage, SIGNAL( triggered() ), this, SLOT( helpQgisHomePage() ) );
connect( mActionCheckQgisVersion, SIGNAL( triggered() ), this, SLOT( checkQgisVersion() ) );
connect( mActionAbout, SIGNAL( triggered() ), this, SLOT( about() ) );
@@ -6556,7 +6557,8 @@ void QgisApp::adjustBrightnessContrast( int delta, bool updateBrightness )

void QgisApp::helpContents()
{
openURL( "index.html" );
// We should really ship the HTML version of the docs local too.
openURL( "http://docs.qgis.org/2.0/html/en/docs/user_manual/index.html", false );
}

void QgisApp::apiDocumentation()
@@ -6571,6 +6573,11 @@ void QgisApp::apiDocumentation()
}
}

void QgisApp::supportProviders()
{
openURL( "http://www.qgis.org/en/commercial-support.html", false );
}

void QgisApp::helpQgisHomePage()
{
openURL( "http://qgis.org", false );
@@ -851,6 +851,8 @@ class QgisApp : public QMainWindow, private Ui::MainWindow
void helpContents();
//! Open the API documentation in a browser
void apiDocumentation();
//! Open the QGIS support page
void supportProviders();
//! Open the QGIS homepage in users browser
void helpQgisHomePage();
//! Open a url in the users configured browser
@@ -200,6 +200,7 @@
</property>
<addaction name="mActionHelpContents"/>
<addaction name="mActionHelpAPI"/>
<addaction name="mActionNeedSupport"/>
<addaction name="separator"/>
<addaction name="mActionQgisHomePage"/>
<addaction name="mActionCheckQgisVersion"/>
@@ -2068,6 +2069,11 @@ Acts on currently active editable layer</string>
<string>Select features using an expression</string>
</property>
</action>
<action name="mActionNeedSupport">
<property name="text">
<string>Need Support?</string>
</property>
</action>
</widget>
<resources>
<include location="../../images/images.qrc"/>

0 comments on commit 7f72d7f

Please sign in to comment.
You can’t perform that action at this time.