File tree Expand file tree Collapse file tree 2 files changed +24
-3
lines changed Expand file tree Collapse file tree 2 files changed +24
-3
lines changed Original file line number Diff line number Diff line change 4
4
*****************************************************************/
5
5
6
6
7
-
8
7
class QgsActionScope
9
8
{
9
+ %Docstring
10
+ \ingroup core
11
+ An action scope defines a "place" for an action to be shown and may add
12
+ additional expression variables.
13
+ Each QgsAction can be available in one or several action scopes.
14
+
15
+ Examples:
16
+ ---------
17
+
18
+ <dl>
19
+ <dt>Canvas</dt>
20
+ <dd>Show for canvas tools. Adds `@clicked_x` and `@clicked_y` in map coordinates.</dd>
21
+ <dt>Feature</dt>
22
+ <dd>Show in feature specific places like the attribute table or feature
23
+ form.</dd>
24
+ <dt>Field</dt>
25
+ <dd>Show in context menus for individual fields (e.g. attribute table). Adds `@field_index`, `@field_name` and `@field_value`.</dd>
26
+ <dt>Layer</dt>
27
+ <dd>Show in attribute table and work on the layer or selection.</dd>
28
+ </dl>
29
+
30
+ @note Added in QGIS 3.0
31
+ %End
10
32
11
33
%TypeHeaderCode
12
34
#include "qgsactionscope.h"
Original file line number Diff line number Diff line change 42
42
*
43
43
* @note Added in QGIS 3.0
44
44
*/
45
-
46
45
class CORE_EXPORT QgsActionScope
47
46
{
48
47
public:
@@ -125,6 +124,6 @@ class CORE_EXPORT QgsActionScope
125
124
QgsExpressionContextScope mExpressionContextScope ;
126
125
};
127
126
128
- CORE_EXPORT uint qHash ( const QgsActionScope &key, uint seed = 0 ); // SIP_SKIP
127
+ CORE_EXPORT uint qHash ( const QgsActionScope &key, uint seed = 0 ) SIP_SKIP;
129
128
130
129
#endif // QGSACTIONSCOPE_H
You can’t perform that action at this time.
0 commit comments