VR-Forces 4.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
tmEventHandler
createLineHandler.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2003 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
/*******************************************************************************
6
** $RCSfile: createLineHandler.h,v $ $Revision: 1.11 $ $State: Exp $
7
*******************************************************************************/
8
11
12
#ifndef CREATELINEHANDLER_H_
13
#define CREATELINEHANDLER_H_
14
15
#include "
tmEventHandler/createControlObjectHandler.h
"
16
#include "
tmqt/eventSignaller.h
"
17
18
class
DtLineConfigWidget
;
19
21
#include "
tmEventHandler/tmEventHandlerDefines.h
"
22
class
DT_DLL_tmEventHandler
DtCreateLineHandler
:
public
DtCreateControlObjectHandler
23
{
24
Q_OBJECT
25
26
public
:
27
29
DtCreateLineHandler
();
30
32
virtual
~
DtCreateLineHandler
();
33
34
public
:
36
static
DtEventHandler
*
create
(
DtEventController
* owner,
void
* usr);
37
38
protected
:
39
virtual
void
initDialog
(
QWidget
* w);
40
virtual
void
initDialogConnections
();
41
42
virtual
void
setWorkingName
();
43
44
virtual
DtSymbol
*
createSymbol
(
DtTMMapArea
* area);
45
virtual
bool
finishOnCreate
()
const
;
46
49
virtual
void
initFreehandMode();
50
53
virtual
bool
mouseEvent
(
DtTMMapArea
* area, QMouseEvent* evnt,
const
DtPoint
& pnt);
54
56
virtual
void
freehandDraw(
const
DtPoint
& pnt,
bool
end =
false
);
57
59
virtual
QString workingTitle()
const
;
60
virtual
const
char
*
eventSignalName
() {
return
DtCreateLineWidgetEvent
; };
61
62
virtual
void
setEmitCreateSignal
(
bool
);
63
64
protected
:
65
bool
myFreehand
;
66
bool
myInFreehandDraw
;
67
};
68
69
#endif //CREATELINEHANDLER_H_
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
)