Skip to content
Permalink
Browse files

Applied patch #2341 (loading and saving of WMS and PostGIS connection…

…s) from alexbruy

git-svn-id: http://svn.osgeo.org/qgis/trunk@12855 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent
mhugent committed Feb 1, 2010
1 parent 3476611 commit 121044ed5bd07f0c5552f713f4462a5df6410051
@@ -72,6 +72,8 @@ SET(QGIS_APP_SRCS
qgsvectorlayerproperties.cpp
qgsquerybuilder.cpp

qgsmanageconnectionsdialog.cpp

composer/qgsattributeselectiondialog.cpp
composer/qgscomposer.cpp
composer/qgscomposerarrowwidget.cpp
@@ -138,6 +140,8 @@ SET (QGIS_APP_MOC_HDRS
qgsidentifyresults.h
qgslabeldialog.h

qgsmanageconnectionsdialog.h

qgsmaptoolidentify.h
qgsmaptoolsplitfeatures.h
qgsmaptoolvertexedit.h
@@ -24,6 +24,7 @@ email : sherman at mrcc.com
#include "qgsapplication.h"
#include "qgscontexthelp.h"
#include "qgspgnewconnection.h"
#include "qgsmanageconnectionsdialog.h"
#include "qgsquerybuilder.h"
#include "qgsdatasourceuri.h"
#include "qgsvectorlayer.h"
@@ -126,6 +127,19 @@ void QgsPgSourceSelect::on_btnDelete_clicked()
populateConnectionList();
}

void QgsPgSourceSelect::on_btnSave_clicked()
{
QgsManageConnectionsDialog dlg( this, QgsManageConnectionsDialog::Save, QgsManageConnectionsDialog::PostGIS );
dlg.exec();
}

void QgsPgSourceSelect::on_btnLoad_clicked()
{
QgsManageConnectionsDialog dlg( this, QgsManageConnectionsDialog::Load, QgsManageConnectionsDialog::PostGIS );
dlg.exec();
populateConnectionList();
}

// Slot for editing a connection
void QgsPgSourceSelect::on_btnEdit_clicked()
{
@@ -131,6 +131,10 @@ class QgsPgSourceSelect : public QDialog, private Ui::QgsPgSourceSelectBase
void on_btnBuildQuery_clicked();
//! Deletes the selected connection
void on_btnDelete_clicked();
//! Saves the selected connections to the file
void on_btnSave_clicked();
//! Loads the selected connections from the file
void on_btnLoad_clicked();
void on_mSearchOptionsButton_clicked();
void on_mSearchTableEdit_textChanged( const QString & text );
void on_mSearchColumnComboBox_currentIndexChanged( const QString & text );

0 comments on commit 121044e

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