VR-Forces 4.0.4 Class Documentation
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
DtPrintHandler Class Reference

Takes the active windows map area and prints it to a printing device. More...

Inheritance diagram for DtPrintHandler:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 DtPrintHandler ()
 Default Constructor.
virtual ~DtPrintHandler ()
 Destructor.
virtual QWidgetcreateDialog (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 DtEventHandlercreate (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

Detailed Description

Takes the active windows map area and prints it to a printing device.


Constructor & Destructor Documentation

Default Constructor.

virtual DtPrintHandler::~DtPrintHandler ( ) [virtual]

Destructor.


Member Function Documentation

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.


Member Data Documentation

QPrinter DtPrintHandler::myPrinter [protected]

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

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)