QGIS API Documentation
3.41.0-Master (45a0abf3bec)
Loading...
Searching...
No Matches
src
core
actions
qgsactionscope.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgsactionscope.h - QgsActionScope
3
4
---------------------
5
begin : 1.11.2016
6
copyright : (C) 2016 by Matthias Kuhn
7
email :
[email protected]
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
#ifndef QGSACTIONSCOPE_H
17
#define QGSACTIONSCOPE_H
18
19
#include "qgis_core.h"
20
#include <QString>
21
#include "
qgsexpressioncontext.h
"
22
48
class
CORE_EXPORT
QgsActionScope
49
{
50
public
:
51
#ifdef SIP_RUN
52
% TypeCode
53
#include <QHash>
54
% End
55
#endif
56
61
explicit
QgsActionScope
();
62
68
explicit
QgsActionScope
(
const
QString &
id
,
const
QString &title,
const
QString &description,
const
QgsExpressionContextScope
&expressionContextScope =
QgsExpressionContextScope
() );
69
70
bool
operator==
(
const
QgsActionScope
&other )
const
;
71
81
QgsExpressionContextScope
expressionContextScope()
const
;
82
92
void
setExpressionContextScope(
const
QgsExpressionContextScope
&expressionContextScope );
93
99
QString id()
const
;
100
106
void
setId(
const
QString &
id
);
107
116
QString title()
const
;
117
126
void
setTitle(
const
QString &title );
127
137
QString description()
const
;
138
148
void
setDescription(
const
QString &description );
149
153
bool
isValid()
const
;
154
#ifdef SIP_RUN
155
long
__hash__();
156
% MethodCode
157
sipRes =
qHash
( *sipCpp );
158
% End
159
#endif
160
161
private
:
162
QString mId;
163
QString mTitle;
164
QString mDescription;
165
QgsExpressionContextScope
mExpressionContextScope;
166
};
167
168
CORE_EXPORT uint
qHash
(
const
QgsActionScope
&key, uint seed = 0 )
SIP_SKIP
;
169
170
#endif
// QGSACTIONSCOPE_H
QgsActionScope
An action scope defines a "place" for an action to be shown and may add additional expression variabl...
Definition
qgsactionscope.h:49
QgsExpressionContextScope
Single scope for storing variables and functions for use within a QgsExpressionContext.
Definition
qgsexpressioncontext.h:115
qHash
uint qHash(const QVariant &variant)
Hash for QVariant.
Definition
qgis.cpp:199
SIP_SKIP
#define SIP_SKIP
Definition
qgis_sip.h:126
qHash
CORE_EXPORT uint qHash(const QgsActionScope &key, uint seed=0)
Definition
qgsactionscope.cpp:82
qgsexpressioncontext.h
operator==
bool operator==(const QgsFeatureIterator &fi1, const QgsFeatureIterator &fi2)
Definition
qgsfeatureiterator.h:433
Generated on Tue Nov 19 2024 18:20:01 for QGIS API Documentation by
1.9.8