-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathqgsalignrasterdialog.h
92 lines (70 loc) · 2.64 KB
/
qgsalignrasterdialog.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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
/***************************************************************************
qgsalignrasterdialog.h
---------------------
begin : June 2015
copyright : (C) 2015 by Martin Dobias
email : wonder dot sk at gmail dot com
***************************************************************************
* *
* 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. *
* *
***************************************************************************/
#ifndef QGSALIGNRASTERDIALOG_H
#define QGSALIGNRASTERDIALOG_H
#include <QDialog>
#include "qgsalignraster.h"
#include "ui_qgsalignrasterdialog.h"
class QgsAlignRaster;
//! Dialog providing user interface for QgsAlignRaster
class QgsAlignRasterDialog : public QDialog, private Ui::QgsAlignRasterDialog
{
Q_OBJECT
public:
explicit QgsAlignRasterDialog( QWidget *parent = nullptr );
~QgsAlignRasterDialog();
signals:
protected slots:
void addLayer();
void removeLayer();
void editLayer();
void referenceLayerChanged();
void runAlign();
void destinationCrsChanged();
void clipExtentChanged();
void updateCustomCrs();
void updateCustomCellSize();
void updateCustomGridOffset();
void updateParametersFromReferenceLayer();
protected:
void populateLayersView();
void updateAlignedRasterInfo();
protected:
QgsAlignRaster *mAlign = nullptr;
};
class QgsMapLayerComboBox;
class QCheckBox;
//! Simple dialog to display details of one layer's configuration
class QgsAlignRasterLayerConfigDialog : public QDialog
{
Q_OBJECT
public:
QgsAlignRasterLayerConfigDialog();
QString inputFilename() const;
QString outputFilename() const;
QgsAlignRaster::ResampleAlg resampleMethod() const;
bool rescaleValues() const;
void setItem( const QString &inputFilename, const QString &outputFilename, QgsAlignRaster::ResampleAlg resampleMethod, bool rescaleValues );
protected slots:
void browseOutputFilename();
protected:
QgsMapLayerComboBox *cboLayers = nullptr;
QLineEdit *editOutput = nullptr;
QPushButton *btnBrowse = nullptr;
QComboBox *cboResample = nullptr;
QCheckBox *chkRescale = nullptr;
QDialogButtonBox *btnBox = nullptr;
};
#endif // QGSALIGNRASTERDIALOG_H