VR-Forces 4.7 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
examples
guiThreadVrfRemoteController
remoteControlConsole.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 2018 MAK Technologies, Inc.
3
** All rights reserved.
4
******************************************************************************/
5
6
//\file remoteControlConsole.h
7
8
#pragma once
9
10
#include <
vrvUtil/signalslib.h
>
11
#include <matrix/vlVector.h>
12
#include <QtWidgets/QDialog>
13
14
namespace
makVrv
15
{
16
class
DtDe;
17
}
18
19
// The DtRemoteControlConsole class will allow the user to type in remote control console commands
20
// to manipulate the simulation. For a list of commands, type "help" at the command prompt
21
22
class
QVBoxLayout;
23
class
QTextEdit;
24
class
QLineEdit
;
25
class
DtRemoteControlCommand
;
26
27
class
DtRemoteControlConsole
:
public
QDialog
28
{
29
Q_OBJECT
30
31
public
:
32
DtRemoteControlConsole
(
makVrv::DtDe
& de, QWidget* parent);
33
34
virtual
~DtRemoteControlConsole
();
35
36
protected
:
37
virtual
void
addCommand
(
const
DtRemoteControlCommand
&);
38
39
//Prints a line of text to the console window. Will add CR/LF
40
virtual
void
print
(
const
QString&);
41
42
//Prints out all help for all commands
43
virtual
void
help
();
44
45
//Called when a command is complete, prints out command complete string
46
virtual
void
slot_onCommandComplete
(
const
QString&,
DtRemoteControlCommand
*);
47
48
//Called when the user clicks on the map to set the database location. Simply adds the point to the current command line
49
virtual
void
slot_onDatabaseLocationSet
(
const
DtVector
&);
50
51
protected
slots:
52
//Called when return is pressed in the command widget. Processes the command
53
virtual
void
processCommand
();
54
55
//Parse and execute the supplied command. Command will be the first item before the
56
//space
57
virtual
void
executeCommand
(
const
QString& command);
58
59
public
:
60
QVBoxLayout*
myMainLayout
;
61
QTextEdit*
myConsole
;
//The output of the command
62
QLineEdit
*
myCommand
;
//Command input
63
64
protected
:
65
makVrv::DtDe
&
myDe
;
66
67
typedef
std::vector<DtRemoteControlCommand*>
Commands
;
68
69
Commands
myCommands
;
70
};
Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (
www.mak.com
)