Skip to content

Commit

Permalink
Added context help connector
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@4698 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
gsherman committed Jan 16, 2006
1 parent 58314fe commit 3481b0d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
6 changes: 4 additions & 2 deletions src/plugins/geoprocessing/qgsdlgpgbuffer.cpp
Expand Up @@ -24,6 +24,7 @@
#include <QComboBox>
#include <qvalidator.h>
#include "qgsdlgpgbuffer.h"
#include "qgscontexthelp.h"
#include <qspinbox.h>
#include "qgisiface.h"

Expand Down Expand Up @@ -103,7 +104,8 @@ void QgsDlgPgBuffer::setGeometryColumn(QString name)
{
txtGeometryColumn->setText(name);
}
void QgsDlgPgBuffer::on_buttonHelp_clicked()
void QgsDlgPgBuffer::on_btnHelp_clicked()
{
qI->openURL("plugins/geoprocessing/buffer/index.html",true);
QgsContextHelp::run(context_id);
// Old call to open help in browser qI->openURL("plugins/geoprocessing/buffer/index.html",true);
}
5 changes: 4 additions & 1 deletion src/plugins/geoprocessing/qgsdlgpgbuffer.h
Expand Up @@ -58,11 +58,14 @@ class QgsDlgPgBuffer:public QDialog, private Ui::QgsDlgPgBufferBase
//! Set the geometry column on the dialog
void setGeometryColumn(QString name);
public slots:
void on_buttonHelp_clicked();
void on_btnHelp_clicked();
private:
//! Pointer to the QGIS interface object
QgisIface *qI;
//! Input validator for the buffer distance
QDoubleValidator *distanceValidator;
//! Context help id
static const int context_id = 272873129;

};
#endif // QGSDLGPGBUFFER_H
2 changes: 1 addition & 1 deletion src/plugins/geoprocessing/qgsdlgpgbufferbase.ui
Expand Up @@ -247,7 +247,7 @@
<number>6</number>
</property>
<item>
<widget class="QPushButton" name="buttonHelp" >
<widget class="QPushButton" name="btnHelp" >
<property name="text" >
<string>&amp;Help</string>
</property>
Expand Down

0 comments on commit 3481b0d

Please sign in to comment.