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();
151 void saveToRecent( QString key );
153 void loadRecent( QString key );
156 void currentChanged(
const QModelIndex &
index,
const QModelIndex & );
157 void on_expressionTree_doubleClicked(
const QModelIndex &index );
158 void on_txtExpressionString_textChanged();
159 void on_txtSearchEdit_textChanged();
160 void on_lblPreview_linkActivated( QString link );
161 void on_mValueListWidget_itemDoubleClicked( QListWidgetItem* item );
162 void operatorButtonClicked();
163 void showContextMenu(
const QPoint & );
164 void loadSampleValues();
165 void loadAllValues();
168 void setExpressionState(
bool state );
176 void expressionParsed(
bool isValid );
179 void fillFieldValues(
int fieldIndex,
int countLimit );
192 #endif // QGSEXPRESSIONBUILDER_H