Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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 committed Nov 27, 2006
1 parent 77c0882 commit 1e34e93
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/gui/qgsrasterlayerproperties.cpp
Expand Up @@ -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>
Expand Down Expand Up @@ -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);
}
5 changes: 5 additions & 0 deletions src/gui/qgsrasterlayerproperties.h
Expand Up @@ -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. */
Expand All @@ -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
9 changes: 9 additions & 0 deletions src/ui/qgsprojectpropertiesbase.ui
Expand Up @@ -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>
Expand Down Expand Up @@ -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" >
Expand Down Expand Up @@ -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" >
Expand Down
2 changes: 1 addition & 1 deletion src/ui/qgsrasterlayerpropertiesbase.ui
Expand Up @@ -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>
Expand Down

0 comments on commit 1e34e93

Please sign in to comment.