18 #ifndef QGSCOMPOSERATTRIBUTETABLE_H 19 #define QGSCOMPOSERATTRIBUTETABLE_H 47 int mCurrentSortColumn;
126 void setMaximumNumberOfFeatures(
int features );
141 void setDisplayOnlyVisibleFeatures(
bool visibleOnly );
167 void setFilterFeatures(
bool filter );
187 void setFeatureFilter(
const QString& expression );
195 Q_DECL_DEPRECATED
QSet<int> displayAttributes()
const;
205 void setDisplayAttributes(
const QSet<int>& attr,
bool refresh =
true );
266 int mMaximumNumberOfFeatures;
269 bool mShowOnlyVisibleFeatures;
272 bool mFilterFeatures;
289 void removeLayer(
const QString& layerId );
293 #endif // QGSCOMPOSERATTRIBUTETABLE_H
void setAscending(bool asc)
Sets sort order for column sorting.
int maximumNumberOfFeatures() const
Returns the maximum number of features to be shown by the table.
const QgsComposerMap * composerMap() const
Returns the composer map whose extents are controlling the features shown in the table.
virtual int type() const override
Return correct graphics item type.
A class to display feature attributes in the print composer.
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.
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...
bool displayOnlyVisibleFeatures() const
Returns true if the table is set to show only features visible on a corresponding composer map item...
QgsVectorLayer * vectorLayer() const
Returns the vector layer the attribute table is currently using.
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.
QString featureFilter() const
Returns the current expression used to filter features for the table.
Represents a vector layer which manages a vector based data sets.
bool filterFeatures() const
Returns true if a feature filter is active on the attribute table.
Helper class for sorting tables, takes into account sorting column and ascending / descending...