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

« back to all changes in this revision

Viewing changes to plugins/spit/qgsspit.h

  • Committer: Bazaar Package Importer
  • Author(s): Steve Halasz
  • Date: 2005-11-05 16:04:45 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20051105160445-l0g4isz5bc9yehet
Tags: 0.7.4-1
* New upstream release
* Build GRASS support in qgis-plugin-grass package (Closes: #248649)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/***************************************************************************
2
 
                          qgsspit.h  -  description
3
 
                             -------------------
4
 
    begin                : Fri Dec 19 2003
5
 
    copyright            : (C) 2003 by Denis Antipov
6
 
                         : (C) 2004 by Gary Sherman
7
 
    email                :
8
 
 ***************************************************************************/
 
2
                        qgsspit.h  -  description
 
3
                           -------------------
 
4
  begin                : Fri Dec 19 2003
 
5
  copyright            : (C) 2003 by Denis Antipov
 
6
                       : (C) 2004 by Gary Sherman
 
7
  email                :
 
8
***************************************************************************/
9
9
 
10
10
/***************************************************************************
11
11
 *                                                                         *
15
15
 *   (at your option) any later version.                                   *
16
16
 *                                                                         *
17
17
 ***************************************************************************/
18
 
 
 
18
/* $Id: qgsspit.h,v 1.8 2005/01/30 04:48:05 gsherman Exp $ */
19
19
#include <vector>
20
20
#include <algorithm>
21
21
#include <qstringlist.h>
24
24
#include "qgsshapefile.h"
25
25
extern "C"
26
26
{
27
 
  #include <libpq-fe.h>
 
27
#include <libpq-fe.h>
28
28
}
29
29
 
30
 
class QgsSpit :public QgsSpitBase{
31
 
  public:
32
 
  QgsSpit(QWidget *parent=0, const char *name=0);
 
30
class QgsSpit : public QgsSpitBase
 
31
{
 
32
  Q_OBJECT;
 
33
public:
 
34
  QgsSpit( QWidget *parent = 0, const char *name = 0 );
33
35
  ~QgsSpit();
34
36
  //! Populate the list of available database connections
35
37
  void populateConnectionList();
63
65
  //! Import shapefiles into PostgreSQL
64
66
  void import();
65
67
  //! Edit the column names for a shapefile in the queue
66
 
  void editColumns(int, int, int, const QPoint &);
67
 
 
68
 
  private:
 
68
  void editColumns( int, int, int, const QPoint & );
 
69
  //! Edit import properties of a shapefile in the queue
 
70
  void editShapefile( int, int, int, const QPoint & );
 
71
 
 
72
private:
 
73
 
 
74
  // Enum of table columns indexes
 
75
  enum ShpTableColumns
 
76
  {
 
77
    ColFILENAME = 0,
 
78
    ColFEATURECLASS = 1, // is editable
 
79
    ColFEATURECOUNT = 2,
 
80
    ColDBRELATIONNAME = 3,  // is editable
 
81
    ColDBSCHEMA = 4  // is editable
 
82
  };
 
83
  
69
84
  PGconn* checkConnection();
70
85
  QStringList schema_list;
71
86
  QStringList geometry_list;