-
-
Notifications
You must be signed in to change notification settings - Fork 3k
/
qgscustomprojectiondialog.h
67 lines (62 loc) · 1.93 KB
/
qgscustomprojectiondialog.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
//
// C++ Interface: qgscustomprojectiondialog
//
// Description:
//
//
// Author: Tim Sutton tim@linfiniti.com, (C) 2005
//
// Copyright: See COPYING file that comes with this distribution
//
//
#ifndef QGSCUSTOMPROJECTIONDIALOG_H
#define QGSCUSTOMPROJECTIONDIALOG_H
#include <qdir.h>
#include <qnetworkprotocol.h>
#include <qgscustomprojectiondialogbase.uic.h>
/**
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.
@author Tim Sutton
*/
class QgsCustomProjectionDialog : public QgsCustomProjectionDialogBase
{
Q_OBJECT
public:
QgsCustomProjectionDialog(QWidget* parent , const char* name = "", WFlags fl=0);
~QgsCustomProjectionDialog();
//a recursive function to make a directory and its ancestors
bool makeDir(QDir &theQDir);
public slots:
void pbnHelp_clicked();
void pbnClose_clicked();
void pbnDelete_clicked();
void cboProjectionFamily_highlighted( const QString & );
//
// Database navigation controles
//
long getRecordCount();
void pbnFirst_clicked();
void pbnPrevious_clicked();
void pbnNext_clicked();
void pbnLast_clicked();
void pbnNew_clicked();
void pbnSave_clicked();
//
// Contol population
//
void getProjList();
void getEllipsoidList();
QString getProjectionFamilyName(QString theProjectionFamilyAcronym);
QString getEllipsoidName(QString theEllipsoidAcronym);
QString getProjectionFamilyAcronym(QString theProjectionFamilyName);
QString getEllipsoidAcronym(QString theEllipsoidName);
private:
QString mCurrentRecordId;
long mCurrentRecordLong;
//the record previous to starting an insert operation
//so that we can return to it if the record insert is aborted
long mLastRecordLong;
long mRecordCountLong;
QString mQGisSettingsDir;
};
#endif