QGIS API Documentation  2.18.21-Las Palmas (9fba24a)
qgsdatumtransformdialog.h
Go to the documentation of this file.
1 /***************************************************************************
2  qgsdatumtransformdialog.h
3  -------------------------
4  begin : November 2013
5  copyright : (C) 2013 by Marco Hugentobler
6  email : marco.hugentobler at sourcepole dot ch
7  ***************************************************************************/
8 
9 /***************************************************************************
10  * *
11  * This program is free software; you can redistribute it and/or modify *
12  * it under the terms of the GNU General Public License as published by *
13  * the Free Software Foundation; either version 2 of the License, or *
14  * (at your option) any later version. *
15  * *
16  ***************************************************************************/
17 
18 #ifndef QGSDATUMTRANSFORMDIALOG_H
19 #define QGSDATUMTRANSFORMDIALOG_H
20 
21 #include "ui_qgsdatumtransformdialogbase.h"
22 
27 class GUI_EXPORT QgsDatumTransformDialog : public QDialog, private Ui::QgsDatumTransformDialogBase
28 {
29  Q_OBJECT
30  public:
31  QgsDatumTransformDialog( const QString& layerName, const QList< QList< int > >& dt, QWidget * parent = nullptr, const Qt::WindowFlags& f = nullptr );
33 
35  void setDatumTransformInfo( const QString& srcCRSauthId, const QString& destCRSauthId );
36 
38  QList< int > selectedDatumTransform();
39 
41  bool rememberSelection() const;
42 
43  public slots:
44  void on_mHideDeprecatedCheckBox_stateChanged( int state );
45  void on_mDatumTransformTreeWidget_currentItemChanged( QTreeWidgetItem *, QTreeWidgetItem * );
46 
47  private:
49  void updateTitle();
50  bool gridShiftTransformation( const QString& itemText ) const;
52  bool testGridShiftFileAvailability( QTreeWidgetItem* item, int col ) const;
53  void load();
54 
55  const QList< QList< int > > &mDt;
56  QString mLayerName;
57  QString mSrcCRSauthId, mDestCRSauthId;
58 };
59 
60 #endif // QGSDATUMTRANSFORMDIALOG_H
typedef WindowFlags