2016-01-08 21:31:41 +01:00
|
|
|
/***************************************************************************
|
|
|
|
qgsrelationadddlg.h
|
|
|
|
---------------------
|
|
|
|
begin : December 2015
|
|
|
|
copyright : (C) 2015 by Matthias Kuhn
|
|
|
|
email : matthias at opengis dot ch
|
|
|
|
***************************************************************************
|
|
|
|
* *
|
|
|
|
* This program is free software; you can redistribute it and/or modify *
|
|
|
|
* it under the terms of the GNU General Public License as published by *
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or *
|
|
|
|
* (at your option) any later version. *
|
|
|
|
* *
|
|
|
|
***************************************************************************/
|
2013-10-04 14:47:59 +02:00
|
|
|
#ifndef QGSRELATIONADDDLG_H
|
|
|
|
#define QGSRELATIONADDDLG_H
|
|
|
|
|
2015-06-10 13:59:08 +02:00
|
|
|
#include <QDialog>
|
2015-06-10 14:54:12 +02:00
|
|
|
#include "ui_qgsrelationadddlgbase.h"
|
2017-01-04 12:05:04 +01:00
|
|
|
#include "qgis_app.h"
|
2017-10-25 17:04:48 +02:00
|
|
|
#include "qgsrelation.h"
|
2013-10-04 14:47:59 +02:00
|
|
|
|
|
|
|
class QgsVectorLayer;
|
|
|
|
|
2015-12-09 16:18:07 +10:00
|
|
|
class APP_EXPORT QgsRelationAddDlg : public QDialog, private Ui::QgsRelationAddDlgBase
|
2013-10-04 14:47:59 +02:00
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2015-12-14 11:21:07 +11:00
|
|
|
explicit QgsRelationAddDlg( QWidget *parent = nullptr );
|
2013-10-04 14:47:59 +02:00
|
|
|
|
|
|
|
QString referencingLayerId();
|
|
|
|
QString referencedLayerId();
|
|
|
|
QList< QPair< QString, QString > > references();
|
|
|
|
QString relationId();
|
|
|
|
QString relationName();
|
2017-10-25 17:04:48 +02:00
|
|
|
QgsRelation::RelationStrength relationStrength();
|
2013-10-04 14:47:59 +02:00
|
|
|
|
|
|
|
private slots:
|
|
|
|
|
2016-05-25 15:58:58 +02:00
|
|
|
void checkDefinitionValid();
|
|
|
|
|
2013-10-04 14:47:59 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // QGSRELATIONADDDLG_H
|