|
QGIS API Documentation
master-3f58142
|
Item representing the paper. More...
#include <qgspaperitem.h>
Inheritance diagram for QgsPaperItem:
Collaboration diagram for QgsPaperItem:Public Member Functions | |
| QgsPaperItem (QgsComposition *c) | |
| QgsPaperItem (qreal x, qreal y, qreal width, qreal height, QgsComposition *composition) | |
| ~QgsPaperItem () | |
| void | paint (QPainter *painter, const QStyleOptionGraphicsItem *itemStyle, QWidget *pWidget) |
| Reimplementation of QCanvasItem::paint. | |
| bool | readXML (const QDomElement &itemElem, const QDomDocument &doc) |
| sets state from Dom document | |
| virtual int | type () const |
| return correct graphics item type. | |
| bool | writeXML (QDomElement &elem, QDomDocument &doc) const |
| stores state in Dom element | |
Private Member Functions | |
| QgsPaperItem () | |
| void | initialize () |
| Set flags and z-value. | |
Item representing the paper.
May draw the snapping grid lines if composition is in preview mode
Definition at line 25 of file qgspaperitem.h.
Definition at line 22 of file qgspaperitem.cpp.
References initialize().
| QgsPaperItem::QgsPaperItem | ( | qreal | x, |
| qreal | y, | ||
| qreal | width, | ||
| qreal | height, | ||
| QgsComposition * | composition | ||
| ) |
Definition at line 27 of file qgspaperitem.cpp.
References initialize().
Definition at line 37 of file qgspaperitem.cpp.
| QgsPaperItem::QgsPaperItem | ( | ) | [private] |
Definition at line 32 of file qgspaperitem.cpp.
References initialize().
| void QgsPaperItem::initialize | ( | ) | [private] |
Set flags and z-value.
Definition at line 128 of file qgspaperitem.cpp.
Referenced by QgsPaperItem().
| void QgsPaperItem::paint | ( | QPainter * | painter, |
| const QStyleOptionGraphicsItem * | itemStyle, | ||
| QWidget * | pWidget | ||
| ) |
Reimplementation of QCanvasItem::paint.
Definition at line 42 of file qgspaperitem.cpp.
References QgsComposition::Crosses, QgsComposition::Dots, QgsComposerItem::drawBackground(), QgsComposition::gridPen(), QgsComposition::gridStyle(), QgsComposerItem::mComposition, QgsComposition::plotStyle(), QgsComposition::Preview, QgsComposition::snapGridOffsetX(), QgsComposition::snapGridOffsetY(), QgsComposition::snapGridResolution(), QgsComposition::snapToGridEnabled(), and QgsComposition::Solid.
| bool QgsPaperItem::readXML | ( | const QDomElement & | itemElem, |
| const QDomDocument & | doc | ||
| ) | [virtual] |
sets state from Dom document
| itemElem | is Dom node corresponding to item tag |
| doc | is the Dom document |
Implements QgsComposerItem.
Definition at line 121 of file qgspaperitem.cpp.
| virtual int QgsPaperItem::type | ( | ) | const [inline, virtual] |
return correct graphics item type.
Added in v1.7
Reimplemented from QgsComposerItem.
Definition at line 33 of file qgspaperitem.h.
References QgsComposerItem::ComposerPaper.
| bool QgsPaperItem::writeXML | ( | QDomElement & | elem, |
| QDomDocument & | doc | ||
| ) | const [virtual] |
stores state in Dom element
| elem | is Dom element corresponding to 'Composer' tag |
| doc | Dom document |
Implements QgsComposerItem.
Definition at line 114 of file qgspaperitem.cpp.