~ubuntu-branches/ubuntu/wily/qgis/wily

« back to all changes in this revision

Viewing changes to src/plugins/oracle_raster/qgsselectgeoraster_ui.h

  • Committer: Bazaar Package Importer
  • Author(s): Johan Van de Wauw
  • Date: 2010-07-11 20:23:24 UTC
  • mfrom: (3.1.4 squeeze)
  • Revision ID: james.westby@ubuntu.com-20100711202324-5ktghxa7hracohmr
Tags: 1.4.0+12730-3ubuntu1
* Merge from Debian unstable (LP: #540941).
* Fix compilation issues with QT 4.7
* Add build-depends on libqt4-webkit-dev 

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/***************************************************************************
 
2
    oracleselectgui.h
 
3
    -------------------
 
4
    begin                : Oracle Spatial Plugin
 
5
    copyright            : (C) Ivan Lucena
 
6
    email                : ivan.lucena@pmldnet.com
 
7
 ***************************************************************************
 
8
 *                                                                         *
 
9
 *   This program is free software; you can redistribute it and/or modify  *
 
10
 *   it under the terms of the GNU General Public License as published by  *
 
11
 *   the Free Software Foundation; either version 2 of the License, or     *
 
12
 *   (at your option) any later version.                                   *
 
13
 *                                                                         *
 
14
 ***************************************************************************/
 
15
/* $Id$ */
 
16
 
 
17
#ifndef OraclePluginGUI_H
 
18
#define OraclePluginGUI_H
 
19
 
 
20
// Qt Designer Includes
 
21
#include "ui_qgsselectgeorasterbase.h"
 
22
 
 
23
//Qt includes
 
24
#include <QSettings>
 
25
#include <QMessageBox>
 
26
#include <QInputDialog>
 
27
 
 
28
// QGIS Includes
 
29
#include <qgisinterface.h>
 
30
#include <qgsmapcanvas.h>
 
31
 
 
32
class QgsOracleSelectGeoraster : public QDialog, private Ui::SelectGeoRasterBase
 
33
{
 
34
    Q_OBJECT
 
35
 
 
36
  public:
 
37
    QgsOracleSelectGeoraster( QWidget* parent, QgisInterface* iface, Qt::WFlags fl = 0 );
 
38
    ~QgsOracleSelectGeoraster();
 
39
 
 
40
  private:
 
41
    QgisInterface* mIface;
 
42
    QString mUri;
 
43
 
 
44
  private:
 
45
    void addNewConnection();
 
46
    void editConnection();
 
47
    void deleteConnection();
 
48
    void populateConnectionList();
 
49
    void connectToServer();
 
50
    void showHelp();
 
51
    void setConnectionListPosition();
 
52
    void showSelection( const QString & line );
 
53
 
 
54
  public slots:
 
55
 
 
56
    void on_btnNew_clicked()
 
57
    {
 
58
      addNewConnection();
 
59
    };
 
60
 
 
61
    void on_btnEdit_clicked()
 
62
    {
 
63
      editConnection();
 
64
    };
 
65
 
 
66
    void on_btnDelete_clicked()
 
67
    {
 
68
      deleteConnection();
 
69
    };
 
70
 
 
71
    void on_btnConnect_clicked()
 
72
    {
 
73
      connectToServer();
 
74
    };
 
75
 
 
76
    void on_listWidget_clicked( QModelIndex Index )
 
77
    {
 
78
      if ( lineEdit->text() == listWidget->currentItem()->text() )
 
79
      {
 
80
        showSelection( lineEdit->text() );
 
81
      }
 
82
      else
 
83
      {
 
84
        lineEdit->setText( listWidget->currentItem()->text() );
 
85
      }
 
86
    }
 
87
 
 
88
    void on_btnAdd_clicked()
 
89
    {
 
90
      showSelection( lineEdit->text() );
 
91
    };
 
92
 
 
93
};
 
94
 
 
95
#endif