use new QgsHelp where possible instead of builtin context help

This commit is contained in:
Alexander Bruy 2017-01-19 11:57:35 +02:00
parent 6c55e68845
commit 57535763d7
33 changed files with 64 additions and 72 deletions

View File

@ -21,7 +21,7 @@
#include <ui_qgsopenvectorlayerdialogbase.h> #include <ui_qgsopenvectorlayerdialogbase.h>
#include <QDialog> #include <QDialog>
#include "qgscontexthelp.h" #include "qgshelp.h"
/** /**
* Class for a dialog to select the type and source for ogr vectors, supports * Class for a dialog to select the type and source for ogr vectors, supports
@ -84,7 +84,7 @@ class QgsOpenVectorLayerDialog : public QDialog, private Ui::QgsOpenVectorLayerD
void on_btnDelete_clicked(); void on_btnDelete_clicked();
void on_cmbDatabaseTypes_currentIndexChanged( const QString & text ); void on_cmbDatabaseTypes_currentIndexChanged( const QString & text );
void on_cmbConnections_currentIndexChanged( const QString & text ); void on_cmbConnections_currentIndexChanged( const QString & text );
void on_buttonBox_helpRequested() { QgsContextHelp::run( metaObject()->className() ); } void on_buttonBox_helpRequested() { QgsHelp::openHelp( QStringLiteral( "working_with_vector/supported_data.html#loading-a-layer-from-a-file" ) ); }
}; };
#endif // QGSOPENVECTORDIALOG_H #endif // QGSOPENVECTORDIALOG_H

View File

@ -26,7 +26,7 @@
#include "ui_qgspluginmanagerbase.h" #include "ui_qgspluginmanagerbase.h"
#include "qgsoptionsdialogbase.h" #include "qgsoptionsdialogbase.h"
#include "qgisgui.h" #include "qgisgui.h"
#include "qgscontexthelp.h" #include "qgshelp.h"
#include "qgsmessagebar.h" #include "qgsmessagebar.h"
#include "qgspythonutils.h" #include "qgspythonutils.h"
@ -156,7 +156,7 @@ class QgsPluginManager : public QgsOptionsDialogBase, private Ui::QgsPluginManag
void on_ckbDeprecated_toggled( bool state ); void on_ckbDeprecated_toggled( bool state );
//! Open help browser //! Open help browser
void on_buttonBox_helpRequested() { QgsContextHelp::run( metaObject()->className() ); } void on_buttonBox_helpRequested() { QgsHelp::openHelp( QStringLiteral( "plugins/plugins.html#the-plugins-dialog" ) ); }
//! Reimplement QgsOptionsDialogBase method to prevent modifying the tab list by signals from the stacked widget //! Reimplement QgsOptionsDialogBase method to prevent modifying the tab list by signals from the stacked widget
void optionsStackedWidget_CurrentChanged( int indx ) { Q_UNUSED( indx ) } void optionsStackedWidget_CurrentChanged( int indx ) { Q_UNUSED( indx ) }

View File

@ -246,6 +246,7 @@
#include "qgstransaction.h" #include "qgstransaction.h"
#include "qgstransactiongroup.h" #include "qgstransactiongroup.h"
#include "qgsvectorlayerutils.h" #include "qgsvectorlayerutils.h"
#include "qgshelp.h"
#include "qgssublayersdialog.h" #include "qgssublayersdialog.h"
#include "ogr/qgsopenvectorlayerdialog.h" #include "ogr/qgsopenvectorlayerdialog.h"
@ -9311,15 +9312,7 @@ void QgisApp::adjustBrightnessContrast( int delta, bool updateBrightness )
void QgisApp::helpContents() void QgisApp::helpContents()
{ {
QSettings settings; QgsHelp::openHelp( QStringLiteral( "index.html" ) );
QString helpUrl = settings.value( QStringLiteral( "Qgis/docsUserManualUrl" ),
QStringLiteral( "https://docs.qgis.org/%1.%2/%3/docs/user_manual/" ) ).toString();
// We should really ship the HTML version of the docs local too.
openURL( helpUrl
.arg( Qgis::QGIS_VERSION_INT / 10000 )
.arg( Qgis::QGIS_VERSION_INT / 100 % 100 )
.arg( tr( "en", "documentation language" ) ),
false );
} }
void QgisApp::apiDocumentation() void QgisApp::apiDocumentation()

View File

@ -19,7 +19,7 @@
#define QGSCUSTOMCRSDIALOG_H #define QGSCUSTOMCRSDIALOG_H
#include "ui_qgscustomprojectiondialogbase.h" #include "ui_qgscustomprojectiondialogbase.h"
#include "qgscontexthelp.h" #include "qgshelp.h"
#include "qgscoordinatereferencesystem.h" #include "qgscoordinatereferencesystem.h"
#include "qgis_app.h" #include "qgis_app.h"
@ -44,7 +44,7 @@ class APP_EXPORT QgsCustomProjectionDialog : public QDialog, private Ui::QgsCust
void on_pbnCopyCRS_clicked(); void on_pbnCopyCRS_clicked();
void on_leNameList_currentItemChanged( QTreeWidgetItem *current, QTreeWidgetItem *prev ); void on_leNameList_currentItemChanged( QTreeWidgetItem *current, QTreeWidgetItem *prev );
void on_buttonBox_helpRequested() { QgsContextHelp::run( metaObject()->className() ); } void on_buttonBox_helpRequested() { QgsHelp::openHelp( QStringLiteral( "working_with_projections/working_with_projections.html#custom-coordinate-reference-system" ) ); }
void on_buttonBox_accepted(); void on_buttonBox_accepted();
private: private:

View File

@ -13,7 +13,7 @@
#include "qgsdecorationcopyrightdialog.h" #include "qgsdecorationcopyrightdialog.h"
#include "qgsdecorationcopyright.h" #include "qgsdecorationcopyright.h"
#include "qgscontexthelp.h" #include "qgshelp.h"
//qt includes //qt includes
#include <QColorDialog> #include <QColorDialog>
@ -100,5 +100,5 @@ void QgsDecorationCopyrightDialog::apply()
void QgsDecorationCopyrightDialog::on_buttonBox_helpRequested() void QgsDecorationCopyrightDialog::on_buttonBox_helpRequested()
{ {
QgsContextHelp::run( metaObject()->className() ); QgsHelp::openHelp( QStringLiteral( "introduction/general_tools.html#id57" ) );
} }

View File

@ -20,7 +20,7 @@
#include "qgsdecorationgrid.h" #include "qgsdecorationgrid.h"
#include "qgslogger.h" #include "qgslogger.h"
#include "qgscontexthelp.h" #include "qgshelp.h"
#include "qgsstyle.h" #include "qgsstyle.h"
#include "qgssymbol.h" #include "qgssymbol.h"
#include "qgssymbolselectordialog.h" #include "qgssymbolselectordialog.h"
@ -178,7 +178,7 @@ QgsDecorationGridDialog::~QgsDecorationGridDialog()
void QgsDecorationGridDialog::on_buttonBox_helpRequested() void QgsDecorationGridDialog::on_buttonBox_helpRequested()
{ {
QgsContextHelp::run( metaObject()->className() ); QgsHelp::openHelp( QStringLiteral( "introduction/general_tools.html#id56" ) );
} }
void QgsDecorationGridDialog::on_buttonBox_accepted() void QgsDecorationGridDialog::on_buttonBox_accepted()

View File

@ -13,7 +13,7 @@
#include "qgsdecorationnortharrowdialog.h" #include "qgsdecorationnortharrowdialog.h"
#include "qgsdecorationnortharrow.h" #include "qgsdecorationnortharrow.h"
#include "qgslogger.h" #include "qgslogger.h"
#include "qgscontexthelp.h" #include "qgshelp.h"
#include <QPainter> #include <QPainter>
#include <QSettings> #include <QSettings>
@ -65,7 +65,7 @@ QgsDecorationNorthArrowDialog::~QgsDecorationNorthArrowDialog()
void QgsDecorationNorthArrowDialog::on_buttonBox_helpRequested() void QgsDecorationNorthArrowDialog::on_buttonBox_helpRequested()
{ {
QgsContextHelp::run( metaObject()->className() ); QgsHelp::openHelp( QStringLiteral( "introduction/general_tools.html#north-arrow" ) );
} }
void QgsDecorationNorthArrowDialog::on_buttonBox_accepted() void QgsDecorationNorthArrowDialog::on_buttonBox_accepted()

View File

@ -13,7 +13,7 @@
#include "qgsdecorationscalebardialog.h" #include "qgsdecorationscalebardialog.h"
#include "qgsdecorationscalebar.h" #include "qgsdecorationscalebar.h"
#include "qgslogger.h" #include "qgslogger.h"
#include "qgscontexthelp.h" #include "qgshelp.h"
#include <QColorDialog> #include <QColorDialog>
#include <QSettings> #include <QSettings>
@ -84,7 +84,7 @@ QgsDecorationScaleBarDialog::~QgsDecorationScaleBarDialog()
void QgsDecorationScaleBarDialog::on_buttonBox_helpRequested() void QgsDecorationScaleBarDialog::on_buttonBox_helpRequested()
{ {
QgsContextHelp::run( metaObject()->className() ); QgsHelp::openHelp( QStringLiteral( "introduction/general_tools.html#scale-bar" ) );
} }
void QgsDecorationScaleBarDialog::apply() void QgsDecorationScaleBarDialog::apply()

View File

@ -19,7 +19,7 @@
#define QGSIDENTIFYRESULTSDIALOG_H #define QGSIDENTIFYRESULTSDIALOG_H
#include "ui_qgsidentifyresultsbase.h" #include "ui_qgsidentifyresultsbase.h"
#include "qgscontexthelp.h" #include "qgshelp.h"
#include "qgsfeature.h" #include "qgsfeature.h"
#include "qgsfields.h" #include "qgsfields.h"
#include "qgscoordinatereferencesystem.h" #include "qgscoordinatereferencesystem.h"
@ -205,7 +205,7 @@ class APP_EXPORT QgsIdentifyResultsDialog: public QDialog, private Ui::QgsIdenti
QTreeWidgetItem *retrieveAttributes( QTreeWidgetItem *item, QgsAttributeMap &attributes, int &currentIdx ); QTreeWidgetItem *retrieveAttributes( QTreeWidgetItem *item, QgsAttributeMap &attributes, int &currentIdx );
void helpRequested() { QgsContextHelp::run( metaObject()->className() ); } void helpRequested() { QgsHelp::openHelp( QStringLiteral( "introduction/general_tools.html#identify" ) ); }
void on_cmbIdentifyMode_currentIndexChanged( int index ); void on_cmbIdentifyMode_currentIndexChanged( int index );

View File

@ -19,7 +19,6 @@
#include "qgsmeasuretool.h" #include "qgsmeasuretool.h"
#include "qgslogger.h" #include "qgslogger.h"
#include "qgscontexthelp.h"
#include "qgsdistancearea.h" #include "qgsdistancearea.h"
#include "qgsmapcanvas.h" #include "qgsmapcanvas.h"
#include "qgsproject.h" #include "qgsproject.h"

View File

@ -21,7 +21,7 @@
#include "qgspoint.h" #include "qgspoint.h"
#include "qgsdistancearea.h" #include "qgsdistancearea.h"
#include "qgscontexthelp.h" #include "qgshelp.h"
#include "qgis_app.h" #include "qgis_app.h"
class QCloseEvent; class QCloseEvent;
@ -61,7 +61,7 @@ class APP_EXPORT QgsMeasureDialog : public QDialog, private Ui::QgsMeasureBase
void closeEvent( QCloseEvent *e ) override; void closeEvent( QCloseEvent *e ) override;
//! Show the help for the dialog //! Show the help for the dialog
void on_buttonBox_helpRequested() { QgsContextHelp::run( metaObject()->className() ); } void on_buttonBox_helpRequested() { QgsHelp::openHelp( QStringLiteral( "introduction/general_tools.html#id38" ) ); }
//! When any external settings change //! When any external settings change
void updateSettings(); void updateSettings();

View File

@ -19,7 +19,7 @@
#include "ui_qgsnewspatialitelayerdialogbase.h" #include "ui_qgsnewspatialitelayerdialogbase.h"
#include "qgisgui.h" #include "qgisgui.h"
#include "qgscontexthelp.h" #include "qgshelp.h"
#include "qgis.h" #include "qgis.h"
@ -48,7 +48,7 @@ class APP_EXPORT QgsNewSpatialiteLayerDialog: public QDialog, private Ui::QgsNew
void selectionChanged(); void selectionChanged();
void checkOk(); void checkOk();
void on_buttonBox_helpRequested() { QgsContextHelp::run( metaObject()->className() ); } void on_buttonBox_helpRequested() { QgsHelp::openHelp( QStringLiteral( "working_with_vector/editing_geometry_attributes.html#vector-create-spatialite" ) ); }
void on_buttonBox_accepted(); void on_buttonBox_accepted();
void on_buttonBox_rejected(); void on_buttonBox_rejected();

View File

@ -22,7 +22,7 @@
#include "ui_qgsoptionsbase.h" #include "ui_qgsoptionsbase.h"
#include "qgisgui.h" #include "qgisgui.h"
#include "qgisapp.h" #include "qgisapp.h"
#include "qgscontexthelp.h" #include "qgshelp.h"
#include <qgscoordinatereferencesystem.h> #include <qgscoordinatereferencesystem.h>
@ -176,7 +176,7 @@ class APP_EXPORT QgsOptions : public QgsOptionsDialogBase, private Ui::QgsOption
void on_mBtnRemoveHiddenPath_clicked(); void on_mBtnRemoveHiddenPath_clicked();
void on_buttonBox_helpRequested() { QgsContextHelp::run( metaObject()->className() ); } void on_buttonBox_helpRequested() { QgsHelp::openHelp( QStringLiteral( "introduction/qgis_configuration.html#options" ) ); }
void on_mBrowseCacheDirectory_clicked(); void on_mBrowseCacheDirectory_clicked();
void on_mClearCache_clicked(); void on_mClearCache_clicked();

View File

@ -22,7 +22,7 @@
#include "qgis.h" #include "qgis.h"
#include "qgsunittypes.h" #include "qgsunittypes.h"
#include "qgisgui.h" #include "qgisgui.h"
#include "qgscontexthelp.h" #include "qgshelp.h"
#include "qgis_app.h" #include "qgis_app.h"
class QgsMapCanvas; class QgsMapCanvas;
@ -141,7 +141,7 @@ class APP_EXPORT QgsProjectProperties : public QgsOptionsDialogBase, private Ui:
/*! /*!
* Slot to show the context help for this dialog * Slot to show the context help for this dialog
*/ */
void on_buttonBox_helpRequested() { QgsContextHelp::run( metaObject()->className() ); } void on_buttonBox_helpRequested() { QgsHelp::openHelp( QStringLiteral( "introduction/qgis_configuration.html#project-properties" ) ); }
void on_cbxProjectionEnabled_toggled( bool onFlyEnabled ); void on_cbxProjectionEnabled_toggled( bool onFlyEnabled );

