18 #ifndef QGSCOMPOSERATTRIBUTETABLE_H
19 #define QGSCOMPOSERATTRIBUTETABLE_H
44 int mCurrentSortColumn;
60 virtual void paint( QPainter* painter,
const QStyleOptionGraphicsItem* itemStyle, QWidget* pWidget );
67 bool writeXML( QDomElement& elem, QDomDocument & doc )
const;
74 bool readXML(
const QDomElement& itemElem,
const QDomDocument& doc );
119 void setMaximumNumberOfFeatures(
int features );
134 void setDisplayOnlyVisibleFeatures(
bool visibleOnly );
160 void setFilterFeatures(
bool filter );
180 void setFeatureFilter(
const QString& expression );
188 Q_DECL_DEPRECATED QSet<int> displayAttributes()
const;
198 void setDisplayAttributes(
const QSet<int>& attr,
bool refresh =
true );
207 Q_DECL_DEPRECATED QMap<int, QString> fieldAliasMap()
const;
216 Q_DECL_DEPRECATED
void setFieldAliasMap(
const QMap<int, QString>& map );
236 Q_DECL_DEPRECATED
void setSortAttributes(
const QList<QPair<int, bool> > att );
244 QList<QPair<int, bool> > sortAttributes()
const;
259 int mMaximumNumberOfFeatures;
262 bool mShowOnlyVisibleFeatures;
265 bool mFilterFeatures;
267 QString mFeatureFilter;
272 QList<int> fieldsToDisplay()
const;
278 void restoreFieldAliasMap(
const QMap<int, QString>& map );
282 void removeLayer( QString layerId );
286 #endif // QGSCOMPOSERATTRIBUTETABLE_H