178 void loadFieldNames(
const QgsFields &fields );
212 void setMenuProvider( MenuProvider *provider );
230 Q_DECL_DEPRECATED QStandardItemModel *model()
SIP_SKIP;
236 void loadRecent( const QString &collection = QStringLiteral( "generic" ) );
242 void saveToRecent( const QString &expressionText, const QString &collection = "generic" );
247 void saveToUserExpressions( const QString &label, const QString &expression, const QString &helpText );
252 void removeFromUserExpressions( const QString &label );
258 void loadUserExpressions();
268 QStringList userExpressionLabels() const
SIP_SKIP;
274 QJsonDocument exportUserExpressions();
280 void loadExpressionsFromJson( const QJsonDocument &expressionsDocument );
284 void expressionItemDoubleClicked( const QString &text );
291 void setSearchText( const QString &text );
295 void onDoubleClicked( const QModelIndex &index );
297 void showContextMenu( QPoint pt );
299 void currentItemChanged( const QModelIndex &index, const QModelIndex & );
302 void updateFunctionTree();
317 QgsExpressionItem *registerItem( const QString &group, const QString &label, const QString &expressionText, const QString &helpText = QString(),
QgsExpressionItem::ItemType type =
QgsExpressionItem::ExpressionNode,
bool highlightedItem = false,
int sortOrder = 1, const QIcon &icon = QIcon(), const QStringList &tags = QStringList(), const QString &name = QString() );
330 void registerItemForAllGroups( const QStringList &groups, const QString &label, const QString &expressionText, const QString &helpText = QString(),
QgsExpressionItem::ItemType type =
QgsExpressionItem::ExpressionNode,
bool highlightedItem = false,
int sortOrder = 1, const QStringList &tags = QStringList() );
332 void loadExpressionContext();
333 void loadRelations();
336 void loadFieldNames();
349 void showMessageBoxConfirmExpressionOverwrite(
bool &isApplyToAll,
bool &isOkToOverwrite, const QString &label, const QString &oldExpression, const QString &newExpression );
352 std::unique_ptr<QStandardItemModel> mModel;
363 QStringList mUserExpressionLabels;
Expression contexts are used to encapsulate the parameters around which a QgsExpression should be eva...