QGIS API Documentation
2.4.0-Chugiak
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
GUI_EXPORT
QgsRelationEditorWidget
:
public
QgsCollapsibleGroupBox
,
private
Ui::QgsRelationEditorWidgetBase
32
{
33
Q_OBJECT
34
35
public
:
36
static
QgsRelationEditorWidget
* createRelationEditor(
const
QgsRelation
& relation,
const
QgsFeature
& feature,
QgsAttributeEditorContext
context, QWidget* parent = NULL );
37
38
private
slots:
39
void
onCollapsedStateChanged(
bool
state );
40
void
referencingLayerEditingToggled();
41
void
viewModeChanged(
int
mode );
42
43
void
on_mAddFeatureButton_clicked();
44
void
on_mLinkFeatureButton_clicked();
45
void
on_mDeleteFeatureButton_clicked();
46
void
on_mUnlinkFeatureButton_clicked();
47
void
on_mToggleEditingButton_toggled(
bool
state );
48
49
private
:
58
QgsRelationEditorWidget
(
const
QgsRelation
& relation,
const
QgsFeature
& feature,
QgsAttributeEditorContext
context, QWidget* parent = NULL );
59
60
QgsDualView
*
mDualView
;
61
QgsGenericFeatureSelectionManager
*
mFeatureSelectionMgr
;
62
QgsAttributeEditorContext
mEditorContext
;
63
QgsRelation
mRelation
;
64
QgsFeature
mFeature
;
65
66
};
67
68
#endif // QGSRELATIONEDITOR_H
QgsVectorLayerTools
Methods in this class are used to handle basic operations on vector layers.
Definition:
qgsvectorlayertools.h:33
qgsattributeeditorcontext.h
QgsCollapsibleGroupBox
A groupbox that collapses/expands when toggled and can save its collapsed and checked states...
Definition:
qgscollapsiblegroupbox.h:148
QgsAttributeEditorContext
This class contains context information for attribute editor widgets.
Definition:
qgsattributeeditorcontext.h:33
QgsFeature
The feature class encapsulates a single feature including its id, geometry and a list of field/values...
Definition:
qgsfeature.h:113
QgsRelationEditorWidget
Definition:
qgsrelationeditor.h:31
qgsrelation.h
QgsRelationEditorWidget::mRelation
QgsRelation mRelation
Definition:
qgsrelationeditor.h:63
QgsRelationEditorWidget::mDualView
QgsDualView * mDualView
Definition:
qgsrelationeditor.h:60
QgsGenericFeatureSelectionManager
This selection manager synchronizes a local set of selected features with an attribute table...
Definition:
qgsgenericfeatureselectionmanager.h:27
QgsRelation
Definition:
qgsrelation.h:28
QgsRelationEditorWidget::mFeatureSelectionMgr
QgsGenericFeatureSelectionManager * mFeatureSelectionMgr
Definition:
qgsrelationeditor.h:61
QgsVectorLayer
Represents a vector layer which manages a vector based data sets.
Definition:
qgsvectorlayer.h:455
QgsRelationEditorWidget::mFeature
QgsFeature mFeature
Definition:
qgsrelationeditor.h:64
QgsDualView
This widget is used to show the attributes of a set of features of a QgsVectorLayer.
Definition:
qgsdualview.h:42
QgsRelationEditorWidget::mEditorContext
QgsAttributeEditorContext mEditorContext
Definition:
qgsrelationeditor.h:62
Generated on Fri Jun 27 2014 18:43:43 for QGIS API Documentation by
1.8.7