QGIS API Documentation  2.99.0-Master (f867b65)
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 #include "qgis_gui.h"
23 
24 #define SIP_NO_FILE
25 
30 class GUI_EXPORT QgsDatumTransformDialog : public QDialog, private Ui::QgsDatumTransformDialogBase
31 {
32  Q_OBJECT
33  public:
34  QgsDatumTransformDialog( const QString &layerName, const QList< QList< int > > &dt, QWidget *parent = nullptr, Qt::WindowFlags f = 0 );
36 
38  void setDatumTransformInfo( const QString &srcCRSauthId, const QString &destCRSauthId );
39 
41  QList< int > selectedDatumTransform();
42 
44  bool rememberSelection() const;
45 
46  public slots:
47  void on_mHideDeprecatedCheckBox_stateChanged( int state );
48  void on_mDatumTransformTreeWidget_currentItemChanged( QTreeWidgetItem *, QTreeWidgetItem * );
49 
50  private:
52  void updateTitle();
53  bool gridShiftTransformation( const QString &itemText ) const;
55  bool testGridShiftFileAvailability( QTreeWidgetItem *item, int col ) const;
56  void load();
57 
58  const QList< QList< int > > &mDt;
59  QString mLayerName;
60  QString mSrcCRSauthId, mDestCRSauthId;
61 };
62 
63 #endif // QGSDATUMTRANSFORMDIALOG_H