QGIS API Documentation
4.3.0-Master (16eddb2670e)
Toggle main menu visibility
Loading...
Searching...
No Matches
src
gui
vector
qgsattributeactionpropertiesdialog.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgsattributeactionpropertiesdialog.h - QgsAttributeActionPropertiesDialog
3
4
---------------------
5
begin : 18.4.2016
6
copyright : (C) 2016 by mku
7
email : [your-email-here]
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 QGSATTRIBUTEACTIONPROPERTIESDIALOG_H
17
#define QGSATTRIBUTEACTIONPROPERTIESDIALOG_H
18
19
// We don't want to expose this in the public API
20
21
#include "ui_qgsattributeactionpropertiesdialogbase.h"
22
23
#include "qgis_gui.h"
24
#include "
qgsexpressioncontextgenerator.h
"
25
#include "
qgshelp.h
"
26
27
#include <QDialog>
28
29
#define SIP_NO_FILE
30
36
class
GUI_EXPORT
QgsAttributeActionPropertiesDialog
:
public
QDialog,
private
Ui::QgsAttributeActionPropertiesDialogBase,
public
QgsExpressionContextGenerator
37
{
38
Q_OBJECT
39
40
public
:
44
QgsAttributeActionPropertiesDialog
(
45
Qgis::AttributeActionType
type
,
46
const
QString &
description
,
47
const
QString &
shortTitle
,
48
const
QString &
iconPath
,
49
const
QString &
actionText
,
50
bool
capture
,
51
const
QSet<QString> &
actionScopes
,
52
const
QString &
notificationMessage
,
53
bool
isEnabledOnlyWhenEditable
,
54
QgsVectorLayer
*layer,
55
QWidget *parent =
nullptr
56
);
57
58
QgsAttributeActionPropertiesDialog
(
QgsVectorLayer
*layer, QWidget *parent =
nullptr
);
59
60
Qgis::AttributeActionType
type
()
const
;
61
62
QString
description
()
const
;
63
64
QString
shortTitle
()
const
;
65
66
QString
iconPath
()
const
;
67
68
QString
actionText
()
const
;
69
70
QSet<QString>
actionScopes
()
const
;
71
72
QString
notificationMessage
()
const
;
73
74
bool
isEnabledOnlyWhenEditable
()
const
;
75
76
bool
capture
()
const
;
77
78
QgsExpressionContext
createExpressionContext
()
const override
;
79
80
private
slots:
81
void
browse();
82
void
insertExpressionOrField();
83
void
chooseIcon();
84
void
updateButtons();
85
void
showHelp();
86
87
private
:
88
void
populateActionTypes();
89
void
init(
const
QSet<QString> &
actionScopes
);
90
91
QgsVectorLayer
*mLayer =
nullptr
;
92
QList<QCheckBox *> mActionScopeCheckBoxes;
93
};
94
95
#endif
// QGSATTRIBUTEACTIONPROPERTIESDIALOG_H
Qgis::AttributeActionType
AttributeActionType
Attribute action types.
Definition
qgis.h:5215
QgsAttributeActionPropertiesDialog::notificationMessage
QString notificationMessage() const
Definition
qgsattributeactionpropertiesdialog.cpp:125
QgsAttributeActionPropertiesDialog::actionScopes
QSet< QString > actionScopes() const
Definition
qgsattributeactionpropertiesdialog.cpp:111
QgsAttributeActionPropertiesDialog::isEnabledOnlyWhenEditable
bool isEnabledOnlyWhenEditable() const
Definition
qgsattributeactionpropertiesdialog.cpp:130
QgsAttributeActionPropertiesDialog::actionText
QString actionText() const
Definition
qgsattributeactionpropertiesdialog.cpp:106
QgsAttributeActionPropertiesDialog::capture
bool capture() const
Definition
qgsattributeactionpropertiesdialog.cpp:135
QgsAttributeActionPropertiesDialog::iconPath
QString iconPath() const
Definition
qgsattributeactionpropertiesdialog.cpp:101
QgsAttributeActionPropertiesDialog::type
Qgis::AttributeActionType type() const
Definition
qgsattributeactionpropertiesdialog.cpp:86
QgsAttributeActionPropertiesDialog::description
QString description() const
Definition
qgsattributeactionpropertiesdialog.cpp:91
QgsAttributeActionPropertiesDialog::QgsAttributeActionPropertiesDialog
QgsAttributeActionPropertiesDialog(Qgis::AttributeActionType type, const QString &description, const QString &shortTitle, const QString &iconPath, const QString &actionText, bool capture, const QSet< QString > &actionScopes, const QString ¬ificationMessage, bool isEnabledOnlyWhenEditable, QgsVectorLayer *layer, QWidget *parent=nullptr)
Constructor for QgsAttributeActionPropertiesDialog.
Definition
qgsattributeactionpropertiesdialog.cpp:39
QgsAttributeActionPropertiesDialog::shortTitle
QString shortTitle() const
Definition
qgsattributeactionpropertiesdialog.cpp:96
QgsExpressionContextGenerator
Abstract interface for generating an expression context.
Definition
qgsexpressioncontextgenerator.h:36
QgsExpressionContextGenerator::createExpressionContext
virtual QgsExpressionContext createExpressionContext() const =0
This method needs to be reimplemented in all classes which implement this interface and return an exp...
QgsExpressionContext
Expression contexts are used to encapsulate the parameters around which a QgsExpression should be eva...
Definition
qgsexpressioncontext.h:491
QgsVectorLayer
Represents a vector layer which manages a vector based dataset.
Definition
qgsvectorlayer.h:414
qgsexpressioncontextgenerator.h
qgshelp.h
Generated on
for QGIS API Documentation by
1.17.0