Skip to content

Commit 139fe68

Browse files
DelazJm-kuhn
authored andcommitted
Update broken links to documentation
Because links to doc are based on plain hyperlinks, changes in doc structure affect these relations. This PR fixes the broken links.
1 parent 434bda7 commit 139fe68

20 files changed

+23
-80
lines changed

resources/context_help/QgsFieldCalculator

-59
This file was deleted.

src/app/pluginmanager/qgspluginmanager.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ class QgsPluginManager : public QgsOptionsDialogBase, private Ui::QgsPluginManag
155155
void on_ckbDeprecated_toggled( bool state );
156156

157157
//! Open help browser
158-
void on_buttonBox_helpRequested() { QgsHelp::openHelp( QStringLiteral( "plugins/plugins.html#the-plugins-dialog" ) ); }
158+
void on_buttonBox_helpRequested() { QgsHelp::openHelp( QStringLiteral( "plugins/plugins.html" ) ); }
159159

160160
//! Reimplement QgsOptionsDialogBase method to prevent modifying the tab list by signals from the stacked widget
161161
void optionsStackedWidget_CurrentChanged( int indx ) { Q_UNUSED( indx ) }

src/app/qgscustomprojectiondialog.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class APP_EXPORT QgsCustomProjectionDialog : public QDialog, private Ui::QgsCust
4242
void on_pbnCopyCRS_clicked();
4343
void on_leNameList_currentItemChanged( QTreeWidgetItem *current, QTreeWidgetItem *prev );
4444

45-
void on_buttonBox_helpRequested() { QgsHelp::openHelp( QStringLiteral( "working_with_projections/working_with_projections.html#custom-coordinate-reference-system" ) ); }
45+
void on_buttonBox_helpRequested() { QgsHelp::openHelp( QStringLiteral( "working_with_projections/working_with_projections.html" ) ); }
4646
void on_buttonBox_accepted();
4747

4848
private:

src/app/qgsfieldcalculator.h

+3-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
#define QGSFIELDCALCULATOR_H
1818

1919
#include "ui_qgsfieldcalculatorbase.h"
20-
#include "qgscontexthelp.h"
20+
#include "qgshelp.h"
2121
#include "qgsfields.h"
2222
#include "qgis_app.h"
2323

@@ -42,7 +42,8 @@ class APP_EXPORT QgsFieldCalculator: public QDialog, private Ui::QgsFieldCalcula
4242
void on_mOutputFieldNameLineEdit_textChanged( const QString &text );
4343
void on_mOutputFieldTypeComboBox_activated( int index );
4444

45-
void on_mButtonBox_helpRequested() { QgsContextHelp::run( metaObject()->className() ); }
45+
void on_mButtonBox_helpRequested() { QgsHelp::openHelp( QStringLiteral( "working_with_vector/attribute_table.html#editing-attribute-values" ) ); }
46+
4647

4748
private slots:
4849
//! Sets the OK button enabled / disabled

src/app/qgsnewspatialitelayerdialog.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class APP_EXPORT QgsNewSpatialiteLayerDialog: public QDialog, private Ui::QgsNew
4949
void selectionChanged();
5050
void checkOk();
5151

52-
void on_buttonBox_helpRequested() { QgsHelp::openHelp( QStringLiteral( "working_with_vector/editing_geometry_attributes.html#vector-create-spatialite" ) ); }
52+
void on_buttonBox_helpRequested() { QgsHelp::openHelp( QStringLiteral( "managing_data_source/create_layers.html#creating-a-new-spatialite-layer" ) ); }
5353
void on_buttonBox_accepted();
5454
void on_buttonBox_rejected();
5555

src/gui/ogr/qgsvectorlayersaveasdialog.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ class GUI_EXPORT QgsVectorLayerSaveAsDialog : public QDialog, private Ui::QgsVec
122122
void on_leFilename_textChanged( const QString &text );
123123
void on_browseFilename_clicked();
124124
void on_mCrsSelector_crsChanged( const QgsCoordinateReferenceSystem &crs );
125-
void on_buttonBox_helpRequested() { QgsHelp::openHelp( QStringLiteral( "introduction/general_tools.html#save-layer-into-file" ) ); }
125+
void on_buttonBox_helpRequested() { QgsHelp::openHelp( QStringLiteral( "managing_data_source/create_layers.html#save-layer-from-an-existing-file" ) ); }
126126
void on_mSymbologyExportComboBox_currentIndexChanged( const QString &text );
127127
void on_mGeometryTypeComboBox_currentIndexChanged( int index );
128128
void accept() override;

