Skip to content

Commit 1e34e93

Browse files
author
gsherman
committed
Enabled context help for raster layer properties dialog.
Added some tool tips to the project properties dialog. git-svn-id: http://svn.osgeo.org/qgis/trunk@6130 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 77c0882 commit 1e34e93

4 files changed

+20
-1
lines changed

src/gui/qgsrasterlayerproperties.cpp

+5
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ email : tim@linfiniti.com
2121
#include "qgslayerprojectionselector.h"
2222
#include "qgsproject.h"
2323
#include "qgsrasterbandstats.h"
24+
#include "qgscontexthelp.h"
2425
#include <qgsrasterlayer.h>
2526

2627
#include <QPainter>
@@ -1116,3 +1117,7 @@ void QgsRasterLayerProperties::on_pbnChangeSpatialRefSys_clicked()
11161117
delete mySelector;
11171118
leSpatialRefSys->setText(rasterLayer->coordinateTransform()->sourceSRS().proj4String());
11181119
}
1120+
void QgsRasterLayerProperties::on_buttonHelp_clicked()
1121+
{
1122+
QgsContextHelp::run(context_id);
1123+
}

src/gui/qgsrasterlayerproperties.h

+5
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ class QgsRasterLayerProperties : public QDialog, private Ui::QgsRasterLayerPrope
6060
void on_pbnHistRefresh_clicked();
6161
/** Override the SRS specified when the layer was loaded */
6262
void on_pbnChangeSpatialRefSys_clicked();
63+
/** Help button */
64+
void on_buttonHelp_clicked();
6365

6466
private:
6567
/** \brief Pointer to the raster layer that this property dilog changes the behaviour of. */
@@ -78,6 +80,9 @@ class QgsRasterLayerProperties : public QDialog, private Ui::QgsRasterLayerPrope
7880
included or not
7981
*/
8082
bool rasterLayerIsWms;
83+
84+
/** Id for context help */
85+
static const int context_id = 394441851;
8186
};
8287

8388
#endif

src/ui/qgsprojectpropertiesbase.ui

+9
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@
6161
<property name="text" >
6262
<string>Default project title</string>
6363
</property>
64+
<property name="toolTip">
65+
<string>Descriptive project name</string>
66+
</property>
6467
</widget>
6568
</item>
6669
</layout>
@@ -227,6 +230,9 @@
227230
<property name="minimum" >
228231
<number>1</number>
229232
</property>
233+
<property name="toolTip" >
234+
<string>Line width in pixels</string>
235+
</property>
230236
</widget>
231237
</item>
232238
<item row="1" column="1" >
@@ -268,6 +274,9 @@
268274
<height>32767</height>
269275
</size>
270276
</property>
277+
<property name="toolTip" >
278+
<string>Snapping tolerance in map units</string>
279+
</property>
271280
</widget>
272281
</item>
273282
<item row="1" column="0" >

src/ui/qgsrasterlayerpropertiesbase.ui

+1-1
Original file line numberDiff line numberDiff line change
@@ -1008,7 +1008,7 @@
10081008
<item>
10091009
<widget class="QPushButton" name="buttonHelp" >
10101010
<property name="enabled" >
1011-
<bool>false</bool>
1011+
<bool>true</bool>
10121012
</property>
10131013
<property name="text" >
10141014
<string>&amp;Help</string>

0 commit comments

Comments
 (0)