#include <QtGui/QTextEdit>
#include <QtGui/QLineEdit>
#include <QtGui/QLayout>
#include <QtGui/QLabel>
using namespace makVrv;
using namespace makVrf;
, myDe(de)
{
myMainLayout = new QVBoxLayout(this);
myMainLayout->setContentsMargins(2, 2, 2, 2);
myMainLayout->addWidget(label);
myConsole = new QTextEdit(this);
myConsole->setReadOnly(true);
myMainLayout->addWidget(myConsole);
label =
new QLabel(tr(
"Command"),
this);
myMainLayout->addWidget(label);
myMainLayout->addWidget(myCommand);
connect(myCommand, SIGNAL(returnPressed()), this, SLOT(processCommand()));
setWindowTitle(tr("Remote Control Console"));
myCommand->setFocus();
resize(500, 400);
}
{
{
delete c;
++iter;
}
}
{
}
{
}
{
Commands::const_iterator iter =
myCommands.begin();
{
++iter;
}
}
{
QStringList l = c.split(" ");
if (!l.count())
{
return;
}
if (l[0].toLower() == "help")
{
return;
}
else
{
Commands::const_iterator iter =
myCommands.begin();
{
if ((*iter)->command().toLower() == l[0])
{
if ((*iter)->execute(myDe,
myCommand->text()))
{
}
return;
}
++iter;
}
}
print(tr(
"Command not recognized. Valid commands:\n"));
}
{
}
{
}
{
point.sprintf("%f,%f,%f", v.x(), v.y(), v.z());
}