VR-Forces 4.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
examples
addSimCommand
addSimCommandGui
DtSimulationCommandMessage.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 2009 MAK Technologies, Inc.
3
** All rights reserved.
4
******************************************************************************/
5
/******************************************************************************
6
** $RCSfile: DtSimulationCommandMessage.h,v $ $Revision: 1.4 $ $State: Exp $
7
******************************************************************************/
8
9
//\file DtSimulationCommandMessage.h
10
//\brief Contains DtSimulationCommandMessage class.
11
12
#pragma once
13
14
#include <
vrfGuiCoreQt/vrfGuiCoreQt.h
>
15
#include <
vrfGuiCoreQt/DtSimulationCommandDialogInterface.h
>
16
#include <
vrfGuiCoreQt/DtSimulationCommandActions.h
>
17
18
class
MySimCommand
;
19
class
QVBoxLayout;
20
class
QLabel
;
21
class
QLineEdit
;
22
23
namespace
vrfAddSimCommandExample
24
{
25
class
DtSimulationCommandMessageMenuItem
:
public
makVrf::DtVrfSimulationCommand
26
{
27
public
:
28
//CTOR
29
DtSimulationCommandMessageMenuItem
(
makVrv::DtDe
& de);
30
31
//DTOR
32
virtual
~DtSimulationCommandMessageMenuItem
();
33
34
//Build a menu item (via an action).
35
virtual
QAction
*
createAction
(
makVrv::DtDe
&,
QWidget
* parent);
36
};
37
38
class
DtMySimCommandObjectWrapper
:
public
makVrf::DtSimCommandObjectWrapper
39
{
40
public
:
41
DtMySimCommandObjectWrapper
(
const
MySimCommand
&);
42
DtMySimCommandObjectWrapper
(
const
DtMySimCommandObjectWrapper
&);
43
44
virtual
void
setObjectName
(
const
DtString
&);
45
virtual
DtString
objectName
()
const
;
46
47
virtual
makVrf::DtSimCommandObjectWrapper
*
clone
()
const
;
48
};
49
50
class
DtSimulationCommandMessageDialog
:
public
makVrf::DtSimulationCommandDialogInterface
51
{
52
public
:
53
//CTOR
54
DtSimulationCommandMessageDialog
(
makVrv::DtDe
& de,
QWidget
* parent,
const
Qt::WindowFlags& flags = 0);
55
56
//DTOR
57
virtual
~DtSimulationCommandMessageDialog
();
58
59
public
:
60
virtual
void
setMessageText
(
const
QString&);
61
virtual
QString
messageText
()
const
;
62
63
protected
:
64
virtual
QWidget
*
contents
(
const
std::vector<makVrv::DtSimEntry*>& data);
65
66
virtual
void
sendRequest
();
67
68
virtual
bool
wantsSelectionOfObjectInCommandMode
()
const
;
69
virtual
void
setupStatement
(
const
DtSimStatement
* stmt);
70
71
public
:
72
QWidget
*
myCanvas
;
73
QHBoxLayout*
myCanvasLayout
;
74
QLabel
*
myMessageLabel
;
75
QLineEdit
*
myMessage
;;
76
};
77
78
class
DtSimulationCommandMessageCreator
:
public
makVrf::DtVrfSimulationCommandDialogCreator
79
{
80
public
:
81
virtual
makVrf::DtSimulationCommandDialogInterface
*
create
(
makVrv::DtDe
&,
QWidget
* parent);
82
virtual
bool
supportsType
(
makVrv::DtDe
&,
const
DtSimCommandMessageType
&,
const
DtSimStatement
*)
const
;
83
virtual
std::string
objectNameFromStatement
(
const
DtSimCommand
*)
const
;
84
};
85
}
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
)