-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathEmulatorShell.cpp
155 lines (128 loc) · 5.4 KB
/
EmulatorShell.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
/****************************************************************************
** Form implementation generated from reading ui file 'EmulatorShell.ui'
**
** Created: Fri Sep 26 22:52:11 2003
** by: The User Interface Compiler (uic)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/
#include "EmulatorShell.h"
#include <qcombobox.h>
#include <qlabel.h>
#include <qmultilineedit.h>
#include <qpushbutton.h>
#include <qlayout.h>
#include <qvariant.h>
#include <qtooltip.h>
#include <qwhatsthis.h>
/*
* Constructs a EmulatorShell which is a child of 'parent', with the
* name 'name' and widget flags set to 'f'
*
* The dialog will by default be modeless, unless you set 'modal' to
* TRUE to construct a modal dialog.
*/
EmulatorShell::EmulatorShell( QWidget* parent, const char* name, bool modal, WFlags fl )
: QDialog( parent, name, modal, fl )
{
if ( !name )
setName( "EmulatorShell" );
resize( 669, 301 );
setCaption( tr( "Nuance Emulator Shell" ) );
TextLabel3_2 = new QLabel( this, "TextLabel3_2" );
TextLabel3_2->setGeometry( QRect( 550, 200, 80, 16 ) );
TextLabel3_2->setText( tr( "Refresh Rate" ) );
TextLabel3 = new QLabel( this, "TextLabel3" );
TextLabel3->setGeometry( QRect( 430, 200, 80, 16 ) );
TextLabel3->setText( tr( "MPE Select" ) );
TextLabel2 = new QLabel( this, "TextLabel2" );
TextLabel2->setGeometry( QRect( 90, 260, 60, 21 ) );
TextLabel2->setText( tr( "STDOOUT" ) );
TextLabel2_2 = new QLabel( this, "TextLabel2_2" );
TextLabel2_2->setGeometry( QRect( 290, 260, 60, 21 ) );
TextLabel2_2->setText( tr( "STDERR" ) );
ebStdOut = new QMultiLineEdit( this, "ebStdOut" );
ebStdOut->setGeometry( QRect( 10, 10, 200, 240 ) );
ebStdOut->setReadOnly( TRUE );
ebStdErr = new QMultiLineEdit( this, "ebStdErr" );
ebStdErr->setGeometry( QRect( 220, 10, 200, 241 ) );
ebStdErr->setReadOnly( TRUE );
cbLoadFile = new QPushButton( this, "cbLoadFile" );
cbLoadFile->setGeometry( QRect( 430, 10, 111, 51 ) );
cbLoadFile->setText( tr( "Load File" ) );
cbSingleStepMPE = new QPushButton( this, "cbSingleStepMPE" );
cbSingleStepMPE->setGeometry( QRect( 550, 130, 111, 51 ) );
cbSingleStepMPE->setText( tr( "Single Step" ) );
cbStartMPE = new QPushButton( this, "cbStartMPE" );
cbStartMPE->setGeometry( QRect( 430, 130, 111, 51 ) );
cbStartMPE->setText( tr( "Start MPE" ) );
cbStopMPE = new QPushButton( this, "cbStopMPE" );
cbStopMPE->setGeometry( QRect( 550, 70, 111, 51 ) );
cbStopMPE->setText( tr( "Stop" ) );
cbResetMPE = new QPushButton( this, "cbResetMPE" );
cbResetMPE->setGeometry( QRect( 430, 70, 111, 51 ) );
cbResetMPE->setText( tr( "Reset MPE" ) );
cbRunMPE = new QPushButton( this, "cbRunMPE" );
cbRunMPE->setGeometry( QRect( 550, 10, 111, 51 ) );
cbRunMPE->setText( tr( "Run" ) );
ddlbMPESelect = new QComboBox( FALSE, this, "ddlbMPESelect" );
ddlbMPESelect->insertItem( tr( "MPE0" ) );
ddlbMPESelect->insertItem( tr( "MPE1" ) );
ddlbMPESelect->insertItem( tr( "MPE2" ) );
ddlbMPESelect->insertItem( tr( "MPE3" ) );
ddlbMPESelect->setGeometry( QRect( 430, 220, 80, 20 ) );
ddlbRefreshRate = new QComboBox( FALSE, this, "ddlbRefreshRate" );
ddlbRefreshRate->insertItem( tr( "15 Hz" ) );
ddlbRefreshRate->insertItem( tr( "30 Hz" ) );
ddlbRefreshRate->insertItem( tr( "45 Hz" ) );
ddlbRefreshRate->insertItem( tr( "60 Hz" ) );
ddlbRefreshRate->setGeometry( QRect( 550, 220, 80, 20 ) );
// signals and slots connections
connect( cbLoadFile, SIGNAL( clicked() ), this, SLOT( OnLoadFile() ) );
connect( cbRunMPE, SIGNAL( clicked() ), this, SLOT( OnRunMPE() ) );
connect( cbResetMPE, SIGNAL( clicked() ), this, SLOT( OnResetMPE() ) );
connect( cbStopMPE, SIGNAL( clicked() ), this, SLOT( OnStopMPE() ) );
connect( cbStartMPE, SIGNAL( clicked() ), this, SLOT( OnStartMPE() ) );
connect( cbSingleStepMPE, SIGNAL( clicked() ), this, SLOT( OnSingleStepMPE() ) );
connect( ddlbMPESelect, SIGNAL( activated(int) ), this, SLOT( OnMPESelect(int) ) );
connect( ddlbRefreshRate, SIGNAL( activated(int) ), this, SLOT( OnRefreshRate(int) ) );
}
/*
* Destroys the object and frees any allocated resources
*/
EmulatorShell::~EmulatorShell()
{
// no need to delete child widgets, Qt does it all for us
}
void EmulatorShell::OnMPESelect(int)
{
qWarning( "EmulatorShell::OnMPESelect(int): Not implemented yet!" );
}
void EmulatorShell::OnRefreshRate(int)
{
qWarning( "EmulatorShell::OnRefreshRate(int): Not implemented yet!" );
}
void EmulatorShell::OnLoadFile()
{
qWarning( "EmulatorShell::OnLoadFile(): Not implemented yet!" );
}
void EmulatorShell::OnRunMPE()
{
qWarning( "EmulatorShell::OnRunMPE(): Not implemented yet!" );
}
void EmulatorShell::OnStopMPE()
{
qWarning( "EmulatorShell::OnStopMPE(): Not implemented yet!" );
}
void EmulatorShell::OnSingleStepMPE()
{
qWarning( "EmulatorShell::OnSingleStepMPE(): Not implemented yet!" );
}
void EmulatorShell::OnStartMPE()
{
qWarning( "EmulatorShell::OnStartMPE(): Not implemented yet!" );
}
void EmulatorShell::OnResetMPE()
{
qWarning( "EmulatorShell::OnResetMPE(): Not implemented yet!" );
}