VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtMouseMappingEditorWidgetInterface.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2020 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
10 
11 #pragma once
12 #include <vrvCoreQt/vrvCoreQt.h>
13 #include <QtCore/QString>
14 
15 namespace makVrv
16 {
17  class DtUnicode;
18 
22  {
23 
24  public:
25 
28  {
29  ProjectionIndex2D = 0,
30  ProjectionIndex3D = 1
31  };
32 
35 
37  virtual void clearMappings() = 0;
38 
40  virtual void addMapping(const std::string& key, const std::string& context, const std::string& functionText = "",
41  bool ctrl = false, bool shift = false, bool drag = false, bool alt = false) = 0;
42 
44  virtual void setMouseHideTime(float time) = 0;
45 
47  virtual void setMouseHideEnabled(bool enabled) = 0;
48 
50  virtual void setMouseHideTimeWidgetEnabled(bool enabled) = 0;
51 
54  virtual void setMouseHideTimeMaxValue(float maxValue) = 0;
55 
57  virtual void addProjection(ProjectionIndex index, const DtUnicode& projectionName) = 0;
58 
60  virtual void setCurrentProjection(ProjectionIndex index) = 0;
61 
63  virtual void clearProjections() = 0;
64 
66  boost::signalslib::signal<void(float)> signal_mouseHideTimeChanged;
67 
69  boost::signalslib::signal<void(bool)> signal_mouseHideEnabledChanged;
70 
72  boost::signalslib::signal<void(ProjectionIndex)> signal_projectionChanged;
73  };
74 }
A unicode string.
Definition: DtUnicode.h:33
ProjectionIndex
Enumeration for the types of mouse mappings that can be displayed.
Definition: DtMouseMappingEditorWidgetInterface.h:27
boost::signalslib::signal< void(ProjectionIndex)> signal_projectionChanged
Signal from the widget that the projection type for mouse settings changed
Definition: DtMouseMappingEditorWidgetInterface.h:72
boost::signalslib::signal< void(float)> signal_mouseHideTimeChanged
Signal from the widget that the mouse hide time was changed.
Definition: DtMouseMappingEditorWidgetInterface.h:66
#define DT_DLL_VRVCOREQT
Definition: vrvCoreQt.h:20
Contains DLL export macros.
Abstract interface for instance editor widgets.
Definition: DtMouseMappingEditorWidgetInterface.h:21
boost::signalslib::signal< void(bool)> signal_mouseHideEnabledChanged
Signal from the widget that mouse hide was enabled or disabled.
Definition: DtMouseMappingEditorWidgetInterface.h:69

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)