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
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
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...
Map canvas is a class for displaying all GIS data types on a canvas.
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.
Is an interface class to abstract feature selection handling.
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.