1
/***************************************************************************
2
qgsnewconnection.h - description
4
begin : Sat Jun 22 2002
5
copyright : (C) 2002 by Gary E.Sherman
6
email : sherman at mrcc.com
7
***************************************************************************/
9
/***************************************************************************
11
* This program is free software; you can redistribute it and/or modify *
12
* it under the terms of the GNU General Public License as published by *
13
* the Free Software Foundation; either version 2 of the License, or *
14
* (at your option) any later version. *
16
***************************************************************************/
17
/* $Id: qgsnewconnection.h 6090 2006-11-16 02:27:32Z gsherman $ */
18
#ifndef QGSNEWCONNECTION_H
19
#define QGSNEWCONNECTION_H
20
#include "ui_qgsnewconnectionbase.h"
22
/*! \class QgsNewConnection
23
* \brief Dialog to allow the user to configure and save connection
24
* information for a PostgresQl database
26
class QgsNewConnection : public QDialog, private Ui::QgsNewConnectionBase
31
QgsNewConnection(QWidget *parent = 0, const QString& connName = QString::null, Qt::WFlags fl = QgisGui::ModalDialogFlags);
34
//! Tests the connection using the parameters supplied
35
void testConnection();
36
//! Saves the connection to ~/.qt/qgisrc
37
void saveConnection();
38
//! Display the context help
41
void on_btnOk_clicked();
42
void on_btnCancel_clicked();
43
void on_btnHelp_clicked();
44
void on_btnConnect_clicked();
45
void on_cb_geometryColumnsOnly_clicked();
47
static const int context_id = 929865718;
50
#endif // QGSNEWCONNECTIONBASE_H