QGIS API Documentation  2.5.0-Master
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
qgsrelationmanagerdialog.h
Go to the documentation of this file.
1 /***************************************************************************
2  qgsrelationmanagerdialog.h
3  --------------------------------------
4  Date : 23.2.2013
5  Copyright : (C) 2013 Matthias Kuhn
6  Email : matthias dot kuhn at gmx dot ch
7  ***************************************************************************
8  * *
9  * This program is free software; you can redistribute it and/or modify *
10  * it under the terms of the GNU General Public License as published by *
11  * the Free Software Foundation; either version 2 of the License, or *
12  * (at your option) any later version. *
13  * *
14  ***************************************************************************/
15 
16 #ifndef QGSRELATIONMANAGERDIALOG_H
17 #define QGSRELATIONMANAGERDIALOG_H
18 
19 #include <QWidget>
20 #include "ui_qgsrelationmanagerdialogbase.h"
21 
22 class QgsRelation;
23 class QgsRelationManager;
24 class QgsRelationManagerTreeModel;
25 class QgsVectorLayer;
26 
27 class GUI_EXPORT QgsRelationManagerDialog : public QWidget, private Ui::QgsRelationManagerDialogBase
28 {
29  Q_OBJECT
30 
31  public:
32  explicit QgsRelationManagerDialog( QgsRelationManager* relationMgr, QWidget *parent = 0 );
34 
35  void setLayers( QList< QgsVectorLayer* > );
36 
37  void addRelation( const QgsRelation& rel );
38  QList< QgsRelation > relations();
39 
40  public slots:
41  void on_mBtnAddRelation_clicked();
42  void on_mBtnRemoveRelation_clicked();
43 
44  private:
45  QgsRelationManager* mRelationManager;
46  QList< QgsVectorLayer* > mLayers;
47 };
48 
49 #endif // QGSRELATIONMANAGERDIALOG_H
Definition: qgsrelation.h:28
This class manages a set of relations between layers.
Definition: qgsrelationmanager.h:32
Represents a vector layer which manages a vector based data sets.
Definition: qgsvectorlayer.h:470
Definition: qgsrelationmanagerdialog.h:27