VR-Forces 4.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
bhave3DGui
bhaveExternalScriptEditWidget.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2006 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
/*******************************************************************************
6
** $RCSfile: bhaveExternalScriptEditWidget.h $ $Revision: $ $State: $
7
*******************************************************************************/
8
11
12
#ifndef bhaveExternalScriptEditWidget_H_
13
#define bhaveExternalScriptEditWidget_H_
14
15
#include <
bhave3DGui/bhave3DGuiDefines.h
>
16
#include "
bhave3DGui/bhaveGuiManager.h
"
17
#include <QtCore/QString>
18
19
class
DtString
;
20
class
QProcess;
21
class
QWidget
;
22
23
namespace
BHAVE
24
{
25
namespace
BHAVE3DGui
26
{
27
28
class
DtBhaveLuaScriptUpdater;
29
34
class
DT_DLL_bhave3DGui
DtBhaveExternalScriptEditWidget
35
{
36
37
public
:
38
40
DtBhaveExternalScriptEditWidget
(
makVrv::DtDe
& de,
QWidget
* parent);
41
43
virtual
~
DtBhaveExternalScriptEditWidget
();
44
46
virtual
bool
init
(DtBhaveLuaScriptUpdater* luaScriptUpdater,
const
QString scriptName);
47
50
virtual
bool
showEditor();
51
52
virtual
QString
scriptName
() {
return
myScriptName;};
53
54
protected
:
55
57
virtual
bool
requestScript();
58
60
virtual
void
slot_scriptTextReceived(
const
DtString
& filename,
const
std::list<DtString>& content);
61
63
virtual
bool
saveScriptText(
const
DtString
& scriptName,
const
std::list<DtString>* scriptLines);
64
65
protected
:
66
67
makVrv::DtDe
&
myDe
;
68
QWidget
*
myParent
;
69
QString
myScriptName
;
70
QProcess*
myProcess
;
71
DtBhaveLuaScriptUpdater*
myScriptUpdater
;
72
};
73
}
74
}
75
76
#endif
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
)