![]() |
VR-Forces 4.0.4 Class Documentation
|
Takes the active windows map area and prints it to a printing device. More...

Public Member Functions | |
| DtPrintHandler () | |
| Default Constructor. | |
| virtual | ~DtPrintHandler () |
| Destructor. | |
| virtual QWidget * | createDialog (QWidget *parent) |
| Creates dialog if not already created. Creates from factory. | |
| virtual void | showDialog (bool bShow) |
| virtual void | setPrintBackground (bool b) |
Static Public Member Functions | |
| static DtEventHandler * | create (DtEventController *owner, void *usr) |
| Static creator. | |
Protected Member Functions | |
| virtual double | getDrawingScalingFactor (QPaintDevice *printer, QPaintDevice *window) |
| Returns the difference in size between the area and printer so all drawing that relies on screen coordinates can be scaled accordingly. | |
Protected Attributes | |
| bool | myPrintBackground |
| QPrinter | myPrinter |
Takes the active windows map area and prints it to a printing device.
Default Constructor.
| virtual DtPrintHandler::~DtPrintHandler | ( | ) | [virtual] |
Destructor.
| static DtEventHandler* DtPrintHandler::create | ( | DtEventController * | owner, |
| void * | usr | ||
| ) | [static] |
Static creator.
| virtual QWidget* DtPrintHandler::createDialog | ( | QWidget * | parent | ) | [virtual] |
Creates dialog if not already created. Creates from factory.
Reimplemented from DtEventHandler.
| virtual void DtPrintHandler::showDialog | ( | bool | bShow | ) | [virtual] |
Reimplemented from DtEventHandler.
| virtual void DtPrintHandler::setPrintBackground | ( | bool | b | ) | [virtual] |
| virtual double DtPrintHandler::getDrawingScalingFactor | ( | QPaintDevice * | printer, |
| QPaintDevice * | window | ||
| ) | [protected, virtual] |
Returns the difference in size between the area and printer so all drawing that relies on screen coordinates can be scaled accordingly.
bool DtPrintHandler::myPrintBackground [protected] |
QPrinter DtPrintHandler::myPrinter [protected] |