-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathqgstransformsettingsdialog.h
More file actions
58 lines (46 loc) · 2.12 KB
/
qgstransformsettingsdialog.h
File metadata and controls
58 lines (46 loc) · 2.12 KB
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
/***************************************************************************
qgstransformsettingsdialog.h
--------------------------------------
Date : 14-Feb-2010
Copyright : (C) 2010 by Jack R, Maxim Dubinin (GIS-Lab)
Email : sim@gis-lab.info
***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
/* $Id$ */
#ifndef QGSTRANSFORMSETTINGSDIALOG_H
#define QGSTRANSFORMSETTINGSDIALOG_H
#include <QDialog>
#include "qgsgeorefplugingui.h"
#include "ui_qgstransformsettingsdialogbase.h"
class QgsTransformSettingsDialog : public QDialog, private Ui::QgsTransformSettingsDialog
{
Q_OBJECT
public:
QgsTransformSettingsDialog(const QString &raster, const QString &output,
int countGCPpoints, QWidget *parent = 0);
void getTransformSettings(QgsGeorefTransform::TransformParametrisation &tp,
QgsImageWarper::ResamplingMethod &rm, QString &comprMethod,
QString &raster, QString &proj, bool &zt, bool &loadInQgis);
static void resetSettings();
protected:
void changeEvent(QEvent *e);
void accept();
private slots:
void on_tbnOutputRaster_clicked();
void on_tbnTargetSRS_clicked();
void on_leTargetSRS_textChanged(const QString &text);
QIcon getThemeIcon( const QString &theName );
private:
bool checkGCPpoints(int count, int &minGCPpoints);
QString generateModifiedRasterFileName(const QString &raster);
QRegExpValidator *mRegExpValidator;
QString mModifiedRaster;
int mCountGCPpoints;
};
#endif // QGSTRANSFORMSETTINGSDIALOG_H