16 #ifndef QGSFEATURELIST_H
17 #define QGSFEATURELIST_H
19 #include <QStackedWidget>
21 #include "ui_qgsdualviewbase.h"
40 class GUI_EXPORT
QgsDualView :
public QStackedWidget,
private Ui::QgsDualViewBase
88 void setView( ViewMode view );
105 void setSelectedOnTop(
bool selectedOnTop );
120 int filteredFeatureCount();
147 void columnBoxInit();
163 bool saveEditChanges();
170 void displayExpressionChanged(
const QString expression );
175 void filterChanged();
179 void on_mFeatureList_aboutToChangeEditSelection(
bool& ok );
186 void on_mFeatureList_currentEditSelectionChanged(
const QgsFeature& feat );
188 void previewExpressionBuilder();
190 void previewColumnChanged( QObject* previewAction );
192 void viewWillShowContextMenu( QMenu* menu, QModelIndex atIndex );
194 void previewExpressionChanged(
const QString expression );
201 void featureFormAttributeChanged();
209 virtual void progress(
int i,
bool &cancel );
215 virtual void finished();
226 QSignalMapper* mPreviewActionMapper;
227 QMenu* mPreviewColumnsMenu;
229 QProgressDialog* mProgressDlg;
232 QString mDisplayExpression;
234 friend class TestQgsDualView;
243 QAction( name, dualView ), mDualView( dualView ), mAction( action ), mFieldIdx( fieldIdx )
253 QModelIndex mFieldIdx;
262 QAction( name, dualView ), mDualView( dualView ), mAction( action ), mFieldIdx( fieldIdx )
271 QModelIndex mFieldIdx;
274 #endif // QGSFEATURELIST_H