16 #ifndef QGSEXPRESSIONBUILDER_H
17 #define QGSEXPRESSIONBUILDER_H
20 #include "ui_qgsexpressionbuilder.h"
25 #include "QStandardItemModel"
26 #include "QStandardItem"
27 #include "QSortFilterProxyModel"
40 if ( source_parent == qobject_cast<QStandardItemModel*>( sourceModel() )->invisibleRootItem()->index() )
60 QString expressionText,
63 : QStandardItem( label )
71 QString expressionText,
73 : QStandardItem( label )
122 void loadFieldNames();
124 void loadFieldNames(
const QgsFields& fields );
133 QString expressionText();
136 void setExpressionText(
const QString& expression );
145 void registerItem( QString group, QString label, QString expressionText,
146 QString helpText =
"",
149 bool isExpressionValid();
152 void currentChanged(
const QModelIndex &index,
const QModelIndex & );
153 void on_expressionTree_doubleClicked(
const QModelIndex &index );
154 void on_txtExpressionString_textChanged();
155 void on_txtSearchEdit_textChanged();
156 void on_lblPreview_linkActivated( QString link );
157 void on_mValueListWidget_itemDoubleClicked( QListWidgetItem* item );
158 void operatorButtonClicked();
159 void showContextMenu(
const QPoint & );
160 void loadSampleValues();
161 void loadAllValues();
164 void setExpressionState(
bool state );
172 void expressionParsed(
bool isValid );
175 void fillFieldValues(
int fieldIndex,
int countLimit );
188 #endif // QGSEXPRESSIONBUILDER_H