A reusable widget that can be used to build a expression string.
More...
#include <qgsexpressionbuilderwidget.h>
Signals |
| void | expressionParsed (bool isValid) |
| | Emitted when the user changes the expression in the widget.
|
Detailed Description
A reusable widget that can be used to build a expression string.
See QgsExpressionBuilderDialog for exmaple of usage.
Definition at line 107 of file qgsexpressionbuilderwidget.h.
Constructor & Destructor Documentation
| QgsExpressionBuilderWidget::QgsExpressionBuilderWidget |
( |
QWidget * |
parent | ) |
|
| QgsExpressionBuilderWidget::~QgsExpressionBuilderWidget |
( |
| ) |
|
Member Function Documentation
| void QgsExpressionBuilderWidget::currentChanged |
( |
const QModelIndex & |
index, |
|
|
const QModelIndex & |
|
|
) |
| |
|
slot |
| void QgsExpressionBuilderWidget::expressionParsed |
( |
bool |
isValid | ) |
|
|
signal |
Emitted when the user changes the expression in the widget.
Users of this widget should connect to this signal to decide if to let the user continue.
- Parameters
-
| isValid | Is true if the expression the user has typed is valid. |
| QString QgsExpressionBuilderWidget::expressionText |
( |
| ) |
|
Gets the expression string that has been set in the expression area.
- Returns
- The expression as a string.
Definition at line 428 of file qgsexpressionbuilderwidget.cpp.
| bool QgsExpressionBuilderWidget::isExpressionValid |
( |
| ) |
|
| void QgsExpressionBuilderWidget::loadAllValues |
( |
| ) |
|
|
slot |
| void QgsExpressionBuilderWidget::loadCodeFromFile |
( |
QString |
path | ) |
|
| void QgsExpressionBuilderWidget::loadFieldNames |
( |
| ) |
|
| void QgsExpressionBuilderWidget::loadFieldNames |
( |
const QgsFields & |
fields | ) |
|
| void QgsExpressionBuilderWidget::loadFunctionCode |
( |
QString |
code | ) |
|
| void QgsExpressionBuilderWidget::loadRecent |
( |
QString |
key | ) |
|
| void QgsExpressionBuilderWidget::loadSampleValues |
( |
| ) |
|
|
slot |
| void QgsExpressionBuilderWidget::newFunctionFile |
( |
QString |
fileName = "scratch" | ) |
|
| void QgsExpressionBuilderWidget::on_btnNewFile_pressed |
( |
| ) |
|
|
slot |
| void QgsExpressionBuilderWidget::on_btnRun_pressed |
( |
| ) |
|
|
slot |
| void QgsExpressionBuilderWidget::on_btnSaveFile_pressed |
( |
| ) |
|
|
slot |
| void QgsExpressionBuilderWidget::on_cmbFileNames_currentIndexChanged |
( |
int |
index | ) |
|
|
slot |
| void QgsExpressionBuilderWidget::on_expressionTree_doubleClicked |
( |
const QModelIndex & |
index | ) |
|
|
slot |
| void QgsExpressionBuilderWidget::on_lblPreview_linkActivated |
( |
QString |
link | ) |
|
|
slot |
| void QgsExpressionBuilderWidget::on_mValueListWidget_itemDoubleClicked |
( |
QListWidgetItem * |
item | ) |
|
|
slot |
| void QgsExpressionBuilderWidget::on_txtExpressionString_textChanged |
( |
| ) |
|
|
slot |
| void QgsExpressionBuilderWidget::on_txtSearchEdit_textChanged |
( |
| ) |
|
|
slot |
| void QgsExpressionBuilderWidget::operatorButtonClicked |
( |
| ) |
|
|
slot |
Registers a node item for the expression builder.
- Parameters
-
| group | The group the item will be show in the tree view. If the group doesn't exsit it will be created. |
| label | The label that is show to the user for the item in the tree. |
| expressionText | The text that is inserted into the expression area when the user double clicks on the item. |
| helpText | The help text that the user will see when item is selected. |
| type | The type of the expression item. |
Definition at line 300 of file qgsexpressionbuilderwidget.cpp.
| void QgsExpressionBuilderWidget::saveFunctionFile |
( |
QString |
fileName | ) |
|
| void QgsExpressionBuilderWidget::saveToRecent |
( |
QString |
key | ) |
|
| void QgsExpressionBuilderWidget::setExpressionText |
( |
const QString & |
expression | ) |
|
| void QgsExpressionBuilderWidget::setGeomCalculator |
( |
const QgsDistanceArea & |
da | ) |
|
| void QgsExpressionBuilderWidget::showContextMenu |
( |
const QPoint & |
pt | ) |
|
|
slot |
| void QgsExpressionBuilderWidget::updateFunctionFileList |
( |
QString |
path | ) |
|
The documentation for this class was generated from the following files: