Skip to content
Permalink
Browse files

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
  • Loading branch information
gsherman
gsherman committed Nov 27, 2006
1 parent 77c0882 commit 1e34e9313447ab91c771113ce349c349958b6add
@@ -21,6 +21,7 @@ email : tim@linfiniti.com
#include "qgslayerprojectionselector.h"
#include "qgsproject.h"
#include "qgsrasterbandstats.h"
#include "qgscontexthelp.h"
#include <qgsrasterlayer.h>

#include <QPainter>
@@ -1116,3 +1117,7 @@ void QgsRasterLayerProperties::on_pbnChangeSpatialRefSys_clicked()
delete mySelector;
leSpatialRefSys->setText(rasterLayer->coordinateTransform()->sourceSRS().proj4String());
}
void QgsRasterLayerProperties::on_buttonHelp_clicked()
{
QgsContextHelp::run(context_id);
}
@@ -60,6 +60,8 @@ class QgsRasterLayerProperties : public QDialog, private Ui::QgsRasterLayerPrope
void on_pbnHistRefresh_clicked();
/** Override the SRS specified when the layer was loaded */
void on_pbnChangeSpatialRefSys_clicked();
/** Help button */
void on_buttonHelp_clicked();

private:
/** \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
included or not
*/
bool rasterLayerIsWms;

/** Id for context help */
static const int context_id = 394441851;
};

#endif
@@ -61,6 +61,9 @@
<property name="text" >
<string>Default project title</string>
</property>
<property name="toolTip">
<string>Descriptive project name</string>
</property>
</widget>
</item>
</layout>
@@ -227,6 +230,9 @@
<property name="minimum" >
<number>1</number>
</property>
<property name="toolTip" >
<string>Line width in pixels</string>
</property>
</widget>
</item>
<item row="1" column="1" >
@@ -268,6 +274,9 @@
<height>32767</height>
</size>
</property>
<property name="toolTip" >
<string>Snapping tolerance in map units</string>
</property>
</widget>
</item>
<item row="1" column="0" >
@@ -1008,7 +1008,7 @@
<item>
<widget class="QPushButton" name="buttonHelp" >
<property name="enabled" >
<bool>false</bool>
<bool>true</bool>
</property>
<property name="text" >
<string>&amp;Help</string>

0 comments on commit 1e34e93

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