VR-Forces 4.2 Class Documentation
DtVrfEditManagerEventProcessor.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2008 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 /******************************************************************************
6 ** $RCSfile: DtVrfEditManagerEventProcessor.h,v $ $Revision: 1.4 $ $State: Exp $
7 ******************************************************************************/
8 
11 
13 
14 #pragma once
15 
16 #include <vrfGuiCore/vrfGuiCore.h>
17 
18 #include <vrvCore/DtEventProcessorInterface.h>
19 #include <vrvCore/DtUniqueID.h>
20 #include <vrvCore/DtMouseEvent.h>
21 
22 #include <vrvUtil/DtVirtualBaseClass.h>
23 
24 namespace makVrv
25 {
26  class DtDe;
27  class DtChannel;
28  class DtKeyEvent;
29 }
30 
31 namespace makVrf
32 {
36  public makVrv::DtEventProcessorInterface
37  {
38 
39  public:
41  DtVrfEditManagerEventProcessor( makVrv::DtDe& );
42 
45 
46  void setAllowEditing(bool b)
47  {
48  myAllowEditing = b;
49  }
50 
51  bool allowEditing() const
52  {
53  return myAllowEditing;
54  }
55 
56  protected:
57 
58  virtual bool processMouseEvent(const makVrv::DtMouseEvent& ev,
59  makVrv::DtChannel& channel);
60 
62  virtual bool processKeyboardEvent(const makVrv::DtKeyEvent& ev,
63  makVrv::DtChannel& channel);
64 
66  virtual const std::string& className();
67 
68  protected:
69  makVrv::DtDe& myDe;
71 
72  };
73 
75  public makVrv::DtVirtualBaseClass
76  {
77 
78  public:
81  static DtVrfEditManagerEventProcessorCreator& instance( makVrv::DtDe& de );
82 
84  static void registerInstance( makVrv::DtDe& de,
86 
88  virtual DtVrfEditManagerEventProcessor* create( makVrv::DtDe& de );
89  };
90 }

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)