QGIS API Documentation  2.6.0-Brighton
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 
23 class GUI_EXPORT QgsDatumTransformDialog: public QDialog, private Ui::QgsDatumTransformDialogBase
24 {
25  Q_OBJECT
26  public:
27  QgsDatumTransformDialog( const QString& layerName, const QList< QList< int > >& dt, QWidget * parent = 0, Qt::WindowFlags f = 0 );
29 
31  void setDatumTransformInfo( const QString& srcCRSauthId, const QString& destCRSauthId );
32 
33  QList< int > selectedDatumTransform();
34 
35  bool rememberSelection() const;
36 
37  public slots:
38  void on_mHideDeprecatedCheckBox_stateChanged( int state );
39  void on_mDatumTransformTreeWidget_currentItemChanged( QTreeWidgetItem *, QTreeWidgetItem * );
40 
41  private:
43  void updateTitle();
44  bool gridShiftTransformation( const QString& itemText ) const;
46  bool testGridShiftFileAvailability( QTreeWidgetItem* item, int col ) const;
47  void load();
48 
49  const QList< QList< int > > &mDt;
50  QString mLayerName;
51  QString mSrcCRSauthId, mDestCRSauthId;
52 };
53 
54 #endif // QGSDATUMTRANSFORMDIALOG_H