src/gui/qgsnewvectorlayerdialog.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ class GUI_EXPORT QgsNewVectorLayerDialog: public QDialog, private Ui::QgsNewVect
6868
void on_mRemoveAttributeButton_clicked();
6969
void on_mFileFormatComboBox_currentIndexChanged( int index );
7070
void on_mTypeBox_currentIndexChanged( int index );
71-
void on_buttonBox_helpRequested() { QgsHelp::openHelp( QStringLiteral( "working_with_vector/editing_geometry_attributes.html#creating-a-new-shapefile-layer" ) ); }
71+
void on_buttonBox_helpRequested() { QgsHelp::openHelp( QStringLiteral( "managing_data_source/create_layers.html#creating-a-new-shapefile-layer" ) ); }
7272
void nameChanged( const QString & );
7373
void selectionChanged();
7474

src/providers/db2/qgsdb2newconnection.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class QgsDb2NewConnection : public QDialog, private Ui::QgsDb2NewConnectionBase
4848
void on_btnListDatabase_clicked();
4949
void on_btnConnect_clicked();
5050
void on_cb_trustedConnection_clicked();
51-
void on_buttonBox_helpRequested() { QgsHelp::openHelp( QStringLiteral( "working_with_vector/supported_data.html#db2-spatial-layers" ) ); }
51+
void on_buttonBox_helpRequested() { QgsHelp::openHelp( QStringLiteral( "managing_data_source/opening_data.html#connecting-to-db2-spatial" ) ); }
5252
private:
5353
QString mOriginalConnName; //store initial name to delete entry in case of rename
5454
QgsAuthConfigSelect *mAuthConfigSelect = nullptr;

src/providers/db2/qgsdb2sourceselect.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ class QgsDb2SourceSelect : public QgsAbstractDataSourceWidget, private Ui::QgsDb
147147
//!Sets a new regular expression to the model
148148
void setSearchExpression( const QString &regexp );
149149

150-
void on_buttonBox_helpRequested() { QgsHelp::openHelp( QStringLiteral( "working_with_vector/supported_data.html#db2-spatial-layers" ) ); }
150+
void on_buttonBox_helpRequested() { QgsHelp::openHelp( QStringLiteral( "managing_data_source/opening_data.html#loading-a-database-layer" ) ); }
151151

152152
void columnThreadFinished();
153153

src/providers/delimitedtext/qgsdelimitedtextsourceselect.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ class QgsDelimitedTextSourceSelect : public QgsAbstractDataSourceWidget, private
6262
private slots:
6363
void on_buttonBox_helpRequested()
6464
{
65-
QgsHelp::openHelp( QStringLiteral( "working_with_vector/supported_data.html#delimited-text-files" ) );
65+
QgsHelp::openHelp( QStringLiteral( "managing_data_source/opening_data.html#importing-a-delimited-text-file" ) );
6666
}
6767
void on_btnBrowseForFile_clicked();
6868

src/providers/mssql/qgsmssqlnewconnection.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class QgsMssqlNewConnection : public QDialog, private Ui::QgsMssqlNewConnectionB
4747
void on_btnListDatabase_clicked();
4848
void on_btnConnect_clicked();
4949
void on_cb_trustedConnection_clicked();
50-
void on_buttonBox_helpRequested() { QgsHelp::openHelp( QStringLiteral( "working_with_vector/supported_data.html#mssql-spatial-layers" ) ); }
50+
void on_buttonBox_helpRequested() { QgsHelp::openHelp( QStringLiteral( "managing_data_source/opening_data.html#connecting-to-mssql-spatial" ) ); }
5151
private:
5252
QString mOriginalConnName; //store initial name to delete entry in case of rename
5353
};

src/providers/mssql/qgsmssqlsourceselect.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ class QgsMssqlSourceSelect : public QgsAbstractDataSourceWidget, private Ui::Qgs
119119
//!Sets a new regular expression to the model
120120
void setSearchExpression( const QString &regexp );
121121

122-
void on_buttonBox_helpRequested() { QgsHelp::openHelp( QStringLiteral( "working_with_vector/supported_data.html#mssql-spatial-layers" ) ); }
122+
void on_buttonBox_helpRequested() { QgsHelp::openHelp( QStringLiteral( "managing_data_source/opening_data.html#loading-a-database-layer" ) ); }
123123

124124
void columnThreadFinished();
125125

src/providers/ogr/qgsogrsourceselect.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ class QgsOgrSourceSelect : public QgsAbstractDataSourceWidget, private Ui::QgsOg
101101
void on_btnDelete_clicked();
102102
void on_cmbDatabaseTypes_currentIndexChanged( const QString &text );
103103
void on_cmbConnections_currentIndexChanged( const QString &text );
104-
void on_buttonBox_helpRequested() { QgsHelp::openHelp( QStringLiteral( "working_with_vector/supported_data.html#loading-a-layer-from-a-file" ) ); }
104+
void on_buttonBox_helpRequested() { QgsHelp::openHelp( QStringLiteral( "managing_data_source/opening_data.html#loading-a-layer-from-a-file" ) ); }
105105
};
106106

107107
#endif // QGSOGRSOURCESELECT_H

