Skip to content

Commit

Permalink
Enabled help buttons in the wms dialogs
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@4692 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
gsherman committed Jan 15, 2006
1 parent 641e8a4 commit f76e7b7
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/gui/qgsnewhttpconnection.cpp
Expand Up @@ -16,6 +16,7 @@
***************************************************************************/
/* $Id$ */
#include "qgsnewhttpconnection.h"
#include "qgscontexthelp.h"
#include <QSettings>

QgsNewHttpConnection::QgsNewHttpConnection(QWidget *parent, const QString& connName, Qt::WFlags fl)
Expand Down Expand Up @@ -73,3 +74,7 @@ void QgsNewHttpConnection::saveConnection()
accept();
}

void QgsNewHttpConnection::on_btnHelp_clicked()
{
QgsContextHelp::run(context_id);
}
4 changes: 4 additions & 0 deletions src/gui/qgsnewhttpconnection.h
Expand Up @@ -36,6 +36,10 @@ class QgsNewHttpConnection : public QDialog, private Ui::QgsNewHttpConnectionBas
public slots:
//! Saves the connection to ~/.qt/qgisrc
void saveConnection();
//! Show context help
void on_btnHelp_clicked();
private:
static const int context_id = 308026563;
};

#endif // QGSNEWHTTPCONNECTION_H
7 changes: 7 additions & 0 deletions src/gui/qgsserversourceselect.cpp
Expand Up @@ -22,6 +22,7 @@
#include "qgsnumericsortlistviewitem.h"
#include "qgsproviderregistry.h"
#include "../providers/wms/qgswmsprovider.h"
#include "qgscontexthelp.h"

#include <QMessageBox>
#include <QPicture>
Expand Down Expand Up @@ -115,6 +116,12 @@ void QgsServerSourceSelect::on_btnDelete_clicked()
}
}

void QgsServerSourceSelect::on_btnHelp_clicked()
{

QgsContextHelp::run(context_id);

}

void QgsServerSourceSelect::populateLayerList(QgsWmsProvider* wmsProvider)
{
Expand Down
5 changes: 4 additions & 1 deletion src/ui/qgsnewhttpconnectionbase.ui
Expand Up @@ -38,6 +38,9 @@
<property name="title" >
<string>Connection Information</string>
</property>
<property name="orientation" >
<enum>Qt::Vertical</enum>
</property>
<layout class="QVBoxLayout" >
<property name="margin" >
<number>11</number>
Expand Down Expand Up @@ -191,7 +194,7 @@
<item>
<widget class="QPushButton" name="btnHelp" >
<property name="enabled" >
<bool>false</bool>
<bool>true</bool>
</property>
<property name="text" >
<string>Help</string>
Expand Down

0 comments on commit f76e7b7

Please sign in to comment.