~ubuntu-branches/ubuntu/quantal/qgis/quantal

« back to all changes in this revision

Viewing changes to src/gui/qgsnewconnection.h

  • Committer: Bazaar Package Importer
  • Author(s): William Grant
  • Date: 2007-05-06 13:42:32 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20070506134232-pyli6t388w5asd8x
Tags: 0.8.0-3ubuntu1
* Merge from Debian unstable. Remaining Ubuntu changes:
  - debian/rules, debian/qgis.install, debian/qgis.dirs debian/qgis.desktop:
    Add and install .desktop.
* debian/qgis.desktop: Remove Applications category; it's not real.
* Modify Maintainer value to match Debian-Maintainer-Field Spec

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/***************************************************************************
 
2
                          qgsnewconnection.h  -  description
 
3
                             -------------------
 
4
    begin                : Sat Jun 22 2002
 
5
    copyright            : (C) 2002 by Gary E.Sherman
 
6
    email                : sherman at mrcc.com
 
7
 ***************************************************************************/
 
8
 
 
9
/***************************************************************************
 
10
 *                                                                         *
 
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.                                   *
 
15
 *                                                                         *
 
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"
 
21
#include "qgisgui.h"
 
22
/*! \class QgsNewConnection
 
23
 * \brief Dialog to allow the user to configure and save connection
 
24
 * information for a PostgresQl database
 
25
 */
 
26
class QgsNewConnection : public QDialog, private Ui::QgsNewConnectionBase 
 
27
{
 
28
  Q_OBJECT
 
29
  public:
 
30
    //! Constructor
 
31
    QgsNewConnection(QWidget *parent = 0, const QString& connName = QString::null, Qt::WFlags fl = QgisGui::ModalDialogFlags);
 
32
    //! Destructor
 
33
    ~QgsNewConnection();
 
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
 
39
    void helpInfo();
 
40
  public slots:
 
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();
 
46
  private:
 
47
    static const int context_id = 929865718;
 
48
};
 
49
 
 
50
#endif //  QGSNEWCONNECTIONBASE_H