src/providers/oracle/qgsoraclenewconnection.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class QgsOracleNewConnection : public QDialog, private Ui::QgsOracleNewConnectio
3939
public slots:
4040
void accept();
4141
void on_btnConnect_clicked();
42-
void on_buttonBox_helpRequested() { QgsHelp::openHelp( QStringLiteral( "working_with_vector/supported_data.html#oracle-spatial-layers" ) ); }
42+
void on_buttonBox_helpRequested() { QgsHelp::openHelp( QStringLiteral( "managing_data_source/opening_data.html#connecting-to-oracle-spatial" ) ); }
4343
private:
4444
QString mOriginalConnName; //store initial name to delete entry in case of rename
4545
};

src/providers/oracle/qgsoraclesourceselect.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ class QgsOracleSourceSelect : public QgsAbstractDataSourceWidget, private Ui::Qg
135135
//!Sets a new regular expression to the model
136136
void setSearchExpression( const QString &regexp );
137137

138-
void on_buttonBox_helpRequested() { QgsHelp::openHelp( QStringLiteral( "working_with_vector/supported_data.html#oracle-spatial-layers" ) ); }
138+
void on_buttonBox_helpRequested() { QgsHelp::openHelp( QStringLiteral( "managing_data_source/opening_data.html#loading-a-database-layer" ) ); }
139139

140140
void columnThreadFinished();
141141

src/providers/postgres/qgspgnewconnection.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class QgsPgNewConnection : public QDialog, private Ui::QgsPgNewConnectionBase
4040
void accept() override;
4141
void on_btnConnect_clicked();
4242
void on_cb_geometryColumnsOnly_clicked();
43-
void on_buttonBox_helpRequested() { QgsHelp::openHelp( QStringLiteral( "working_with_vector/supported_data.html#postgis-layers" ) ); }
43+
void on_buttonBox_helpRequested() { QgsHelp::openHelp( QStringLiteral( "managing_data_source/opening_data.html#creating-a-stored-connection" ) ); }
4444
private:
4545
QString mOriginalConnName; //store initial name to delete entry in case of rename
4646
QgsAuthConfigSelect *mAuthConfigSelect = nullptr;

src/providers/postgres/qgspgsourceselect.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ class QgsPgSourceSelect : public QgsAbstractDataSourceWidget, private Ui::QgsDbS
118118
//!Sets a new regular expression to the model
119119
void setSearchExpression( const QString &regexp );
120120

121-
void on_buttonBox_helpRequested() { QgsHelp::openHelp( QStringLiteral( "working_with_vector/supported_data.html#postgis-layers" ) ); }
121+
void on_buttonBox_helpRequested() { QgsHelp::openHelp( QStringLiteral( "managing_data_source/opening_data.html#loading-a-database-layer" ) ); }
122122

123123
void columnThreadFinished();
124124

src/providers/spatialite/qgsspatialitesourceselect.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ class QgsSpatiaLiteSourceSelect: public QgsAbstractDataSourceWidget, private Ui:
9494
//!Sets a new regular expression to the model
9595
void setSearchExpression( const QString &regexp );
9696

97-
void on_buttonBox_helpRequested() { QgsHelp::openHelp( QStringLiteral( "working_with_vector/supported_data.html#spatialite-layers" ) ); }
97+
void on_buttonBox_helpRequested() { QgsHelp::openHelp( QStringLiteral( "managing_data_source/opening_data.html#spatialite-layers" ) ); }
9898

9999
private:
100100
enum Columns

src/providers/wfs/qgswfssourceselect.h

+3-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#define QGSWFSSOURCESELECT_H
2020

2121
#include "ui_qgswfssourceselectbase.h"
22-
#include "qgscontexthelp.h"
22+
#include "qgshelp.h"
2323
#include "qgswfscapabilities.h"
2424
#include "qgsproviderregistry.h"
2525
#include "qgsabstractdatasourcewidget.h"
@@ -103,7 +103,8 @@ class QgsWFSSourceSelect: public QgsAbstractDataSourceWidget, private Ui::QgsWFS
103103

104104
void populateConnectionList();
105105

106-
void on_buttonBox_helpRequested() { QgsContextHelp::run( metaObject()->className() ); }
106+
void on_buttonBox_helpRequested() { QgsHelp::openHelp( QStringLiteral( "working_with_ogc/ogc_client_support.html" ) ); }
107+
107108

108109
};
109110

src/providers/wms/qgswmssourceselect.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ class QgsWMSSourceSelect : public QgsAbstractDataSourceWidget, private Ui::QgsWM
9797
//! Add some default wms servers to the list
9898
void on_btnAddDefault_clicked();
9999

100-
void on_buttonBox_helpRequested() { QgsHelp::openHelp( QStringLiteral( "working_with_ogc/ogc_client_support.html#wms-wmts-client" ) ); }
100+
void on_buttonBox_helpRequested() { QgsHelp::openHelp( QStringLiteral( "working_with_ogc/ogc_client_support.html" ) ); }
101101

102102
private:
103103
//! Populate the connection list combo box

0 commit comments

Comments
 (0)