16 #ifndef QGSATTRIBUTETABLEVIEW_H
17 #define QGSATTRIBUTETABLEVIEW_H
35 class QProgressDialog;
75 bool eventFilter( QObject *
object, QEvent *event )
override;
89 QList<QgsFeatureId> selectedFeaturesIds()
const;
99 void scrollToFeature(
const QgsFeatureId &fid,
int column = -1 );
110 void mousePressEvent( QMouseEvent *event )
override;
118 void mouseReleaseEvent( QMouseEvent *event )
override;
126 void mouseMoveEvent( QMouseEvent *event )
override;
134 void keyPressEvent( QKeyEvent *event )
override;
143 void contextMenuEvent( QContextMenuEvent *event )
override;
149 void closeEvent( QCloseEvent *event )
override;
174 void repaintRequested(
const QModelIndexList &indexes );
175 void repaintRequested();
176 void selectAll()
override;
177 virtual void selectRow(
int row );
178 virtual void _q_selectRow(
int row );
182 void showHorizontalSortIndicator();
183 void actionTriggered();
184 void columnSizeChanged(
int index,
int oldWidth,
int newWidth );
185 void onActionColumnItemPainted(
const QModelIndex &index );
186 void recreateActionWidgets();
189 void updateActionImage( QWidget *widget );
192 void selectRow(
int row,
bool anchor );
198 QMenu *mActionPopup =
nullptr;
199 int mRowSectionAnchor = 0;
200 QItemSelectionModel::SelectionFlag mCtrlDragSelectionFlag = QItemSelectionModel::Select;
201 QMap< QModelIndex, QWidget * > mActionWidgets;
This is a container for configuration of the attribute table.
A delegate item class for QgsAttributeTable (see Qt documentation for QItemDelegate).
A model backed by a QgsVectorLayerCache which is able to provide feature/attribute information to a Q...
Provides a table view of features of a QgsVectorLayer.
void willShowContextMenu(QMenu *menu, const QModelIndex &atIndex)
Emitted in order to provide a hook to add additional* menu entries to the context menu.
void columnResized(int column, int width)
Emitted when a column in the view has been resized.
The feature class encapsulates a single feature including its id, geometry and a list of field/values...
Is an interface class to abstract feature selection handling.
Map canvas is a class for displaying all GIS data types on a canvas.
This class caches features of a given QgsVectorLayer.
Represents a vector layer which manages a vector based data sets.
qint64 QgsFeatureId
64 bit feature ids negative numbers are used for uncommitted/newly added features