View File

@ -22,7 +22,7 @@
#include "qgsoptionsdialogbase.h" #include "qgsoptionsdialogbase.h"
#include "ui_qgsrasterlayerpropertiesbase.h" #include "ui_qgsrasterlayerpropertiesbase.h"
#include "qgisgui.h" #include "qgisgui.h"
#include "qgscontexthelp.h" #include "qgshelp.h"
#include "qgsmaplayerstylemanager.h" #include "qgsmaplayerstylemanager.h"
#include "qgis_app.h" #include "qgis_app.h"
@ -100,7 +100,7 @@ class APP_EXPORT QgsRasterLayerProperties : public QgsOptionsDialogBase, private
//! Save a style when appriate button is pressed. //! Save a style when appriate button is pressed.
void saveStyleAs_clicked(); void saveStyleAs_clicked();
//! Help button //! Help button
void on_buttonBox_helpRequested() { QgsContextHelp::run( metaObject()->className() ); } void on_buttonBox_helpRequested() { QgsHelp::openHelp( QStringLiteral( "working_with_raster/raster_properties.html" ) ); }
//! Slot to reset all color rendering options to default //! Slot to reset all color rendering options to default
void on_mResetColorRenderingBtn_clicked(); void on_mResetColorRenderingBtn_clicked();

