QGIS API Documentation
3.40.0-Bratislava (b56115d8743)
Toggle main menu visibility
Main Page
Related Pages
Topics
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
w
z
Functions
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
w
z
Variables
Typedefs
Enumerations
Enumerator
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
2
3
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
2
3
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
k
l
m
o
p
r
s
t
u
v
w
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
z
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
y
z
Related Symbols
3
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
Files
File List
File Members
All
3
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
z
Variables
a
b
c
d
e
f
g
h
i
l
n
o
p
q
r
s
t
u
w
Typedefs
3
a
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
Enumerations
Enumerator
Macros
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
w
x
y
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
Loading...
Searching...
No Matches
src
gui
qgsattributeformrelationeditorwidget.cpp
Go to the documentation of this file.
1
/***************************************************************************
2
qgsattributeformrelationeditorwidget.cpp
3
--------------------------------------
4
Date : Nov 2017
5
Copyright : (C) 2017 Matthias Kuhn
6
Email : matthias@opengis.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
#include "
qgsattributeformrelationeditorwidget.h
"
17
#include "
qgsrelationaggregatesearchwidgetwrapper.h
"
18
#include "
qgsattributeform.h
"
19
20
#include "
qgsrelationwidgetwrapper.h
"
21
22
QgsAttributeFormRelationEditorWidget::QgsAttributeFormRelationEditorWidget
(
QgsRelationWidgetWrapper
*wrapper,
QgsAttributeForm
*form )
23
:
QgsAttributeFormWidget
( wrapper, form )
24
, mWrapper( wrapper )
25
{
26
setSearchWidgetToolButtonVisible
(
false
);
27
}
22
QgsAttributeFormRelationEditorWidget::QgsAttributeFormRelationEditorWidget
(
QgsRelationWidgetWrapper
*wrapper,
QgsAttributeForm
*form ) {
…
}
28
29
void
QgsAttributeFormRelationEditorWidget::createSearchWidgetWrappers
(
const
QgsAttributeEditorContext
&context )
30
{
31
if
( !context.
parentContext
() )
32
{
33
mSearchWidget =
new
QgsRelationAggregateSearchWidgetWrapper
(
layer
(), mWrapper,
form
() );
34
mSearchWidget->
setContext
( context );
35
36
setSearchWidgetWrapper
( mSearchWidget );
37
}
38
}
29
void
QgsAttributeFormRelationEditorWidget::createSearchWidgetWrappers
(
const
QgsAttributeEditorContext
&context ) {
…
}
39
40
QString
QgsAttributeFormRelationEditorWidget::currentFilterExpression
()
const
41
{
42
QString filterExpression;
43
if
( mSearchWidget )
44
filterExpression = mSearchWidget->
expression
();
45
46
return
filterExpression;
47
}
40
QString
QgsAttributeFormRelationEditorWidget::currentFilterExpression
()
const
{
…
}
48
49
void
QgsAttributeFormRelationEditorWidget::setMultiEditFeatureIds
(
const
QgsFeatureIds
&fids )
50
{
51
mWrapper->
setMultiEditFeatureIds
( fids );
52
}
49
void
QgsAttributeFormRelationEditorWidget::setMultiEditFeatureIds
(
const
QgsFeatureIds
&fids ) {
…
}
QgsAttributeEditorContext
This class contains context information for attribute editor widgets.
Definition
qgsattributeeditorcontext.h:41
QgsAttributeEditorContext::parentContext
const QgsAttributeEditorContext * parentContext() const
Definition
qgsattributeeditorcontext.h:219
QgsAttributeFormRelationEditorWidget::setMultiEditFeatureIds
void setMultiEditFeatureIds(const QgsFeatureIds &fids)
Set multiple feature to edit simultaneously.
Definition
qgsattributeformrelationeditorwidget.cpp:49
QgsAttributeFormRelationEditorWidget::currentFilterExpression
QString currentFilterExpression() const override
Creates an expression matching the current search filter value and search properties represented in t...
Definition
qgsattributeformrelationeditorwidget.cpp:40
QgsAttributeFormRelationEditorWidget::createSearchWidgetWrappers
void createSearchWidgetWrappers(const QgsAttributeEditorContext &context=QgsAttributeEditorContext()) override
Creates the search widget wrappers for the widget used when the form is in search mode.
Definition
qgsattributeformrelationeditorwidget.cpp:29
QgsAttributeFormRelationEditorWidget::QgsAttributeFormRelationEditorWidget
QgsAttributeFormRelationEditorWidget(QgsRelationWidgetWrapper *wrapper, QgsAttributeForm *form)
Constructor.
Definition
qgsattributeformrelationeditorwidget.cpp:22
QgsAttributeFormWidget
Base class for all widgets shown on a QgsAttributeForm.
Definition
qgsattributeformwidget.h:38
QgsAttributeFormWidget::setSearchWidgetWrapper
void setSearchWidgetWrapper(QgsSearchWidgetWrapper *wrapper)
Sets the search widget wrapper for the widget used when the form is in search mode.
Definition
qgsattributeformwidget.cpp:102
QgsAttributeFormWidget::form
QgsAttributeForm * form() const
The form on which this widget is shown.
Definition
qgsattributeformwidget.cpp:92
QgsAttributeFormWidget::layer
QgsVectorLayer * layer()
The layer for which this widget and its form is shown.
Definition
qgsattributeformwidget.cpp:163
QgsAttributeFormWidget::setSearchWidgetToolButtonVisible
void setSearchWidgetToolButtonVisible(bool searchWidgetToolButtonVisible)
The visibility of the search widget tool button, that allows (de)activating this search widgte or def...
Definition
qgsattributeformwidget.cpp:231
QgsAttributeForm
Definition
qgsattributeform.h:48
QgsRelationAggregateSearchWidgetWrapper
Search widget for the children of a relation.
Definition
qgsrelationaggregatesearchwidgetwrapper.h:35
QgsRelationAggregateSearchWidgetWrapper::expression
QString expression() const override
Will be used to access the widget's value.
Definition
qgsrelationaggregatesearchwidgetwrapper.cpp:33
QgsRelationWidgetWrapper
Definition
qgsrelationwidgetwrapper.h:33
QgsRelationWidgetWrapper::setMultiEditFeatureIds
void setMultiEditFeatureIds(const QgsFeatureIds &fids)
Set multiple feature to edit simultaneously.
Definition
qgsrelationwidgetwrapper.cpp:64
QgsWidgetWrapper::setContext
void setContext(const QgsAttributeEditorContext &context)
Set the context in which this widget is shown.
Definition
qgswidgetwrapper.cpp:67
qgsattributeform.h
qgsattributeformrelationeditorwidget.h
QgsFeatureIds
QSet< QgsFeatureId > QgsFeatureIds
Definition
qgsfeatureid.h:37
qgsrelationaggregatesearchwidgetwrapper.h
qgsrelationwidgetwrapper.h
Generated on Mon Oct 28 2024 22:06:03 for QGIS API Documentation by
1.9.8