VR-Forces 4.2 Class Documentation
infoHandler.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2003 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 /*******************************************************************************
6 ** $RCSfile: infoHandler.h,v $ $Revision: 1.8 $ $State: Exp $
7 *******************************************************************************/
8 
11 
12 #ifndef DTINFOHANDLER_H_
13 #define DTINFOHANDLER_H_
14 
15 #include "tmqt/eventHandler.h"
16 #include "tmqt/eventSignaller.h"
17 
18 class DtTMFactory;
19 class DtModelData;
20 
25 
28 {
29  Q_OBJECT
30 
31 public:
33  DtInfoHandler();
34 
36  virtual ~DtInfoHandler();
37 
38 public:
46  virtual void showInfo(const DtModelData&);
47 
48  virtual QWidget* informationDialogFor(const DtModelData& d, QWidget* parent = NULL);
49 
50 public slots:
53  virtual void removeInfoDialog(QObject* d);
54 
55 protected:
56  virtual bool userDefinedAction(DtUserDefinedType iAction, void* usr);
57 
58 protected:
60  virtual QWidget* createDialog(QWidget* parent, const DtModelData& d) = 0;
61  virtual void initDialog(QWidget* info, const DtModelData&) = 0;
62  virtual void initConnections(QWidget* info) = 0;
63  virtual void disconnectConnections(QWidget* info) = 0;
64  virtual QString keyFor(const DtModelData& d) const;
65 
66  virtual const char* eventSignalName() = 0;
67 
68 protected:
69  QHash<QString, QWidget*> myInfoDialogs;
70 };
71 
72 #endif //DTINFOHANDLER_H_
73 

Document ID: Generated on Sun Nov 24 19:49:21 EST 2013 from SVN revision 133924
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)