16 #ifndef QGSATTRIBUTETABLECONFIG_H
17 #define QGSATTRIBUTETABLECONFIG_H
25 #include "qgis_core.h"
83 QVector<QgsAttributeTableConfig::ColumnConfig> columns()
const;
95 int mapVisibleColumnToIndex(
int visibleColumn )
const;
101 void setColumns(
const QVector<QgsAttributeTableConfig::ColumnConfig> &columns );
114 bool actionWidgetVisible()
const;
119 void setActionWidgetVisible(
bool visible );
134 void writeXml( QDomNode &node )
const;
139 void readXml(
const QDomNode &node );
144 QString sortExpression()
const;
149 void setSortExpression(
const QString &sortExpression );
156 int columnWidth(
int column )
const;
164 void setColumnWidth(
int column,
int width );
171 bool columnHidden(
int column )
const;
179 void setColumnHidden(
int column,
bool hidden );
185 Qt::SortOrder sortOrder()
const;
191 void setSortOrder( Qt::SortOrder sortOrder );
205 QVector<ColumnConfig> mColumns;
207 QString mSortExpression;
208 Qt::SortOrder mSortOrder = Qt::AscendingOrder;
This is a container for configuration of the attribute table.
Type
The type of an attribute table column.
@ Field
This column represents a field.
ActionWidgetStyle
The style of the action widget in the attribute table.
@ ButtonList
A list of buttons.
QgsAttributeTableConfig()=default
Constructor for QgsAttributeTableConfig.
Container of fields for a vector layer.
bool operator==(const QgsFeatureIterator &fi1, const QgsFeatureIterator &fi2)
bool operator!=(const QgsFeatureIterator &fi1, const QgsFeatureIterator &fi2)
Q_DECLARE_METATYPE(QgsMeshTimeSettings)
Defines the configuration of a column in the attribute table.
ColumnConfig()=default
Constructor for ColumnConfig.
QString name
The name of the attribute if this column represents a field.