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
89 void setView( ViewMode view );
106 void setSelectedOnTop(
bool selectedOnTop );
121 int filteredFeatureCount();
148 void columnBoxInit();
164 bool saveEditChanges();
171 void displayExpressionChanged(
const QString expression );
176 void filterChanged();
180 void on_mFeatureList_aboutToChangeEditSelection(
bool& ok );
187 void on_mFeatureList_currentEditSelectionChanged(
const QgsFeature& feat );
189 void previewExpressionBuilder();
191 void previewColumnChanged( QObject* previewAction );
193 void viewWillShowContextMenu( QMenu* menu, QModelIndex atIndex );
195 void previewExpressionChanged(
const QString expression );
202 void featureFormAttributeChanged();
210 virtual void progress(
int i,
bool& cancel );
216 virtual void finished();
235 friend class TestQgsDualView;
244 QAction( name, dualView ), mDualView( dualView ), mAction( action ), mFieldIdx( fieldIdx )
263 QAction( name, dualView ), mDualView( dualView ), mAction( action ), mFieldIdx( fieldIdx )
275 #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)
QgsAttributeForm * mAttributeForm
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)...
QgsFeatureIds filteredFeatures()
This class caches features of a given QgsVectorLayer.
QgsAttributeTableModel * masterModel() const
Returns the model which has the information about all features (not only filtered) ...
QgsAttributeTableFilterModel::FilterMode filterMode()
General purpose distance and area calculator.
QgsVectorLayerCache * mLayerCache
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