18 #ifndef QGSCOMPOSERATTRIBUTETABLE_H
19 #define QGSCOMPOSERATTRIBUTETABLE_H
44 int mCurrentSortColumn;
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 );
259 int mMaximumNumberOfFeatures;
262 bool mShowOnlyVisibleFeatures;
265 bool mFilterFeatures;
282 void removeLayer(
const QString& layerId );
286 #endif // QGSCOMPOSERATTRIBUTETABLE_H
bool displayOnlyVisibleFeatures() const
Returns true if the table is set to show only features visible on a corresponding composer map item...
void setAscending(bool asc)
Sets sort order for column sorting.
virtual int type() const override
Return correct graphics item type.
QgsVectorLayer * vectorLayer() const
Returns the vector layer the attribute table is currently using.
A class to display feature attributes in the print composer.
const QgsComposerMap * composerMap() const
Returns the composer map whose extents are controlling the features shown in the table.
Graphics scene for map printing.
Object representing map window.
virtual bool getFeatureAttributes(QList< QgsAttributeMap > &attributeMaps)
Fetches the text used for the rows of the table.
bool filterFeatures() const
Returns true if a feature filter is active on the attribute table.
int maximumNumberOfFeatures() const
Returns the maximum number of features to be shown by the table.
A table class that displays a vector attribute table.
virtual bool writeXML(QDomElement &elem, QDomDocument &doc) const override=0
Stores item state in DOM element.
void setSortColumn(int col)
Sets column number to sort by.
virtual void setSceneRect(const QRectF &rectangle)
Sets this items bound in scene coordinates such that 1 item size units corresponds to 1 scene size un...
QString featureFilter() const
Returns the current expression used to filter features for the table.
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *itemStyle, QWidget *pWidget) override
Reimplementation of QCanvasItem::paint.
virtual bool readXML(const QDomElement &itemElem, const QDomDocument &doc) override=0
Sets item state from DOM element.
Represents a vector layer which manages a vector based data sets.
Helper class for sorting tables, takes into account sorting column and ascending / descending...