16 #ifndef QGSFEATURELIST_H
17 #define QGSFEATURELIST_H
19 #include <QStackedWidget>
21 #include "ui_qgsdualviewbase.h"
42 class GUI_EXPORT
QgsDualView :
public QStackedWidget,
private Ui::QgsDualViewBase
90 void setView( ViewMode view );
105 void setSelectedOnTop(
bool selectedOnTop );
120 int filteredFeatureCount();
145 void columnBoxInit();
147 virtual void hideEvent( QHideEvent * );
148 virtual void focusOutEvent( QFocusEvent * );
164 bool saveEditChanges();
169 void reloadAttribute(
const int& attribute );
177 void displayExpressionChanged(
const QString expression );
182 void filterChanged();
190 void on_mFeatureList_currentEditSelectionChanged(
const QgsFeature& feat );
192 void previewExpressionBuilder();
194 void previewColumnChanged( QObject* previewAction );
196 void editingToggled();
198 void viewWillShowContextMenu( QMenu* menu, QModelIndex atIndex );
200 void previewExpressionChanged(
const QString expression );
209 void attributeDeleted(
int attribute );
218 void attributeAdded(
int attribute );
234 virtual void progress(
int i,
bool& cancel );
240 virtual void finished();
259 friend class TestQgsDualView;
268 QAction( name, dualView ), mDualView( dualView ), mAction( action ), mFieldIdx( fieldIdx )
287 QAction( name, dualView ), mDualView( dualView ), mAction( action ), mFieldIdx( fieldIdx )
299 #endif // QGSFEATURELIST_H
QSet< QgsFeatureId > QgsFeatureIds
This class contains context information for attribute editor widgets.
ViewMode
The view modes, in which this widget can present information.
QgsAttributeTableAction(const QString &name, QgsDualView *dualView, int action, const QModelIndex &fieldIdx)
QgsAttributeTableMapLayerAction(const QString &name, QgsDualView *dualView, QgsMapLayerAction *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
QgsAttributeEditorContext mEditorContext
Map canvas is a class for displaying all GIS data types on a canvas.
QSignalMapper * mPreviewActionMapper
QgsMapLayerAction * mAction
QgsFeatureListModel * mFeatureListModel
QgsIFeatureSelectionManager * mFeatureSelectionManager
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
Is an interface class to abstract feature selection handling.
QgsAttributeTableModel * mMasterModel
Represents a vector layer which manages a vector based data sets.
An action which can run on map layers.
This widget is used to show the attributes of a set of features of a QgsVectorLayer.
QgsDistanceArea mDistanceArea