QGIS API Documentation
3.43.0-Master (3ee7834ace6)
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
q
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
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
y
Loading...
Searching...
No Matches
src
core
actions
qgsactionscope.cpp
Go to the documentation of this file.
1
/***************************************************************************
2
qgsactionscope.cpp - QgsActionScope
3
4
---------------------
5
begin : 1.11.2016
6
copyright : (C) 2016 by Matthias Kuhn
7
email : matthias@opengis.ch
8
***************************************************************************
9
* *
10
* This program is free software; you can redistribute it and/or modify *
11
* it under the terms of the GNU General Public License as published by *
12
* the Free Software Foundation; either version 2 of the License, or *
13
* (at your option) any later version. *
14
* *
15
***************************************************************************/
16
#include "
qgsactionscope.h
"
17
#include "
qgsexpressioncontext.h
"
18
19
QgsActionScope::QgsActionScope
()
20
: mExpressionContextScope( nullptr )
21
{
22
}
19
QgsActionScope::QgsActionScope
() {
…
}
23
24
QgsActionScope::QgsActionScope
(
const
QString &
id
,
const
QString &title,
const
QString &description,
const
QgsExpressionContextScope
&expressionContextScope )
25
: mId( id )
26
, mTitle( title )
27
, mDescription( description )
28
, mExpressionContextScope( expressionContextScope )
29
{
30
}
24
QgsActionScope::QgsActionScope
(
const
QString &
id
,
const
QString &title,
const
QString &description,
const
QgsExpressionContextScope
&expressionContextScope ) {
…
}
31
32
bool
QgsActionScope::operator==
(
const
QgsActionScope
&other )
const
33
{
34
return
other.mId == mId;
35
}
32
bool
QgsActionScope::operator==
(
const
QgsActionScope
&other )
const
{
…
}
36
37
QgsExpressionContextScope
QgsActionScope::expressionContextScope
()
const
38
{
39
return
mExpressionContextScope;
40
}
37
QgsExpressionContextScope
QgsActionScope::expressionContextScope
()
const
{
…
}
41
42
void
QgsActionScope::setExpressionContextScope
(
const
QgsExpressionContextScope
&expressionContextScope )
43
{
44
mExpressionContextScope =
expressionContextScope
;
45
}
42
void
QgsActionScope::setExpressionContextScope
(
const
QgsExpressionContextScope
&expressionContextScope ) {
…
}
46
47
QString
QgsActionScope::id
()
const
48
{
49
return
mId;
50
}
47
QString
QgsActionScope::id
()
const
{
…
}
51
52
void
QgsActionScope::setId
(
const
QString &name )
53
{
54
mId = name;
55
}
52
void
QgsActionScope::setId
(
const
QString &name ) {
…
}
56
57
bool
QgsActionScope::isValid
()
const
58
{
59
return
!mId.isNull();
60
}
57
bool
QgsActionScope::isValid
()
const
{
…
}
61
62
QString
QgsActionScope::title
()
const
63
{
64
return
mTitle;
65
}
62
QString
QgsActionScope::title
()
const
{
…
}
66
67
void
QgsActionScope::setTitle
(
const
QString &title )
68
{
69
mTitle =
title
;
70
}
67
void
QgsActionScope::setTitle
(
const
QString &title ) {
…
}
71
72
QString
QgsActionScope::description
()
const
73
{
74
return
mDescription;
75
}
72
QString
QgsActionScope::description
()
const
{
…
}
76
77
void
QgsActionScope::setDescription
(
const
QString &description )
78
{
79
mDescription =
description
;
80
}
77
void
QgsActionScope::setDescription
(
const
QString &description ) {
…
}
81
82
uint
qHash
(
const
QgsActionScope
&key, uint seed )
83
{
84
uint hash = seed;
85
86
hash |=
qHash
( key.
expressionContextScope
().
variableNames
().join(
','
), seed );
87
hash |=
qHash
( key.
id
(), seed );
88
89
return
hash;
90
}
82
uint
qHash
(
const
QgsActionScope
&key, uint seed ) {
…
}
QgsActionScope
An action scope defines a "place" for an action to be shown and may add additional expression variabl...
Definition
qgsactionscope.h:49
QgsActionScope::QgsActionScope
QgsActionScope()
Creates a new invalid action scope.
Definition
qgsactionscope.cpp:19
QgsActionScope::setTitle
void setTitle(const QString &title)
Sets the action scope's title.
Definition
qgsactionscope.cpp:67
QgsActionScope::description
QString description() const
Returns the action scope's description.
Definition
qgsactionscope.cpp:72
QgsActionScope::setDescription
void setDescription(const QString &description)
Sets the action scope's description.
Definition
qgsactionscope.cpp:77
QgsActionScope::expressionContextScope
QgsExpressionContextScope expressionContextScope() const
Returns the expression context scope for the action scope.
Definition
qgsactionscope.cpp:37
QgsActionScope::id
QString id() const
Returns the unique identifier for this action scope.
Definition
qgsactionscope.cpp:47
QgsActionScope::setId
void setId(const QString &id)
Sets the unique id for this action scope.
Definition
qgsactionscope.cpp:52
QgsActionScope::title
QString title() const
Returns the action scope's title.
Definition
qgsactionscope.cpp:62
QgsActionScope::isValid
bool isValid() const
Returns true if this scope is valid.
Definition
qgsactionscope.cpp:57
QgsActionScope::operator==
bool operator==(const QgsActionScope &other) const
Definition
qgsactionscope.cpp:32
QgsActionScope::setExpressionContextScope
void setExpressionContextScope(const QgsExpressionContextScope &expressionContextScope)
Sets the expression context scope for the action scope.
Definition
qgsactionscope.cpp:42
QgsExpressionContextScope
Single scope for storing variables and functions for use within a QgsExpressionContext.
Definition
qgsexpressioncontext.h:115
QgsExpressionContextScope::variableNames
QStringList variableNames() const
Returns a list of variable names contained within the scope.
Definition
qgsexpressioncontext.cpp:126
qHash
uint qHash(const QgsActionScope &key, uint seed)
Definition
qgsactionscope.cpp:82
qgsactionscope.h
qgsexpressioncontext.h
Generated on Mon Mar 24 2025 21:55:38 for QGIS API Documentation by
1.9.8