QGIS API Documentation
4.3.0-Master (52aa6503bed)
Toggle main menu visibility
Loading...
Searching...
No Matches
src
gui
qgsexpressionstoredialog.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgsexpressionstoredialog.h
3
---------------------
4
begin : December 2019
5
copyright : (C) 2019 by Alessandro Pasotti
6
email : elpaso at itopen dot it
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
#ifndef QGSEXPRESSIONSTOREDIALOG_H
17
#define QGSEXPRESSIONSTOREDIALOG_H
18
19
#include "ui_qgsexpressionstoredialogbase.h"
20
21
#include "qgis_gui.h"
22
23
#include <QDialog>
24
30
class
GUI_EXPORT
QgsExpressionStoreDialog
:
public
QDialog,
private
Ui::QgsExpressionStoreDialogBase
31
{
32
Q_OBJECT
33
public
:
39
QgsExpressionStoreDialog
(
const
QString &
label
,
const
QString &
expression
,
const
QString &
helpText
,
const
QStringList &existingLabels = QStringList(), QWidget *parent =
nullptr
);
40
44
QString
expression
() {
return
mExpression->text(); }
45
49
QString
label
() {
return
mLabel->text(); }
50
54
QString helpText()
const
;
55
60
bool
isLabelModified
() const
SIP_SKIP
{
return
mLabel->text() != mOriginalLabel; }
61
62
private
:
63
QStringList mExistingLabels;
64
QString mOriginalLabel;
65
};
66
67
#endif
// QGSEXPRESSIONSTOREDIALOG_H
QgsExpressionStoreDialog::label
QString label()
Returns the label text.
Definition
qgsexpressionstoredialog.h:49
QgsExpressionStoreDialog::expression
QString expression()
Returns the expression text.
Definition
qgsexpressionstoredialog.h:44
QgsExpressionStoreDialog::QgsExpressionStoreDialog
QgsExpressionStoreDialog(const QString &label, const QString &expression, const QString &helpText, const QStringList &existingLabels=QStringList(), QWidget *parent=nullptr)
Creates a QgsExpressionStoreDialog with given label, expression and helpText.
Definition
qgsexpressionstoredialog.cpp:26
QgsExpressionStoreDialog::helpText
QString helpText() const
Returns the help text.
Definition
qgsexpressionstoredialog.cpp:68
QgsExpressionStoreDialog::isLabelModified
bool isLabelModified() const SIP_SKIP
Returns whether the label text was modified either manually by the user, or automatically because it ...
Definition
qgsexpressionstoredialog.h:60
SIP_SKIP
#define SIP_SKIP
Definition
qgis_sip.h:138
Generated on
for QGIS API Documentation by
1.17.0