VR-Forces 4.5 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DtStealthControlWidgetLogic.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2008 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 /******************************************************************************
6 ** $RCSfile: DtStealthControlWidgetLogic.h,v $ $Revision: 1.19 $ $State: Exp $
7 ******************************************************************************/
8 
11 
12 #pragma once
13 #include <vrvCoreQt/vrvCoreQt.h>
14 #include <vrvCore/DtObserver.h>
16 
17 namespace makVrv
18 {
19  class DtDe;
20  class DtStealthControlWidgetInterface;
21  class DtInputDriver;
22  class DtObserver;
23 
28  {
29 
30  public:
31 
33  static DtStealthControlWidgetLogic* create(DtDe& de,
35 
37  virtual ~DtStealthControlWidgetLogic();
38 
40  void setCurrentObserver( const std::string& displayName,
41  const DtUniqueID& id );
42 
45  void onObserverCreationRequested(const std::string& observerName);
46 
49  void onObserverDeletionRequested(const std::string& observerName);
50 
51  DtObserver* currentObserver();
52 
54  virtual void setAutoHide(bool);
55 
56  bool autoHide() const;
57 
58  protected:
59 
62 
64  void onInputDriverCreated( DtInputDriver* inputDriver );
65 
67  void onInputDriverAboutToBeDestroyed( DtInputDriver* inputDriver );
68 
70  void onObserverCreated( DtInputDriver* inputDriver,
71  DtObserver* observer );
72 
74  void onObserverAboutToBeDestroyed( DtInputDriver* inputDriver,
75  DtObserver* observer );
76 
77  void onCurrentObserverChanged( DtInputDriver* inputDriver,
78  DtObserver* observer );
79 
80  virtual void slot_activate(DtDe* subject);
81 
82  virtual void slot_deactivate(DtDe* subject);
83 
85  virtual void checkVisibility();
86 
87  protected:
88 
92  std::string myCurrentObserverName;
93  bool myAutoHide;
94  };
95 }

Document ID: Generated on Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (www.mak.com)