VR-Forces 4.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
entityEditorImpl
formationDragDropHandler.h
Go to the documentation of this file.
1
/*********************************************************************
2
** Copyright (c) 2008 MaK Technologies, Inc.
3
** All rights reserved.
4
*********************************************************************/
5
/*********************************************************************
6
** $RCSfile: formationDragDropHandler.h,v $ $Revision: 1.2 $ $State: Exp $
7
*********************************************************************/
8
11
12
#ifndef DTFORMATIONDRAGDROPHANDLER_H_
13
#define DTFORMATIONDRAGDROPHANDLER_H_
14
15
#include "
tmEventHandler/dragDropHandler.h
"
16
#include "
entityEditorImpl/entityEditorImplDefines.h
"
17
18
class
DtFormationGridLineDrawer
;
19
20
class
DT_DLL_entityeditorimpl
DtFormationDragDropHandler
:
public
DtDragDropHandler
21
{
22
public
:
23
DtFormationDragDropHandler
();
24
25
virtual
bool
isValidForDrag
(
DtTMMapArea
* map,
DtModelKey
&key);
26
27
void
setSnapToGrid(
bool
);
28
bool
snapToGrid()
const
;
29
30
void
setGridLineDrawer(
DtFormationGridLineDrawer
*);
31
32
protected
:
33
virtual
void
dropSymbol
(
DtTMMapArea
* area,
const
QPoint& dropPoint,
DtModelData
* symData,
34
double
heightChange);
35
36
protected
:
37
bool
mySnapToGrid
;
38
DtFormationGridLineDrawer
*
myGridLineDrawer
;
39
};
40
41
inline
void
DtFormationDragDropHandler::setGridLineDrawer
(
DtFormationGridLineDrawer
* d)
42
{
43
myGridLineDrawer
= d;
44
}
45
46
inline
void
DtFormationDragDropHandler::setSnapToGrid
(
bool
b)
47
{
48
mySnapToGrid
= b;
49
}
50
51
inline
bool
DtFormationDragDropHandler::snapToGrid
()
const
52
{
53
return
mySnapToGrid
;
54
}
55
56
#endif
57
Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (
www.mak.com
)