QGIS API Documentation  2.6.0-Brighton
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
qgsrelationadddlg.h
Go to the documentation of this file.
1 #ifndef QGSRELATIONADDDLG_H
2 #define QGSRELATIONADDDLG_H
3 
4 #include <QDialog>
5 #include "ui_qgsrelationadddlgbase.h"
6 
7 class QgsVectorLayer;
8 
9 class GUI_EXPORT QgsRelationAddDlg : public QDialog, private Ui::QgsRelationAddDlgBase
10 {
11  Q_OBJECT
12 
13  public:
14  explicit QgsRelationAddDlg( QWidget *parent = 0 );
15 
16  void addLayers( QList<QgsVectorLayer* > layers );
17 
18  QString referencingLayerId();
19  QString referencedLayerId();
20  QList< QPair< QString, QString > > references();
21  QString relationId();
22  QString relationName();
23 
24 
25  private slots:
26  void on_mCbxReferencingLayer_currentIndexChanged( int index );
27  void on_mCbxReferencedLayer_currentIndexChanged( int index );
28 
29  private:
30  void loadLayerAttributes( QComboBox* cbx, QgsVectorLayer* layer );
31 
32  QMap< QString, QgsVectorLayer* > mLayers;
33 
34 };
35 
36 #endif // QGSRELATIONADDDLG_H