19 #include <QStackedWidget> 21 #include "ui_qgsdualviewbase.h" 87 bool loadFeatures =
true );
124 void setSelectedOnTop(
bool selectedOnTop );
139 int filteredFeatureCount();
147 void setFilteredFeatures(
const QgsFeatureIds& filteredFeatures );
191 void setSortExpression(
const QString& sortExpression , Qt::SortOrder sortOrder = Qt::AscendingOrder );
196 QString sortExpression()
const;
202 void columnBoxInit();
218 bool saveEditChanges();
220 void openConditionalStyles();
225 void setMultiEditEnabled(
bool enabled );
231 void toggleSearchMode(
bool enabled );
237 void copyCellContent()
const;
244 void displayExpressionChanged(
const QString& expression );
249 void filterChanged();
265 void on_mFeatureList_aboutToChangeEditSelection(
bool& ok );
272 void on_mFeatureList_currentEditSelectionChanged(
const QgsFeature& feat );
274 void previewExpressionBuilder();
276 void previewColumnChanged(
QObject* previewAction );
280 void showViewHeaderMenu(
QPoint point );
282 void organizeColumns();
284 void tableColumnResized(
int column,
int width );
290 void autosizeColumn();
294 void previewExpressionChanged(
const QString& expression );
296 void onSortColumnChanged();
298 void sortByPreviewExpression();
300 void updateSelectedFeatures();
302 void extentChanged();
309 void featureFormAttributeChanged();
317 virtual void progress(
int i,
bool &cancel );
323 virtual void finished();
326 void zoomToCurrentFeature();
328 void rebuildFullLayerCache();
331 void initLayerCache(
bool cacheGeometry );
340 QMenu* mPreviewColumnsMenu;
341 QMenu* mHorizontalHeaderMenu;
352 friend class TestQgsDualView;
353 friend class TestQgsAttributeTable;
366 , mDualView( dualView )
368 , mFieldIdx( fieldIdx )
391 , mDualView( dualView )
393 , mFieldIdx( fieldIdx )
407 #endif // QGSDUALVIEW_H
Provides a table view of features of a QgsVectorLayer.
QgsAttributeTableModel * masterModel() const
Returns the model which has the information about all features (not only filtered) ...
This class contains context information for attribute editor widgets.
QgsAttributeTableView * tableView()
Returns the table view.
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...
Q_DECLARE_METATYPE(QModelIndex)
Map canvas is a class for displaying all GIS data types on a canvas.
FilterMode
The filter mode defines how the rows should be filtered.
This class wraps a request for features to a vector layer (or directly its vector data provider)...
QgsFeatureIds filteredFeatures()
Get a list of currently visible feature ids.
This class caches features of a given QgsVectorLayer.
QgsAttributeTableFilterModel::FilterMode filterMode()
Get the filter mode.
General purpose distance and area calculator.
This is a container for configuration of the attribute table.
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.