mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
- update methods of existing classes - add comment to methods missing in the sip bindings - split up collective sip files into single files and use same directory structure in python/ as in src/ - add a lot of missing classes (some might not make sense because of missing python methods in those classes) - remove some non-existing methods from the header files - add scripts/sipdiff - replace some usages of std::vector and std::set with QVector/QSet
66 lines
2.0 KiB
Plaintext
66 lines
2.0 KiB
Plaintext
/** \ingroup MapComposer
|
|
* Attribute table item for map composer.
|
|
*/
|
|
|
|
class QgsComposerAttributeTableCompare
|
|
{
|
|
%TypeHeaderCode
|
|
#include <qgscomposerattributetable.h>
|
|
%End
|
|
|
|
public:
|
|
QgsComposerAttributeTableCompare();
|
|
// bool operator()( const QgsAttributeMap& m1, const QgsAttributeMap& m2 );
|
|
void setSortColumn( int col );
|
|
void setAscending( bool asc );
|
|
};
|
|
|
|
class QgsComposerAttributeTable : QgsComposerTable
|
|
{
|
|
%TypeHeaderCode
|
|
#include <qgscomposerattributetable.h>
|
|
%End
|
|
|
|
public:
|
|
QgsComposerAttributeTable( QgsComposition* composition /TransferThis/ );
|
|
~QgsComposerAttributeTable();
|
|
|
|
/** return correct graphics item type. Added in v1.7 */
|
|
virtual int type() const;
|
|
|
|
/** \brief Reimplementation of QCanvasItem::paint*/
|
|
virtual void paint( QPainter* painter, const QStyleOptionGraphicsItem* itemStyle, QWidget* pWidget );
|
|
|
|
bool writeXML( QDomElement& elem, QDomDocument & doc ) const;
|
|
bool readXML( const QDomElement& itemElem, const QDomDocument& doc );
|
|
|
|
void setVectorLayer( QgsVectorLayer* vl );
|
|
const QgsVectorLayer* vectorLayer() const;
|
|
|
|
void setComposerMap( const QgsComposerMap* map /TransferThis/ );
|
|
const QgsComposerMap* composerMap() const;
|
|
|
|
void setMaximumNumberOfFeatures( int nr );
|
|
int maximumNumberOfFeatures() const;
|
|
|
|
void setDisplayOnlyVisibleFeatures( bool b );
|
|
bool displayOnlyVisibleFeatures() const;
|
|
|
|
QSet<int> displayAttributes() const;
|
|
void setDisplayAttributes( const QSet<int>& attr );
|
|
|
|
QMap<int, QString> fieldAliasMap() const;
|
|
void setFieldAliasMap( const QMap<int, QString>& map );
|
|
|
|
/**Adapts mMaximumNumberOfFeatures depending on the rectangle height*/
|
|
void setSceneRect( const QRectF& rectangle );
|
|
|
|
//void setSortAttributes( const QList<QPair<int, bool> > att );
|
|
//QList<QPair<int, bool> > sortAttributes() const;
|
|
|
|
|
|
signals:
|
|
/**This signal is emitted if the maximum number of feature changes (interactively)*/
|
|
void maximumNumberOfFeaturesChanged( int n );
|
|
};
|