VR-Forces 4.0.4 Class Documentation
include/tmEventHandler/infoHandler.h
Go to the documentation of this file.
00001 /*******************************************************************************
00002 ** Copyright (c) 2003 MAK Technologies, Inc.
00003 ** All rights reserved.
00004 *******************************************************************************/
00005 /*******************************************************************************
00006 ** $RCSfile: infoHandler.h,v $ $Revision: 1.8 $ $State: Exp $
00007 *******************************************************************************/
00008 
00011 
00012 #ifndef DTINFOHANDLER_H_
00013 #define DTINFOHANDLER_H_
00014 
00015 #include "tmqt/eventHandler.h"
00016 #include "tmqt/eventSignaller.h"
00017 
00018 class DtTMFactory;
00019 class DtModelData;
00020 
00025 
00026 #include "tmEventHandler/tmEventHandlerDefines.h"
00027 class DT_DLL_tmEventHandler DtInfoHandler : public DtEventHandler
00028 {
00029    Q_OBJECT
00030 
00031 public:
00033    DtInfoHandler();
00034    
00036    virtual ~DtInfoHandler();
00037 
00038 public:
00046    virtual void showInfo(const DtModelData&);
00047 
00048    virtual QWidget* informationDialogFor(const DtModelData& d, QWidget* parent = NULL);
00049 
00050 public slots:
00053    virtual void removeInfoDialog(QObject* d);
00054 
00055 protected:
00056    virtual bool userDefinedAction(DtUserDefinedType iAction, void* usr);
00057 
00058 protected:
00060    virtual QWidget* createDialog(QWidget* parent, const DtModelData& d) = 0;
00061    virtual void initDialog(QWidget* info, const DtModelData&) = 0;
00062    virtual void initConnections(QWidget* info) = 0;
00063    virtual void disconnectConnections(QWidget* info) = 0;
00064    virtual QString keyFor(const DtModelData& d) const;
00065 
00066    virtual const char* eventSignalName() = 0;
00067 
00068 protected:
00069    QHash<QString, QWidget*> myInfoDialogs;
00070 };
00071 
00072 #endif //DTINFOHANDLER_H_
00073 

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)