QGIS API Documentation  2.99.0-Master (b8fd1fd)
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 
28 class GUI_EXPORT QgsDatumTransformDialog : public QDialog, private Ui::QgsDatumTransformDialogBase
29 {
30  Q_OBJECT
31  public:
32  QgsDatumTransformDialog( const QString &layerName, const QList< QList< int > > &dt, QWidget *parent = nullptr, Qt::WindowFlags f = 0 );
34 
36  void setDatumTransformInfo( const QString &srcCRSauthId, const QString &destCRSauthId );
37 
39  QList< int > selectedDatumTransform();
40 
42  bool rememberSelection() const;
43 
44  public slots:
45  void on_mHideDeprecatedCheckBox_stateChanged( int state );
46  void on_mDatumTransformTreeWidget_currentItemChanged( QTreeWidgetItem *, QTreeWidgetItem * );
47 
48  private:
50  void updateTitle();
51  bool gridShiftTransformation( const QString &itemText ) const;
53  bool testGridShiftFileAvailability( QTreeWidgetItem *item, int col ) const;
54  void load();
55 
56  const QList< QList< int > > &mDt;
57  QString mLayerName;
58  QString mSrcCRSauthId, mDestCRSauthId;
59 };
60 
61 #endif // QGSDATUMTRANSFORMDIALOG_H