16 #ifndef QGSFEATURELIST_H
17 #define QGSFEATURELIST_H
19 #include <QStackedWidget>
24 #include "ui_qgsdualviewbase.h"
39 class GUI_EXPORT
QgsDualView :
public QStackedWidget,
private Ui::QgsDualViewBase
86 void setView( ViewMode view );
101 void setSelectedOnTop(
bool selectedOnTop );
116 int filteredFeatureCount();
137 void columnBoxInit();
139 virtual void hideEvent( QHideEvent * );
140 virtual void focusOutEvent( QFocusEvent * );
153 void saveEditChanges();
158 void reloadAttribute(
const int& attribute );
166 void displayExpressionChanged(
const QString expression );
171 void filterChanged();
179 void on_mFeatureList_currentEditSelectionChanged(
const QgsFeature& feat );
181 void previewExpressionBuilder();
183 void previewColumnChanged( QObject* previewAction );
185 void editingToggled();
187 void viewWillShowContextMenu( QMenu* menu, QModelIndex atIndex );
189 void previewExpressionChanged(
const QString expression );
198 void attributeDeleted(
int attribute );
207 void attributeAdded(
int attribute );
223 virtual void progress(
int i,
bool& cancel );
229 virtual void finished();
247 friend class TestQgsDualView;
256 QAction( name, dualView ), mDualView( dualView ), mAction( action ), mFieldIdx( fieldIdx )
269 #endif // QGSFEATURELIST_H
QSet< QgsFeatureId > QgsFeatureIds
ViewMode
The view modes, in which this widget can present information.
QgsAttributeTableAction(const QString &name, QgsDualView *dualView, int action, const QModelIndex &fieldIdx)
The feature class encapsulates a single feature including its id, geometry and a list of field/values...
A model backed by a QgsVectorLayerCache which is able to provide feature/attribute information to a Q...
QMenu * mPreviewColumnsMenu
Map canvas is a class for displaying all GIS data types on a canvas.
QSignalMapper * mPreviewActionMapper
QgsFeatureListModel * mFeatureListModel
QgsCachedFeatureIterator * mFeatureCache
This class wraps a request for features to a vector layer (or directly its vector data provider)...
This class caches features of a given QgsVectorLayer.
QgsAttributeTableModel * masterModel() const
Returns the model which has the information about all features (not only filtered) ...
General purpose distance and area calculator.
QgsVectorLayerCache * mLayerCache
QgsAttributeDialog * mAttributeDialog
QgsAttributeTableFilterModel * mFilterModel
Delivers features from the cache.
QProgressDialog * mProgressDlg
QgsAttributeTableModel * mMasterModel
Represents a vector layer which manages a vector based data sets.
This widget is used to show the attributes of a set of features of a QgsVectorLayer.
QgsDistanceArea mDistanceArea