View File

@ -22,7 +22,7 @@
#include "qgsoptionsdialogbase.h" #include "qgsoptionsdialogbase.h"
#include "ui_qgsvectorlayerpropertiesbase.h" #include "ui_qgsvectorlayerpropertiesbase.h"
#include "qgisgui.h" #include "qgisgui.h"
#include "qgscontexthelp.h" #include "qgshelp.h"
#include "qgsmaplayerstylemanager.h" #include "qgsmaplayerstylemanager.h"
#include "qgsvectorlayer.h" #include "qgsvectorlayer.h"
#include "layertree/qgslayertreemodel.h" #include "layertree/qgslayertreemodel.h"
@ -104,7 +104,7 @@ class APP_EXPORT QgsVectorLayerProperties : public QgsOptionsDialogBase, private
void loadStyle_clicked(); void loadStyle_clicked();
void saveStyleAs_clicked(); void saveStyleAs_clicked();
void mOptionsStackedWidget_CurrentChanged( int indx ); void mOptionsStackedWidget_CurrentChanged( int indx );
void on_buttonBox_helpRequested() { QgsContextHelp::run( metaObject()->className() ); } void on_buttonBox_helpRequested() { QgsHelp::openHelp( QStringLiteral( "working_with_vector/vector_properties.html" ) ); }
void on_pbnUpdateExtents_clicked(); void on_pbnUpdateExtents_clicked();
void on_mButtonAddJoin_clicked(); void on_mButtonAddJoin_clicked();

