All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
te::layout::PrintScene Class Reference

Class responsible for printing the entire content or part of the scene. As the scene is upside down, it is necessary to invert the y of the painter before printing. More...

#include <PrintScene.h>

Inheritance diagram for te::layout::PrintScene:

Public Member Functions

virtual bool exportToPDF ()
 
virtual void printPreview ()
 
 PrintScene (QGraphicsScene *scene, PaperConfig *config)
 
virtual ~PrintScene ()
 

Protected Slots

virtual void printPaper (QPrinter *printer)
 

Protected Member Functions

virtual QPrinter * createPrinter ()
 
virtual void deselectAllItems ()
 
virtual void renderScene (QPainter *newPainter, QPrinter *printer)
 

Protected Attributes

PaperConfigm_config
 
te::layout::PrinterScene m_printState
 
QGraphicsScene * m_scene
 

Detailed Description

Class responsible for printing the entire content or part of the scene. As the scene is upside down, it is necessary to invert the y of the painter before printing.

Definition at line 54 of file PrintScene.h.

Constructor & Destructor Documentation

te::layout::PrintScene::PrintScene ( QGraphicsScene *  scene,
PaperConfig config 
)

Definition at line 48 of file PrintScene.cpp.

te::layout::PrintScene::~PrintScene ( )
virtual

Definition at line 56 of file PrintScene.cpp.

Member Function Documentation

void te::layout::PrintScene::deselectAllItems ( )
protectedvirtual

Definition at line 235 of file PrintScene.cpp.

bool te::layout::PrintScene::exportToPDF ( )
virtual

Definition at line 205 of file PrintScene.cpp.

Referenced by te::layout::View::exportToPDF().

void te::layout::PrintScene::printPreview ( )
virtual

Definition at line 61 of file PrintScene.cpp.

References PrintingScene, and te::layout::Scene::redrawItems().

Referenced by te::layout::View::print().

void te::layout::PrintScene::renderScene ( QPainter *  newPainter,
QPrinter *  printer 
)
protectedvirtual

Member Data Documentation

PaperConfig* te::layout::PrintScene::m_config
protected

Definition at line 81 of file PrintScene.h.

te::layout::PrinterScene te::layout::PrintScene::m_printState
protected

Definition at line 82 of file PrintScene.h.

QGraphicsScene* te::layout::PrintScene::m_scene
protected

Definition at line 80 of file PrintScene.h.


The documentation for this class was generated from the following files: