184 void loadFieldNames(
const QgsFields &fields );
218 void setMenuProvider( MenuProvider *provider );
236 Q_DECL_DEPRECATED QStandardItemModel *model()
SIP_SKIP;
242 void loadRecent( const QString &collection = QStringLiteral( "generic" ) );
248 void saveToRecent( const QString &expressionText, const QString &collection = "generic" );
253 void saveToUserExpressions( const QString &label, const QString &expression, const QString &helpText );
258 void removeFromUserExpressions( const QString &label );
264 void loadUserExpressions( );
274 QStringList userExpressionLabels() const
SIP_SKIP;
280 QJsonDocument exportUserExpressions();
286 void loadExpressionsFromJson( const QJsonDocument &expressionsDocument );
290 void expressionItemDoubleClicked( const QString &text );
297 void setSearchText( const QString &text );
301 void onDoubleClicked( const QModelIndex &index );
303 void showContextMenu( QPoint pt );
305 void currentItemChanged( const QModelIndex &index, const QModelIndex & );
308 void updateFunctionTree();
323 QgsExpressionItem *registerItem( const QString &group, const QString &label, const QString &expressionText,
324 const QString &helpText = QString(),
326 bool highlightedItem = false,
int sortOrder = 1,
327 const QIcon &icon = QIcon(),
328 const QStringList &tags = QStringList(),
329 const QString &name = QString() );
342 void registerItemForAllGroups( const QStringList &groups, const QString &label, const QString &expressionText,
343 const QString &helpText = QString(),
345 bool highlightedItem = false,
int sortOrder = 1, const QStringList &tags = QStringList() );
347 void loadExpressionContext();
348 void loadRelations();
351 void loadFieldNames();
364 void showMessageBoxConfirmExpressionOverwrite(
bool &isApplyToAll,
bool &isOkToOverwrite, const QString &label, const QString &oldExpression, const QString &newExpression );
367 std::unique_ptr<QStandardItemModel> mModel;
378 QStringList mUserExpressionLabels;
Expression contexts are used to encapsulate the parameters around which a QgsExpression should be eva...