Skip to content

Commit

Permalink
Add support page link.
Browse files Browse the repository at this point in the history
Load online help manual from help menu
  • Loading branch information
NathanW2 committed May 10, 2013
1 parent 576102b commit 7f72d7f
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/app/qgisapp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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() ) );
Expand Down Expand Up @@ -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()
Expand All @@ -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 );
Expand Down
2 changes: 2 additions & 0 deletions src/app/qgisapp.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 6 additions & 0 deletions src/ui/qgisapp.ui
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@
</property>
<addaction name="mActionHelpContents"/>
<addaction name="mActionHelpAPI"/>
<addaction name="mActionNeedSupport"/>
<addaction name="separator"/>
<addaction name="mActionQgisHomePage"/>
<addaction name="mActionCheckQgisVersion"/>
Expand Down Expand Up @@ -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"/>
Expand Down

0 comments on commit 7f72d7f

Please sign in to comment.