VR-Forces 4.1.1 Class Documentation
tmEventController.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2003 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 /*******************************************************************************
6 ** $RCSfile: tmEventController.h,v $ $Revision: 1.42 $ $State: Exp $
7 *******************************************************************************/
8 
11 
12 #ifndef TMEVENTCONTROLLER_H_
13 #define TMEVENTCONTROLLER_H_
14 
15 #include "tmqt/eventController.h"
16 #include "tmqt/eventHandlers.h"
17 #include "tmqt/showDialogType.h"
18 
19 class DtBaseWindow;
20 class DtEntityMapperKey;
22 class DtSymbol;
24 
26 typedef QHash<int, int> DtIntDictionary;
27 
30 {
31  Q_OBJECT
32 
33 public:
34 
37 
39  virtual ~DtTMEventController();
40 
52  virtual bool addDefaultHandlers();
53 
54  static DtTMAppEventController* appController();
55 
59  virtual void createComplete(bool finalPointSelected);
60 
63  virtual void addHandlerMapping(int kind, int handler);
64  virtual DtEventHandlerType handlerForKind(int kind) const;
65 
69  virtual void infoDialogCreated(const DtModelKey& key, QWidget* dialog);
70  virtual void infoDialogDestroyed(const DtModelKey& key, QWidget* dialog);
71 
72 public:
73  static DtEventController* create();
74 
75 public slots:
77  virtual void processShowHelp();
78 
80  virtual void processWebLink();
81  virtual void processLink(const QString&);
82 
84  virtual void processAboutBox();
85 
87  virtual void processPluginDialog();
88 
89  virtual void processResetToGlobalView();
90  virtual void processNavigationAction(int);
91 
92  virtual void startCreation(const DtEntityMapperKey& obj, int frc, DtShowDialogType type = WhenStartCreate);
93 
95  virtual bool stopCreate();
96 
98  virtual void editSelection();
99 
100  virtual void processDeleteAction();
101 
103  virtual void processEditToolbars();
104 
106  virtual void processEditObject(const DtModelKey& key);
107 
108  virtual void editObject(DtModelData* data);
109  virtual void editObject(const QString& name, const DtEntityMapperKey& key,
110  const QVector<DtPoint>& points, int force);
111 
112 signals:
114  void creationComplete(bool finalPointSelected);
115 
116 protected:
118  virtual DtCreationHandler* startCreate(DtEventHandlerType type, const DtEntityMapperKey& obj, int frc,
119  DtShowDialogType dialogType = WhenStartCreate);
120 
123  virtual bool passKeyEventToMapArea(QKeyEvent*) const;
124 
125 protected:
129 };
130 
131 #endif //TMEVENTCONTROLLER_H_
132 

Document ID: Generated on Mon Apr 8 19:24:01 EDT 2013 from SVN revision 125877
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)