VR-Forces 4.0.4 Class Documentation
include/tmEventHandler/printHandler.h
Go to the documentation of this file.
00001 /*******************************************************************************
00002 ** Copyright (c) 2004 MAK Technologies, Inc.
00003 ** All rights reserved.
00004 *******************************************************************************/
00005 /*******************************************************************************
00006 ** $RCSfile: printHandler.h,v $ $Revision: 1.5 $ $State: Exp $
00007 *******************************************************************************/
00008 
00011 
00012 #ifndef DTPRINTHANDLER_H_
00013 #define DTPRINTHANDLER_H_
00014 
00015 #include "tmqt/eventHandler.h"
00016 #include "tmEventHandler/tmEventHandlerDefines.h"
00017 
00018 #include <QtGui/QPrinter>
00019 #include <QtGui/QPrintDialog>
00020 
00022 class DT_DLL_tmEventHandler DtPrintHandler : public DtEventHandler
00023 {
00024    Q_OBJECT
00025 
00026 public:
00028    DtPrintHandler();
00029    
00031    virtual ~DtPrintHandler();
00032    
00033 public:
00035    static DtEventHandler* create(DtEventController* owner, void* usr);
00036 
00038    virtual QWidget* createDialog(QWidget* parent);
00039    virtual void showDialog(bool bShow);
00040 
00041    virtual void setPrintBackground(bool b);
00042 
00043 protected:
00046    virtual double getDrawingScalingFactor(QPaintDevice* printer, QPaintDevice* window);
00047 
00048 protected:
00049    bool myPrintBackground;
00050    QPrinter myPrinter;
00051 };
00052 
00053 #endif //DTPRINTHANDLER_H_
00054 

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)