QGIS API Documentation  2.3.0-Master
 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 
30  QList< int > selectedDatumTransform();
31 
32  bool rememberSelection() const;
33 
34  public slots:
35  void on_mHideDeprecatedCheckBox_stateChanged( int state );
36 
37  private:
39  bool gridShiftTransformation( const QString& itemText ) const;
41  bool testGridShiftFileAvailability( QTreeWidgetItem* item, int col ) const;
42  void load();
43 
44  const QList< QList< int > > &mDt;
45 };
46 
47 #endif // QGSDATUMTRANSFORMDIALOG_H
const QList< QList< int > > & mDt