##// END OF EJS Templates
Functions added to the plugin to get the number of CCSDS packets...
Functions added to the plugin to get the number of CCSDS packets transmitted (linked to the lfrcontrol plugin counter of TC transmitted, it is possible to flush the TC transmission before changing the spacewire link in use)

File last commit:

r25:8fdbbdd7a3a4 default
r40:cda6b4e8adc1 Patch 3 from Paul on spwplugin default
Show More
gr_esb_ui.cpp
31 lines | 920 B | text/x-c | CppLexer
#include "gr_esb_ui.h"
#include "ui_gr_esb_ui.h"
#include <QWebView>
GR_ESB_ui::GR_ESB_ui(QWidget *parent) :
QWidget(parent),
ui(new Ui::GR_ESB_ui)
{
ui->setupUi(this);
connect(this->ui->GRESB_IP_lineEdit,SIGNAL(textChanged(QString)),this,SLOT(changeIp(QString)));
connect(this->ui->GRESB_Vlink_CmBx,SIGNAL(currentIndexChanged(QString)),this,SIGNAL(vlinkchanged(QString)));
connect(this->ui->connectQpb,SIGNAL(clicked()),this,SIGNAL(connectClicked()));
}
void GR_ESB_ui::changeIp(QString ip)
{
this->ui->WebView->load(QUrl("http://"+ip));
emit this->ipchanged(ip);
}
void GR_ESB_ui::lock(bool lock)
{
this->ui->GRESB_IP_lineEdit->setDisabled(lock);
this->ui->GRESB_LinkNum_CmBx->setDisabled(lock);
this->ui->GRESB_Vlink_CmBx->setDisabled(lock);
if(lock)
this->ui->connectQpb->setText("Disconnect");
else
this->ui->connectQpb->setText("Connect");
}