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>
  
 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 | |
| PaperConfig * | m_config | 
| te::layout::PrinterScene | m_printState | 
| QGraphicsScene * | m_scene | 
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.
| te::layout::PrintScene::PrintScene | ( | QGraphicsScene * | scene, | 
| PaperConfig * | config | ||
| ) | 
Definition at line 48 of file PrintScene.cpp.
      
  | 
  virtual | 
Definition at line 56 of file PrintScene.cpp.
      
  | 
  protectedvirtual | 
      
  | 
  protectedvirtual | 
Definition at line 235 of file PrintScene.cpp.
      
  | 
  virtual | 
Definition at line 205 of file PrintScene.cpp.
Referenced by te::layout::View::exportToPDF().
      
  | 
  protectedvirtualslot | 
Definition at line 93 of file PrintScene.cpp.
References te::layout::Context::getDpiX(), te::layout::Context::getDpiY(), te::common::Singleton< Context >::getInstance(), te::layout::Context::getZoomFactor(), te::layout::Scene::onChangeZoomFactor(), te::layout::Context::setDpiX(), te::layout::Context::setDpiY(), and te::layout::Context::setZoomFactor().
      
  | 
  virtual | 
Definition at line 61 of file PrintScene.cpp.
References PrintingScene, and te::layout::Scene::redrawItems().
Referenced by te::layout::View::print().
      
  | 
  protectedvirtual | 
Definition at line 157 of file PrintScene.cpp.
References te::common::Singleton< Context >::getInstance(), te::layout::Context::getPaperConfig(), te::layout::PaperConfig::getPaperSize(), PreviewScene, and PrintingScene.
      
  | 
  protected | 
Definition at line 81 of file PrintScene.h.
      
  | 
  protected | 
Definition at line 82 of file PrintScene.h.
      
  | 
  protected | 
Definition at line 80 of file PrintScene.h.