2017-06-20 13:34:27 +02:00
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/core/composer/qgspaperitem.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class QgsPaperGrid: QGraphicsRectItem
|
2014-01-27 09:22:24 +01:00
|
|
|
{
|
2017-06-20 13:34:27 +02:00
|
|
|
%Docstring
|
|
|
|
Item representing a grid. This is drawn separately to the underlying paper item since the grid needs to be
|
2017-06-26 09:57:09 +02:00
|
|
|
drawn above all other composer items, while the paper item is drawn below all others.
|
2017-06-20 13:34:27 +02:00
|
|
|
%End
|
|
|
|
|
2014-03-21 12:50:50 +11:00
|
|
|
%TypeHeaderCode
|
2017-06-20 13:34:27 +02:00
|
|
|
#include "qgspaperitem.h"
|
2014-03-21 12:50:50 +11:00
|
|
|
%End
|
2014-01-27 09:22:24 +01:00
|
|
|
public:
|
2017-05-01 18:13:15 +02:00
|
|
|
QgsPaperGrid( double x, double y, double width, double height, QgsComposition *composition );
|
2014-01-27 09:22:24 +01:00
|
|
|
|
2017-06-20 13:34:27 +02:00
|
|
|
virtual void paint( QPainter *painter, const QStyleOptionGraphicsItem *itemStyle, QWidget *pWidget );
|
|
|
|
|
|
|
|
%Docstring
|
|
|
|
Reimplementation of QCanvasItem.paint
|
|
|
|
%End
|
2014-01-27 09:22:24 +01:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
class QgsPaperItem : QgsComposerItem
|
2009-02-27 13:57:26 +00:00
|
|
|
{
|
2017-06-20 13:34:27 +02:00
|
|
|
%Docstring
|
|
|
|
Item representing the paper.*
|
|
|
|
%End
|
|
|
|
|
2009-02-27 13:57:26 +00:00
|
|
|
%TypeHeaderCode
|
2017-06-20 13:34:27 +02:00
|
|
|
#include "qgspaperitem.h"
|
2009-02-27 13:57:26 +00:00
|
|
|
%End
|
|
|
|
public:
|
2017-05-01 18:13:15 +02:00
|
|
|
QgsPaperItem( QgsComposition *c /TransferThis/ );
|
|
|
|
QgsPaperItem( qreal x, qreal y, qreal width, qreal height, QgsComposition *composition /TransferThis/ );
|
2009-02-27 13:57:26 +00:00
|
|
|
~QgsPaperItem();
|
|
|
|
|
2010-11-25 21:45:52 +00:00
|
|
|
virtual int type() const;
|
2017-06-20 13:34:27 +02:00
|
|
|
%Docstring
|
|
|
|
Return correct graphics item type.
|
|
|
|
:rtype: int
|
|
|
|
%End
|
2010-11-25 21:45:52 +00:00
|
|
|
|
2017-06-20 13:34:27 +02:00
|
|
|
virtual void paint( QPainter *painter, const QStyleOptionGraphicsItem *itemStyle, QWidget *pWidget );
|
2009-02-27 13:57:26 +00:00
|
|
|
|
2017-06-20 13:34:27 +02:00
|
|
|
%Docstring
|
|
|
|
Reimplementation of QCanvasItem.paint
|
|
|
|
%End
|
2009-02-27 13:57:26 +00:00
|
|
|
|
2017-06-20 13:34:27 +02:00
|
|
|
virtual bool writeXml( QDomElement &elem, QDomDocument &doc ) const;
|
|
|
|
|
|
|
|
%Docstring
|
|
|
|
Stores state in Dom element
|
|
|
|
\param elem is Dom element corresponding to 'Composer' tag
|
|
|
|
\param doc Dom document
|
|
|
|
:rtype: bool
|
|
|
|
%End
|
|
|
|
|
|
|
|
virtual bool readXml( const QDomElement &itemElem, const QDomDocument &doc );
|
|
|
|
|
|
|
|
%Docstring
|
|
|
|
Sets state from Dom document
|
|
|
|
\param itemElem is Dom node corresponding to item tag
|
|
|
|
\param doc is the Dom document
|
|
|
|
:rtype: bool
|
|
|
|
%End
|
2009-02-27 13:57:26 +00:00
|
|
|
|
2017-05-01 18:13:15 +02:00
|
|
|
virtual void setSceneRect( const QRectF &rectangle );
|
2014-01-26 18:35:21 +01:00
|
|
|
|
2010-11-25 21:45:52 +00:00
|
|
|
};
|
2017-06-20 13:34:27 +02:00
|
|
|
|
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/core/composer/qgspaperitem.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|