Skip to content

Commit db7c080

Browse files
author
gsherman
committedJan 15, 2006
Enabled help buttons in the wms dialogs
git-svn-id: http://svn.osgeo.org/qgis/trunk@4692 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 07ae4ba commit db7c080

File tree

4 files changed

+20
-1
lines changed

4 files changed

+20
-1
lines changed
 

‎src/gui/qgsnewhttpconnection.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
***************************************************************************/
1717
/* $Id$ */
1818
#include "qgsnewhttpconnection.h"
19+
#include "qgscontexthelp.h"
1920
#include <QSettings>
2021

2122
QgsNewHttpConnection::QgsNewHttpConnection(QWidget *parent, const QString& connName, Qt::WFlags fl)
@@ -73,3 +74,7 @@ void QgsNewHttpConnection::saveConnection()
7374
accept();
7475
}
7576

77+
void QgsNewHttpConnection::on_btnHelp_clicked()
78+
{
79+
QgsContextHelp::run(context_id);
80+
}

‎src/gui/qgsnewhttpconnection.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ class QgsNewHttpConnection : public QDialog, private Ui::QgsNewHttpConnectionBas
3636
public slots:
3737
//! Saves the connection to ~/.qt/qgisrc
3838
void saveConnection();
39+
//! Show context help
40+
void on_btnHelp_clicked();
41+
private:
42+
static const int context_id = 308026563;
3943
};
4044

4145
#endif // QGSNEWHTTPCONNECTION_H

‎src/gui/qgsserversourceselect.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
#include "qgsnumericsortlistviewitem.h"
2323
#include "qgsproviderregistry.h"
2424
#include "../providers/wms/qgswmsprovider.h"
25+
#include "qgscontexthelp.h"
2526

2627
#include <QMessageBox>
2728
#include <QPicture>
@@ -115,6 +116,12 @@ void QgsServerSourceSelect::on_btnDelete_clicked()
115116
}
116117
}
117118

119+
void QgsServerSourceSelect::on_btnHelp_clicked()
120+
{
121+
122+
QgsContextHelp::run(context_id);
123+
124+
}
118125

119126
void QgsServerSourceSelect::populateLayerList(QgsWmsProvider* wmsProvider)
120127
{

‎src/ui/qgsnewhttpconnectionbase.ui

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@
3838
<property name="title" >
3939
<string>Connection Information</string>
4040
</property>
41+
<property name="orientation" >
42+
<enum>Qt::Vertical</enum>
43+
</property>
4144
<layout class="QVBoxLayout" >
4245
<property name="margin" >
4346
<number>11</number>
@@ -191,7 +194,7 @@
191194
<item>
192195
<widget class="QPushButton" name="btnHelp" >
193196
<property name="enabled" >
194-
<bool>false</bool>
197+
<bool>true</bool>
195198
</property>
196199
<property name="text" >
197200
<string>Help</string>

0 commit comments

Comments
 (0)
Please sign in to comment.