View File

@ -21,7 +21,7 @@
#include <QModelIndex> #include <QModelIndex>
#include "ui_qgsquerybuilderbase.h" #include "ui_qgsquerybuilderbase.h"
#include "qgisgui.h" #include "qgisgui.h"
#include "qgscontexthelp.h" #include "qgshelp.h"
#include "qgis_gui.h" #include "qgis_gui.h"
class QgsVectorLayer; class QgsVectorLayer;
@ -79,7 +79,7 @@ class GUI_EXPORT QgsQueryBuilder : public QDialog, private Ui::QgsQueryBuilderBa
void on_btnNot_clicked(); void on_btnNot_clicked();
void on_btnOr_clicked(); void on_btnOr_clicked();
void on_buttonBox_helpRequested() { QgsContextHelp::run( metaObject()->className() ); } void on_buttonBox_helpRequested() { QgsHelp::openHelp( QStringLiteral( "working_with_vector/vector_properties.html#query-builder" ) ); }
/** Test the constructed sql statement to see if the vector layer data provider likes it. /** Test the constructed sql statement to see if the vector layer data provider likes it.
* The number of rows that would be returned is displayed in a message box. * The number of rows that would be returned is displayed in a message box.

View File

@ -22,7 +22,7 @@
#include <QMenu> #include <QMenu>
#include "ui_qgsstylemanagerdialogbase.h" #include "ui_qgsstylemanagerdialogbase.h"
#include "qgscontexthelp.h" #include "qgshelp.h"
#include "qgis_gui.h" #include "qgis_gui.h"
class QgsStyle; class QgsStyle;
@ -58,7 +58,7 @@ class GUI_EXPORT QgsStyleManagerDialog : public QDialog, private Ui::QgsStyleMan
//! called when the dialog is going to be closed //! called when the dialog is going to be closed
void onFinished(); void onFinished();
void on_buttonBox_helpRequested() { QgsContextHelp::run( metaObject()->className() ); } void on_buttonBox_helpRequested() { QgsHelp::openHelp( QStringLiteral( "working_with_vector/style_library.html#id2" ) ); }
void itemChanged( QStandardItem* item ); void itemChanged( QStandardItem* item );

View File

@ -13,7 +13,7 @@
#define CoordinateCaptureGUI_H #define CoordinateCaptureGUI_H
#include <QDialog> #include <QDialog>
#include "qgscontexthelp.h" #include "qgshelp.h"
/** /**
@author Tim Sutton @author Tim Sutton
@ -29,7 +29,7 @@ class CoordinateCaptureGui : public QDialog
private slots: private slots:
void on_buttonBox_accepted(); void on_buttonBox_accepted();
void on_buttonBox_rejected(); void on_buttonBox_rejected();
void on_buttonBox_helpRequested() { QgsContextHelp::run( metaObject()->className() ); } void on_buttonBox_helpRequested() { QgsHelp::openHelp( QStringLiteral( "plugins/plugins_coordinate_capture.html" ) ); }
}; };
#endif #endif

View File

@ -31,7 +31,7 @@
#include "evisdatabaseconnection.h" #include "evisdatabaseconnection.h"
#include "evisdatabaselayerfieldselectiongui.h" #include "evisdatabaselayerfieldselectiongui.h"
#include "evisquerydefinition.h" #include "evisquerydefinition.h"
#include "qgscontexthelp.h" #include "qgshelp.h"
#include <QTemporaryFile> #include <QTemporaryFile>
#include <QDialog> #include <QDialog>
@ -72,7 +72,7 @@ class eVisDatabaseConnectionGui : public QDialog, private Ui::eVisDatabaseConnec
void drawNewVectorLayer( const QString&, const QString&, const QString& ); void drawNewVectorLayer( const QString&, const QString&, const QString& );
void on_buttonBox_accepted(); void on_buttonBox_accepted();
void on_buttonBox_helpRequested() { QgsContextHelp::run( metaObject()->className() ); } void on_buttonBox_helpRequested() { QgsHelp::openHelp( QStringLiteral( "plugins/plugins_evis.html#id11" ) ); }
void on_cboxDatabaseType_currentIndexChanged( int ); void on_cboxDatabaseType_currentIndexChanged( int );
void on_cboxPredefinedQueryList_currentIndexChanged( int ); void on_cboxPredefinedQueryList_currentIndexChanged( int );

View File

@ -21,7 +21,7 @@
#include "ui_qgsgpspluginguibase.h" #include "ui_qgsgpspluginguibase.h"
#include "qgsbabelformat.h" #include "qgsbabelformat.h"
#include "qgsgpsdevice.h" #include "qgsgpsdevice.h"
#include "qgscontexthelp.h" #include "qgshelp.h"
#include <vector> #include <vector>
@ -80,7 +80,7 @@ class QgsGPSPluginGui : public QDialog, private Ui::QgsGPSPluginGuiBase
void on_pbnRefresh_clicked(); void on_pbnRefresh_clicked();
void on_buttonBox_accepted(); void on_buttonBox_accepted();
void on_buttonBox_rejected(); void on_buttonBox_rejected();
void on_buttonBox_helpRequested() { QgsContextHelp::run( metaObject()->className() ); } void on_buttonBox_helpRequested() { QgsHelp::openHelp( QStringLiteral( "working_with_gps/plugins_gps.html" ) ); }
signals: signals:
void drawRasterLayer( const QString& ); void drawRasterLayer( const QString& );

View File

@ -18,7 +18,7 @@
#include "offline_editing_plugin_gui.h" #include "offline_editing_plugin_gui.h"
#include "qgscontexthelp.h" #include "qgshelp.h"
#include "qgslayertree.h" #include "qgslayertree.h"
#include "qgslayertreemodel.h" #include "qgslayertreemodel.h"
#include "qgsmaplayer.h" #include "qgsmaplayer.h"
@ -167,7 +167,7 @@ void QgsOfflineEditingPluginGui::on_buttonBox_rejected()
// TODO: help // TODO: help
void QgsOfflineEditingPluginGui::on_buttonBox_helpRequested() void QgsOfflineEditingPluginGui::on_buttonBox_helpRequested()
{ {
QgsContextHelp::run( metaObject()->className() ); QgsHelp::openHelp( QStringLiteral( "plugins/plugins_offline_editing.html" ) );
} }
void QgsOfflineEditingPluginGui::restoreState() void QgsOfflineEditingPluginGui::restoreState()

View File

@ -19,7 +19,7 @@
#define QGSDB2NEWCONNECTION_H #define QGSDB2NEWCONNECTION_H
#include "ui_qgsdb2newconnectionbase.h" #include "ui_qgsdb2newconnectionbase.h"
#include "qgisgui.h" #include "qgisgui.h"
#include "qgscontexthelp.h" #include "qgshelp.h"
#include "qgsauthconfigselect.h" #include "qgsauthconfigselect.h"
/** \class QgsDb2NewConnection /** \class QgsDb2NewConnection
@ -48,7 +48,7 @@ class QgsDb2NewConnection : public QDialog, private Ui::QgsDb2NewConnectionBase
void on_btnListDatabase_clicked(); void on_btnListDatabase_clicked();
void on_btnConnect_clicked(); void on_btnConnect_clicked();
void on_cb_trustedConnection_clicked(); void on_cb_trustedConnection_clicked();
void on_buttonBox_helpRequested() { QgsContextHelp::run( metaObject()->className() ); } void on_buttonBox_helpRequested() { QgsHelp::openHelp( QStringLiteral( "working_with_vector/supported_data.html#id33" ) ); }
private: private:
QString mOriginalConnName; //store initial name to delete entry in case of rename QString mOriginalConnName; //store initial name to delete entry in case of rename
QgsAuthConfigSelect * mAuthConfigSelect; QgsAuthConfigSelect * mAuthConfigSelect;

View File

@ -23,7 +23,7 @@
#include "qgisgui.h" #include "qgisgui.h"
#include "qgsdbfilterproxymodel.h" #include "qgsdbfilterproxymodel.h"
#include "qgsdb2tablemodel.h" #include "qgsdb2tablemodel.h"
#include "qgscontexthelp.h" #include "qgshelp.h"
#include <QMap> #include <QMap>
#include <QPair> #include <QPair>
@ -146,7 +146,7 @@ class QgsDb2SourceSelect : public QDialog, private Ui::QgsDbSourceSelectBase
//!Sets a new regular expression to the model //!Sets a new regular expression to the model
void setSearchExpression( const QString& regexp ); void setSearchExpression( const QString& regexp );
void on_buttonBox_helpRequested() { QgsContextHelp::run( metaObject()->className() ); } void on_buttonBox_helpRequested() { QgsHelp::openHelp( QStringLiteral( "working_with_vector/supported_data.html#id33" ) ); }
void columnThreadFinished(); void columnThreadFinished();

View File

@ -16,7 +16,7 @@
#include "ui_qgsdelimitedtextsourceselectbase.h" #include "ui_qgsdelimitedtextsourceselectbase.h"
#include <QTextStream> #include <QTextStream>
#include "qgscontexthelp.h" #include "qgshelp.h"
#include "qgisgui.h" #include "qgisgui.h"
class QButtonGroup; class QButtonGroup;
@ -62,7 +62,7 @@ class QgsDelimitedTextSourceSelect : public QDialog, private Ui::QgsDelimitedTex
void on_buttonBox_rejected(); void on_buttonBox_rejected();
void on_buttonBox_helpRequested() void on_buttonBox_helpRequested()
{ {
QgsContextHelp::run( metaObject()->className() ); QgsHelp::openHelp( QStringLiteral( "working_with_vector/supported_data.html#id8" ) );
} }
void on_btnBrowseForFile_clicked(); void on_btnBrowseForFile_clicked();

View File

@ -18,7 +18,7 @@
#define QGSMSSQLNEWCONNECTION_H #define QGSMSSQLNEWCONNECTION_H
#include "ui_qgsmssqlnewconnectionbase.h" #include "ui_qgsmssqlnewconnectionbase.h"
#include "qgisgui.h" #include "qgisgui.h"
#include "qgscontexthelp.h" #include "qgshelp.h"
/** \class QgsMssqlNewConnection /** \class QgsMssqlNewConnection
@ -47,7 +47,7 @@ class QgsMssqlNewConnection : public QDialog, private Ui::QgsMssqlNewConnectionB
void on_btnListDatabase_clicked(); void on_btnListDatabase_clicked();
void on_btnConnect_clicked(); void on_btnConnect_clicked();
void on_cb_trustedConnection_clicked(); void on_cb_trustedConnection_clicked();
void on_buttonBox_helpRequested() { QgsContextHelp::run( metaObject()->className() ); } void on_buttonBox_helpRequested() { QgsHelp::openHelp( QStringLiteral( "working_with_vector/supported_data.html#mssql-spatial-layers" ) ); }
private: private:
QString mOriginalConnName; //store initial name to delete entry in case of rename QString mOriginalConnName; //store initial name to delete entry in case of rename
}; };

View File

@ -21,7 +21,7 @@
#include "qgisgui.h" #include "qgisgui.h"
#include "qgsdbfilterproxymodel.h" #include "qgsdbfilterproxymodel.h"
#include "qgsmssqltablemodel.h" #include "qgsmssqltablemodel.h"
#include "qgscontexthelp.h" #include "qgshelp.h"
#include <QMap> #include <QMap>
#include <QPair> #include <QPair>
@ -144,7 +144,7 @@ class QgsMssqlSourceSelect : public QDialog, private Ui::QgsDbSourceSelectBase
//!Sets a new regular expression to the model //!Sets a new regular expression to the model
void setSearchExpression( const QString& regexp ); void setSearchExpression( const QString& regexp );
void on_buttonBox_helpRequested() { QgsContextHelp::run( metaObject()->className() ); } void on_buttonBox_helpRequested() { QgsHelp::openHelp( QStringLiteral( "working_with_vector/supported_data.html#mssql-spatial-layers" ) ); }
void columnThreadFinished(); void columnThreadFinished();

View File

@ -18,7 +18,7 @@
#define QGSORACLENEWCONNECTION_H #define QGSORACLENEWCONNECTION_H
#include "ui_qgsoraclenewconnectionbase.h" #include "ui_qgsoraclenewconnectionbase.h"
#include "qgisgui.h" #include "qgisgui.h"
#include "qgscontexthelp.h" #include "qgshelp.h"
/** \class QgsOracleNewConnection /** \class QgsOracleNewConnection
* \brief Dialog to allow the user to configure and save connection * \brief Dialog to allow the user to configure and save connection
@ -39,7 +39,7 @@ class QgsOracleNewConnection : public QDialog, private Ui::QgsOracleNewConnectio
public slots: public slots:
void accept(); void accept();
void on_btnConnect_clicked(); void on_btnConnect_clicked();
void on_buttonBox_helpRequested() { QgsContextHelp::run( metaObject()->className() ); } void on_buttonBox_helpRequested() { QgsHelp::openHelp( QStringLiteral( "working_with_vector/supported_data.html#id2" ) ); }
private: private:
QString mOriginalConnName; //store initial name to delete entry in case of rename QString mOriginalConnName; //store initial name to delete entry in case of rename
}; };

View File

@ -21,7 +21,7 @@
#include "qgisgui.h" #include "qgisgui.h"
#include "qgsdbfilterproxymodel.h" #include "qgsdbfilterproxymodel.h"
#include "qgsoracletablemodel.h" #include "qgsoracletablemodel.h"
#include "qgscontexthelp.h" #include "qgshelp.h"
#include "qgsoracleconnpool.h" #include "qgsoracleconnpool.h"
#include <QMap> #include <QMap>
@ -134,7 +134,7 @@ class QgsOracleSourceSelect : public QDialog, private Ui::QgsDbSourceSelectBase
//!Sets a new regular expression to the model //!Sets a new regular expression to the model
void setSearchExpression( const QString& regexp ); void setSearchExpression( const QString& regexp );
void on_buttonBox_helpRequested() { QgsContextHelp::run( metaObject()->className() ); } void on_buttonBox_helpRequested() { QgsHelp::openHelp( QStringLiteral( "working_with_vector/supported_data.html#id2" ) ); }
void columnThreadFinished(); void columnThreadFinished();

View File

@ -18,7 +18,7 @@
#define QGSPGNEWCONNECTION_H #define QGSPGNEWCONNECTION_H
#include "ui_qgspgnewconnectionbase.h" #include "ui_qgspgnewconnectionbase.h"
#include "qgisgui.h" #include "qgisgui.h"
#include "qgscontexthelp.h" #include "qgshelp.h"
#include "qgsauthconfigselect.h" #include "qgsauthconfigselect.h"
/** \class QgsPgNewConnection /** \class QgsPgNewConnection
@ -39,7 +39,7 @@ class QgsPgNewConnection : public QDialog, private Ui::QgsPgNewConnectionBase
void accept() override; void accept() override;
void on_btnConnect_clicked(); void on_btnConnect_clicked();
void on_cb_geometryColumnsOnly_clicked(); void on_cb_geometryColumnsOnly_clicked();
void on_buttonBox_helpRequested() { QgsContextHelp::run( metaObject()->className() ); } void on_buttonBox_helpRequested() { QgsHelp::openHelp( QStringLiteral( "working_with_vector/supported_data.html#id14" ) ); }
private: private:
QString mOriginalConnName; //store initial name to delete entry in case of rename QString mOriginalConnName; //store initial name to delete entry in case of rename
QgsAuthConfigSelect * mAuthConfigSelect; QgsAuthConfigSelect * mAuthConfigSelect;

View File

@ -22,7 +22,7 @@
#include "qgsdatasourceuri.h" #include "qgsdatasourceuri.h"
#include "qgsdbfilterproxymodel.h" #include "qgsdbfilterproxymodel.h"
#include "qgspgtablemodel.h" #include "qgspgtablemodel.h"
#include "qgscontexthelp.h" #include "qgshelp.h"
#include <QMap> #include <QMap>
#include <QPair> #include <QPair>
@ -116,7 +116,7 @@ class QgsPgSourceSelect : public QDialog, private Ui::QgsDbSourceSelectBase
//!Sets a new regular expression to the model //!Sets a new regular expression to the model
void setSearchExpression( const QString& regexp ); void setSearchExpression( const QString& regexp );
void on_buttonBox_helpRequested() { QgsContextHelp::run( metaObject()->className() ); } void on_buttonBox_helpRequested() { QgsHelp::openHelp( QStringLiteral( "working_with_vector/supported_data.html#id14" ) ); }
void columnThreadFinished(); void columnThreadFinished();

View File

@ -20,7 +20,7 @@
#include "qgisgui.h" #include "qgisgui.h"
#include "qgsdbfilterproxymodel.h" #include "qgsdbfilterproxymodel.h"
#include "qgsspatialitetablemodel.h" #include "qgsspatialitetablemodel.h"
#include "qgscontexthelp.h" #include "qgshelp.h"
#include <QThread> #include <QThread>
#include <QMap> #include <QMap>
@ -91,7 +91,7 @@ class QgsSpatiaLiteSourceSelect: public QDialog, private Ui::QgsDbSourceSelectBa
//!Sets a new regular expression to the model //!Sets a new regular expression to the model
void setSearchExpression( const QString & regexp ); void setSearchExpression( const QString & regexp );
void on_buttonBox_helpRequested() { QgsContextHelp::run( metaObject()->className() ); } void on_buttonBox_helpRequested() { QgsHelp::openHelp( QStringLiteral( "working_with_vector/supported_data.html#spatialite-layers" ) ); }
signals: signals:
void connectionsChanged(); void connectionsChanged();

View File

@ -20,7 +20,7 @@
#include "ui_qgswmssourceselectbase.h" #include "ui_qgswmssourceselectbase.h"
#include "qgsdatasourceuri.h" #include "qgsdatasourceuri.h"
#include "qgisgui.h" #include "qgisgui.h"
#include "qgscontexthelp.h" #include "qgshelp.h"
#include "qgswmsprovider.h" #include "qgswmsprovider.h"
@ -95,7 +95,7 @@ class QgsWMSSourceSelect : public QDialog, private Ui::QgsWMSSourceSelectBase
//! Add some default wms servers to the list //! Add some default wms servers to the list
void on_btnAddDefault_clicked(); void on_btnAddDefault_clicked();
void on_buttonBox_helpRequested() { QgsContextHelp::run( metaObject()->className() ); } void on_buttonBox_helpRequested() { QgsHelp::openHelp( QStringLiteral( "working_with_ogc/ogc_client_support.html#id5" ) ); }
private: private:
//! Populate the connection list combo box //! Populate the connection list combo box