1 /*************************************************************************** 2 qgstransformsettingsdialog.h 3 -------------------------------------- 4 Date : 14-Feb-2010 5 Copyright : (C) 2010 by Jack R, Maxim Dubinin (GIS-Lab) 6 Email : sim@gis-lab.info 7 *************************************************************************** 8 * * 9 * This program is free software; you can redistribute it and/or modify * 10 * it under the terms of the GNU General Public License as published by * 11 * the Free Software Foundation; either version 2 of the License, or * 12 * (at your option) any later version. * 13 * * 14 ***************************************************************************/ 15 16 #ifndef QGSTRANSFORMSETTINGSDIALOG_H 17 #define QGSTRANSFORMSETTINGSDIALOG_H 18 19 #include <QDialog> 20 21 #include "qgsgeorefmainwindow.h" 22 23 #include "ui_qgstransformsettingsdialogbase.h" 24 25 class QgsTransformSettingsDialog : public QDialog, private Ui::QgsTransformSettingsDialog 26 { 27 Q_OBJECT 28 29 public: 30 QgsTransformSettingsDialog( const QString &raster, const QString &output, 31 int countGCPpoints, QWidget *parent = nullptr ); 32 33 void getTransformSettings( QgsGeorefTransform::TransformMethod &tp, 34 QgsImageWarper::ResamplingMethod &rm, QString &comprMethod, 35 QString &raster, QgsCoordinateReferenceSystem &proj, QString &pdfMapFile, QString &pdfReportFile, QString &gcpPoints, bool &zt, bool &loadInQgis, 36 double &resX, double &resY ); 37 static void resetSettings(); 38 39 protected: 40 void changeEvent( QEvent *e ) override; 41 void accept() override; 42 43 private slots: 44 void cmbTransformType_currentIndexChanged( const QString &text ); 45 void mWorldFileCheckBox_stateChanged( int state ); 46 QIcon getThemeIcon( const QString &name ); 47 void showHelp(); 48 49 private: 50 bool checkGCPpoints( int count, int &minGCPpoints ); 51 QString generateModifiedRasterFileName( const QString &raster ); 52 53 QString mSourceRasterFile; 54 55 int mCountGCPpoints; 56 57 QStringList mListCompression; 58 }; 59 60 #endif // QGSTRANSFORMSETTINGSDIALOG_H 61