QGIS API Documentation
2.2.0-Valmiera
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
src
gui
qgsrelationeditor.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgsrelationeditor.h
3
--------------------------------------
4
Date : 17.5.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 QGSRELATIONEDITOR_H
17
#define QGSRELATIONEDITOR_H
18
19
#include <QWidget>
20
21
#include "ui_qgsrelationeditorwidgetbase.h"
22
#include "
qgsattributeeditorcontext.h
"
23
#include "
qgsrelation.h
"
24
25
class
QgsDualView
;
26
class
QgsFeature
;
27
class
QgsGenericFeatureSelectionManager
;
28
class
QgsVectorLayer
;
29
class
QgsVectorLayerTools
;
30
31
class
QgsRelationEditorWidget
:
public
QgsCollapsibleGroupBox
,
private
Ui::QgsRelationEditorWidgetBase
32
{
33
Q_OBJECT
34
35
public
:
36
QgsRelationEditorWidget
(
const
QgsRelation
& relation,
const
QgsFeature
& feature,
QgsAttributeEditorContext
context, QWidget* parent = NULL );
37
38
static
QgsRelationEditorWidget
*
createRelationEditor
(
const
QgsRelation
& relation,
const
QgsFeature
& feature,
QgsAttributeEditorContext
context, QWidget* parent = NULL );
39
40
private
slots:
41
void
onCollapsedStateChanged
(
bool
state );
42
void
referencingLayerEditingToggled
();
43
void
viewModeChanged
(
int
mode );
44
45
void
on_mAddFeatureButton_clicked
();
46
void
on_mLinkFeatureButton_clicked
();
47
void
on_mDeleteFeatureButton_clicked
();
48
void
on_mUnlinkFeatureButton_clicked
();
49
void
on_mToggleEditingButton_toggled
(
bool
state );
50
51
private
:
52
QgsDualView
*
mDualView
;
53
QgsGenericFeatureSelectionManager
*
mFeatureSelectionMgr
;
54
QgsAttributeEditorContext
mEditorContext
;
55
QgsRelation
mRelation
;
56
QgsFeature
mFeature
;
57
58
};
59
60
#endif // QGSRELATIONEDITOR_H
Generated on Sun Feb 23 2014 14:27:20 for QGIS API Documentation by
1.8.1.2