#746: Velocidad de conexión por defecto configurable en variable {{{DEFAULTSPEED}}} del fichero {{{engine.cfg}}}.
git-svn-id: https://opengnsys.es/svn/branches/version1.1@5293 a21b9725-9963-47de-94b9-378ad31fedc9remotes/github/master
parent
c646cde579
commit
e9b8eab0f5
|
@ -101,7 +101,8 @@ MainWindow::MainWindow(QWidget *parent)
|
|||
QString speed=readSpeed();
|
||||
m_speedInfo=new QLabel(speed);
|
||||
m_speedInfo->setAlignment(Qt::AlignCenter);
|
||||
if (speed.compare("1000Mb/s"))
|
||||
if(m_env.contains("DEFAULTSPEED") && m_env["DEFAULTSPEED"]!="")
|
||||
if(speed.compare(m_env["DEFAULTSPEED"])!=0)
|
||||
m_speedInfo->setStyleSheet("background-color: darkred; color: white; font-weight: bold;");
|
||||
// Clock
|
||||
m_clock=new DigitalClock(this);
|
||||
|
@ -136,6 +137,7 @@ MainWindow::MainWindow(QWidget *parent)
|
|||
connect(button,SIGNAL(clicked()),this,SLOT(slotCreateTerminal()));
|
||||
connect(m_webBar,SIGNAL(returnPressed()),this,SLOT(slotWebBarReturnPressed()));
|
||||
|
||||
// Open the log file for append
|
||||
if(m_env.contains("OGLOGFILE") && m_env["OGLOGFILE"]!="")
|
||||
{
|
||||
QFile* m_logfile=new QFile(m_env["OGLOGFILE"]);
|
||||
|
|
|
@ -3,8 +3,7 @@
|
|||
|
||||
#define COMMAND "command:"
|
||||
#define COMMAND_WITH_CONFIRMATION "commandwithconfirmation:"
|
||||
#define ENVIRONMENT "OGLOGFILE,ogactiveadmin"
|
||||
//#define ENVIRONMENT "OGIP,OGSERVER,OGLOG"
|
||||
#define ENVIRONMENT "OGLOGFILE,ogactiveadmin,DEFAULTSPEED"
|
||||
|
||||
#include <QWidget>
|
||||
#include <QProcess>
|
||||
|
|
Loading…
Reference in New Issue