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
qgsattributedialog.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgsattributedialog.h - description
3
-------------------
4
begin : October 2004
5
copyright : (C) 2004 by Marco Hugentobler
6
email : marco.hugentobler@autoform.ch
7
***************************************************************************/
8
9
/***************************************************************************
10
* *
11
* This program is free software; you can redistribute it and/or modify *
12
* it under the terms of the GNU General Public License as published by *
13
* the Free Software Foundation; either version 2 of the License, or *
14
* (at your option) any later version. *
15
* *
16
***************************************************************************/
17
#ifndef QGSATTRIBUTEDIALOG_H
18
#define QGSATTRIBUTEDIALOG_H
19
20
#include "
qgsfeature.h
"
21
#include "
qgsattributeeditorcontext.h
"
22
23
class
QDialog;
24
class
QLayout;
25
26
class
QgsDistanceArea
;
27
class
QgsFeature
;
28
class
QgsField
;
29
class
QgsHighlight
;
30
class
QgsVectorLayer
;
31
class
QgsVectorLayerTools
;
32
33
class
GUI_EXPORT
QgsAttributeDialog
:
public
QObject
34
{
35
Q_OBJECT
36
37
public
:
50
QgsAttributeDialog
(
QgsVectorLayer
*vl,
QgsFeature
*thepFeature,
bool
featureOwner,
QgsDistanceArea
myDa, QWidget* parent = 0,
bool
showDialogButtons =
true
);
51
63
QgsAttributeDialog
(
QgsVectorLayer
*vl,
QgsFeature
*thepFeature,
bool
featureOwner, QWidget* parent = 0,
bool
showDialogButtons =
true
,
QgsAttributeEditorContext
context =
QgsAttributeEditorContext
() );
64
65
~
QgsAttributeDialog
();
66
70
void
saveGeometry();
71
75
void
restoreGeometry();
76
77
void
setHighlight(
QgsHighlight
*h );
78
79
QDialog *
dialog
() {
return
mDialog; }
80
81
QgsFeature
*
feature
() {
return
mFeature; }
82
88
bool
editable
() {
return
mEditable; }
89
90
public
slots:
91
void
accept();
92
93
int
exec();
94
void
show();
95
96
void
dialogDestroyed();
97
98
protected
:
99
bool
eventFilter( QObject *obj, QEvent *event );
100
101
private
:
102
void
init();
103
104
QDialog *
mDialog
;
105
QString
mSettingsPath
;
106
// Used to sync multiple widgets for the same field
107
QgsAttributeEditorContext
mContext
;
108
QgsVectorLayer
*
mLayer
;
109
QgsFeature
*
mFeature
;
110
bool
mFeatureOwner
;
111
QgsHighlight
*
mHighlight
;
112
int
mFormNr
;
113
bool
mShowDialogButtons
;
114
QString
mReturnvarname
;
115
116
// true if this dialog is editable
117
bool
mEditable
;
118
119
static
int
sFormCounter
;
120
static
QString
sSettingsPath
;
121
};
122
123
#endif
QgsVectorLayerTools
Methods in this class are used to handle basic operations on vector layers.
Definition:
qgsvectorlayertools.h:33
qgsattributeeditorcontext.h
QgsAttributeDialog::feature
QgsFeature * feature()
Definition:
qgsattributedialog.h:81
QgsAttributeDialog::mEditable
bool mEditable
Definition:
qgsattributedialog.h:117
qgsfeature.h
QgsAttributeEditorContext
This class contains context information for attribute editor widgets.
Definition:
qgsattributeeditorcontext.h:33
QgsAttributeDialog
Definition:
qgsattributedialog.h:33
QgsAttributeDialog::mReturnvarname
QString mReturnvarname
Definition:
qgsattributedialog.h:114
QgsAttributeDialog::mHighlight
QgsHighlight * mHighlight
Definition:
qgsattributedialog.h:111
QgsAttributeDialog::mLayer
QgsVectorLayer * mLayer
Definition:
qgsattributedialog.h:108
QgsFeature
The feature class encapsulates a single feature including its id, geometry and a list of field/values...
Definition:
qgsfeature.h:114
QgsAttributeDialog::editable
bool editable()
Is this dialog editable?
Definition:
qgsattributedialog.h:88
QgsAttributeDialog::mDialog
QDialog * mDialog
Definition:
qgsattributedialog.h:104
QgsAttributeDialog::dialog
QDialog * dialog()
Definition:
qgsattributedialog.h:79
QgsAttributeDialog::mFormNr
int mFormNr
Definition:
qgsattributedialog.h:112
QgsHighlight
A class for highlight features on the map.
Definition:
qgshighlight.h:35
QgsAttributeDialog::sSettingsPath
static QString sSettingsPath
Definition:
qgsattributedialog.h:120
QgsField
Encapsulate a field in an attribute table or data source.
Definition:
qgsfield.h:29
QgsAttributeDialog::mSettingsPath
QString mSettingsPath
Definition:
qgsattributedialog.h:105
QgsAttributeDialog::mFeatureOwner
bool mFeatureOwner
Definition:
qgsattributedialog.h:110
QgsDistanceArea
General purpose distance and area calculator.
Definition:
qgsdistancearea.h:34
QgsAttributeDialog::sFormCounter
static int sFormCounter
Definition:
qgsattributedialog.h:119
QgsAttributeDialog::mFeature
QgsFeature * mFeature
Definition:
qgsattributedialog.h:109
QgsAttributeDialog::mShowDialogButtons
bool mShowDialogButtons
Definition:
qgsattributedialog.h:113
QgsAttributeDialog::mContext
QgsAttributeEditorContext mContext
Definition:
qgsattributedialog.h:107
QgsVectorLayer
Represents a vector layer which manages a vector based data sets.
Definition:
qgsvectorlayer.h:451
Generated on Fri Mar 21 2014 14:01:19 for QGIS API Documentation by
1.8.6