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

« back to all changes in this revision

Viewing changes to src/gui/qgscustomprojectiondialog.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
 
// C++ Interface: qgscustomprojectiondialog
3
 
//
4
 
// Description: 
5
 
//
6
 
//
7
 
// Author: Tim Sutton tim@linfiniti.com, (C) 2005
8
 
//
9
 
// Copyright: See COPYING file that comes with this distribution
10
 
//
11
 
//
12
 
#ifndef QGSCUSTOMPROJECTIONDIALOG_H
13
 
#define QGSCUSTOMPROJECTIONDIALOG_H
14
 
 
15
 
#include "ui_qgscustomprojectiondialogbase.h"
16
 
class QDir;
17
 
 
18
 
/**
19
 
The custom projection widget is used to define the projection family, ellipsoid and paremters needed by proj4 to assemble a customised projection definition. The resulting projection will be store in an sqlite backend.
20
 
 
21
 
@author Tim Sutton
22
 
*/
23
 
class QgsCustomProjectionDialog : public QDialog, private Ui::QgsCustomProjectionDialogBase
24
 
{
25
 
Q_OBJECT
26
 
public:
27
 
    QgsCustomProjectionDialog(QWidget *parent = 0, Qt::WFlags fl = 0);
28
 
    ~QgsCustomProjectionDialog();
29
 
    //a recursive function to make a directory and its ancestors
30
 
public slots:    
31
 
    void on_pbnCalculate_clicked();
32
 
    void on_pbnClose_clicked();
33
 
    void on_pbnDelete_clicked();
34
 
    //
35
 
    // Database navigation controles
36
 
    //
37
 
    long getRecordCount();
38
 
    void on_pbnFirst_clicked();
39
 
    void on_pbnPrevious_clicked();
40
 
    void on_pbnNext_clicked();
41
 
    void on_pbnLast_clicked();
42
 
    void on_pbnNew_clicked();
43
 
    void on_pbnSave_clicked();
44
 
 
45
 
    //
46
 
    // Contol population
47
 
    //
48
 
    /* These two methods will be deprecated
49
 
    void getProjList();
50
 
    void getEllipsoidList();
51
 
    */
52
 
    QString getProjectionFamilyName(QString theProjectionFamilyAcronym);
53
 
    QString getEllipsoidName(QString theEllipsoidAcronym);
54
 
    QString getProjectionFamilyAcronym(QString theProjectionFamilyName);
55
 
    QString getEllipsoidAcronym(QString theEllipsoidName);
56
 
private: 
57
 
    QString getProjFromParameters();
58
 
    QString getEllipseFromParameters();
59
 
    
60
 
        
61
 
    QString mCurrentRecordId;
62
 
    long mCurrentRecordLong;
63
 
    //the record previous to starting an insert operation
64
 
    //so that we can return to it if the record insert is aborted
65
 
    long mLastRecordLong;
66
 
    long mRecordCountLong;
67
 
    const QString stringSQLSafe(const QString theSQL);
68
 
 
69
 
};
70
 
 
71
 
#endif