mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-24 00:47:57 -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
36 lines
1.1 KiB
Plaintext
36 lines
1.1 KiB
Plaintext
/**Item representing the paper. May draw the snapping grid lines if composition is in
|
|
preview mode*/
|
|
class QgsPaperItem: QgsComposerItem
|
|
{
|
|
%TypeHeaderCode
|
|
#include <qgspaperitem.h>
|
|
%End
|
|
public:
|
|
QgsPaperItem( QgsComposition* c /TransferThis/ );
|
|
QgsPaperItem( qreal x, qreal y, qreal width, qreal height, QgsComposition* composition /TransferThis/ );
|
|
~QgsPaperItem();
|
|
|
|
/** return correct graphics item type. Added in v1.7 */
|
|
virtual int type() const;
|
|
|
|
/** \brief Reimplementation of QCanvasItem::paint*/
|
|
void paint( QPainter* painter, const QStyleOptionGraphicsItem* itemStyle, QWidget* pWidget );
|
|
|
|
/** stores state in Dom element
|
|
* @param elem is Dom element corresponding to 'Composer' tag
|
|
* @param doc Dom document
|
|
*/
|
|
bool writeXML( QDomElement& elem, QDomDocument & doc ) const;
|
|
|
|
/** sets state from Dom document
|
|
* @param itemElem is Dom node corresponding to item tag
|
|
* @param doc is the Dom document
|
|
*/
|
|
bool readXML( const QDomElement& itemElem, const QDomDocument& doc );
|
|
|
|
private:
|
|
QgsPaperItem();
|
|
/**Set flags and z-value*/
|
|
void initialize();
|
|
};
|