1
/***************************************************************************
4
begin : Oracle Spatial Plugin
5
copyright : (C) Ivan Lucena
6
email : ivan.lucena@pmldnet.com
7
***************************************************************************
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. *
14
***************************************************************************/
17
#ifndef OraclePluginGUI_H
18
#define OraclePluginGUI_H
20
// Qt Designer Includes
21
#include "ui_qgsselectgeorasterbase.h"
25
#include <QMessageBox>
26
#include <QInputDialog>
29
#include <qgisinterface.h>
30
#include <qgsmapcanvas.h>
32
class QgsOracleSelectGeoraster : public QDialog, private Ui::SelectGeoRasterBase
37
QgsOracleSelectGeoraster( QWidget* parent, QgisInterface* iface, Qt::WFlags fl = 0 );
38
~QgsOracleSelectGeoraster();
41
QgisInterface* mIface;
45
void addNewConnection();
46
void editConnection();
47
void deleteConnection();
48
void populateConnectionList();
49
void connectToServer();
51
void setConnectionListPosition();
52
void showSelection( const QString & line );
56
void on_btnNew_clicked()
61
void on_btnEdit_clicked()
66
void on_btnDelete_clicked()
71
void on_btnConnect_clicked()
76
void on_listWidget_clicked( QModelIndex Index )
78
if ( lineEdit->text() == listWidget->currentItem()->text() )
80
showSelection( lineEdit->text() );
84
lineEdit->setText( listWidget->currentItem()->text() );
88
void on_btnAdd_clicked()
90
showSelection( lineEdit->text() );