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();
227 QSignalMapper* mPreviewActionMapper;
228 QMenu* mPreviewColumnsMenu;
230 QProgressDialog* mProgressDlg;
233 QString mDisplayExpression;
235 friend class TestQgsDualView;
244 QAction( name, dualView ), mDualView( dualView ), mAction( action ), mFieldIdx( fieldIdx )
254 QModelIndex mFieldIdx;
263 QAction( name, dualView ), mDualView( dualView ), mAction( action ), mFieldIdx( fieldIdx )
272 QModelIndex mFieldIdx;
275 #endif // QGSFEATURELIST_H