16#ifndef QGSATTRIBUTETABLEVIEW_H
17#define QGSATTRIBUTETABLEVIEW_H
57#pragma clang diagnostic push
58#pragma clang diagnostic ignored "-Woverloaded-virtual"
62#pragma clang diagnostic pop
81 bool eventFilter( QObject *
object, QEvent *event )
override;
159 void closeEvent( QCloseEvent *event )
override;
200 void showHorizontalSortIndicator();
201 void actionTriggered();
202 void columnSizeChanged(
int index,
int oldWidth,
int newWidth );
203 void onActionColumnItemPainted( const QModelIndex &index );
204 void recreateActionWidgets();
207 void updateActionImage( QWidget *widget );
216 QMenu *mActionPopup =
nullptr;
217 int mRowSectionAnchor = 0;
218 QItemSelectionModel::SelectionFlag mCtrlDragSelectionFlag = QItemSelectionModel::Select;
219 QMap<QModelIndex, QWidget *> mActionWidgets;
221 QString mSortExpression;
A container for configuration of the attribute table.
A delegate item class for QgsAttributeTable (see Qt documentation for QItemDelegate).
A proxy model for filtering an attribute table model.
A model backed by a QgsVectorLayerCache which is able to provide feature/attribute information to a Q...
void willShowContextMenu(QMenu *menu, const QModelIndex &atIndex)
Emitted in order to provide a hook to add additional* menu entries to the context menu.
QList< QgsFeatureId > selectedFeaturesIds() const
Returns the selected features in the attribute table in table sorted order.
Q_DECL_DEPRECATED void finished()
void setFeatureSelectionManager(QgsIFeatureSelectionManager *featureSelectionManager)
setFeatureSelectionManager
void mouseMoveEvent(QMouseEvent *event) override
Called for mouse move events on a table cell.
virtual void selectRow(int row)
QgsAttributeTableView(QWidget *parent=nullptr)
Constructor for QgsAttributeTableView.
void selectAll() override
void rowHeaderDoubleClicked(QgsFeatureId fid)
Emitted when a row header is double-clicked.
void scrollToFeature(const QgsFeatureId &fid, int column=-1)
Scroll to a feature with a given fid.
void mouseReleaseEvent(QMouseEvent *event) override
Called for mouse release events on a table cell.
void contextMenuEvent(QContextMenuEvent *event) override
Is called when the context menu will be shown.
virtual void _q_selectRow(int row)
void closeEvent(QCloseEvent *event) override
Saves geometry to the settings on close.
void mousePressEvent(QMouseEvent *event) override
Called for mouse press events on a table cell.
void closeCurrentEditor()
Closes the editor delegate for the current item, committing its changes to the model.
void keyPressEvent(QKeyEvent *event) override
Called for key press events Disables selection change by only pressing an arrow key.
void setAttributeTableConfig(const QgsAttributeTableConfig &config)
Set the attribute table config which should be used to control the appearance of the attribute table.
void columnResized(int column, int width)
Emitted when a column in the view has been resized.
void repaintRequested(const QModelIndexList &indexes)
bool eventFilter(QObject *object, QEvent *event) override
This event filter is installed on the verticalHeader to intercept mouse press and release events.
virtual void setModel(QgsAttributeTableFilterModel *filterModel)
Item selection model for selecting features.
The feature class encapsulates a single feature including its unique ID, geometry and a list of field...
Is an interface class to abstract feature selection handling.
Map canvas is a class for displaying all GIS data types on a canvas.
QgsTableView(QWidget *parent=nullptr)
Constructor for QgsTableView.
Caches features for a given QgsVectorLayer.
Represents a vector layer which manages a vector based dataset.
qint64 QgsFeatureId
64 bit feature ids negative numbers are used for uncommitted/newly added features