VR-Forces Development_Version Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
include
vrvCoreQt
DtMouseMappingEditorLogic.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2009 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
/*******************************************************************************
6
** $RCSfile: DtMouseMappingEditorLogic.h,v $ $Revision: 1.12 $ $State: Exp $
7
*******************************************************************************/
8
12
13
#pragma once
14
15
#include <
vrvCoreQt/vrvCoreQt.h
>
16
17
#include <QtCore/QString>
18
19
namespace
makVrv
20
{
21
class
DtDe;
22
class
DtMouseMappingEditorWidgetInterface;
23
class
DtSelectInstanceWidget;
24
27
class
DT_DLL_VRVCOREQT
DtMouseMappingEditorLogic
28
{
29
protected
:
30
typedef
struct
31
{
32
QString
Key
;
33
QString
Context
;
34
QString
FunctionText
;
35
bool
Ctrl
;
36
bool
Shift
;
37
bool
Drag
;
38
bool
Alt
;
39
}
MouseMappingInformation
;
40
41
typedef
std::vector<MouseMappingInformation>
MouseMappingList
;
42
typedef
std::map<std::string, MouseMappingList>
MouseMappings
;
43
44
public
:
45
46
DtMouseMappingEditorLogic
(
DtDe
& de,
47
DtMouseMappingEditorWidgetInterface
& iFace,
DtSelectInstanceWidget
& selectedInstance );
48
50
virtual
~
DtMouseMappingEditorLogic
();
51
52
virtual
void
setupGui();
53
54
protected
:
55
virtual
void
slot_currentInstanceChanged(
int
,
const
std::string&);
56
57
virtual
void
addItem(
const
QString& mode,
const
QString& key,
58
const
QString& context,
const
QString& functionText =
""
,
bool
ctrl =
false
,
bool
shift =
false
,
bool
drag =
false
,
bool
alt =
false
);
59
60
protected
:
61
62
DtDe
&
myDe
;
63
DtMouseMappingEditorWidgetInterface
&
myInterface
;
64
DtSelectInstanceWidget
&
mySelectedInstance
;
65
MouseMappings
myMouseMappings
;
66
};
67
}
Document ID: Generated on Mon Jul 4 01:00:18 EDT 2016 from SVN revision 166489
Copyright © 2005-2015 VT MÄK. All Rights Reserved (
www.mak.com
)