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 );
124 ActionWidgetStyle actionWidgetStyle()
const;
129 void setActionWidgetStyle( ActionWidgetStyle actionWidgetStyle );
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;
206 ActionWidgetStyle mActionWidgetStyle = DropDown;
207 QString mSortExpression;
208 Qt::SortOrder mSortOrder = Qt::AscendingOrder;
213 #endif // QGSATTRIBUTETABLECONFIG_H