|
|
|
@ -854,20 +854,42 @@ void FPGAViewPart::processLockouts() {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Interface mode switching handlers
|
|
|
|
|
if (m_interfaceMode == BasicInterfaceMode) {
|
|
|
|
|
m_modeBasicEnabled->setChecked(true);
|
|
|
|
|
m_modeIntermediateEnabled->setChecked(false);
|
|
|
|
|
m_modeAdvancedEnabled->setChecked(false);
|
|
|
|
|
|
|
|
|
|
m_base->groupLCDDisplay->show();
|
|
|
|
|
m_base->groupLEDDisplay->hide();
|
|
|
|
|
m_base->groupBatchTest->hide();
|
|
|
|
|
m_base->groupDataProcessing->hide();
|
|
|
|
|
m_base->groupInputImage->hide();
|
|
|
|
|
m_base->groupOutputImage->hide();
|
|
|
|
|
}
|
|
|
|
|
if (m_interfaceMode == IntermediateInterfaceMode) {
|
|
|
|
|
m_modeBasicEnabled->setChecked(false);
|
|
|
|
|
m_modeIntermediateEnabled->setChecked(true);
|
|
|
|
|
m_modeAdvancedEnabled->setChecked(false);
|
|
|
|
|
|
|
|
|
|
m_base->groupLCDDisplay->show();
|
|
|
|
|
m_base->groupLEDDisplay->show();
|
|
|
|
|
m_base->groupBatchTest->show();
|
|
|
|
|
m_base->groupDataProcessing->hide();
|
|
|
|
|
m_base->groupInputImage->hide();
|
|
|
|
|
m_base->groupOutputImage->hide();
|
|
|
|
|
}
|
|
|
|
|
if (m_interfaceMode == AdvancedInterfaceMode) {
|
|
|
|
|
m_modeBasicEnabled->setChecked(false);
|
|
|
|
|
m_modeIntermediateEnabled->setChecked(false);
|
|
|
|
|
m_modeAdvancedEnabled->setChecked(true);
|
|
|
|
|
|
|
|
|
|
m_base->groupLCDDisplay->show();
|
|
|
|
|
m_base->groupLEDDisplay->show();
|
|
|
|
|
m_base->groupBatchTest->show();
|
|
|
|
|
m_base->groupDataProcessing->show();
|
|
|
|
|
m_base->groupInputImage->show();
|
|
|
|
|
m_base->groupOutputImage->show();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if ((m_base->batchTestInputFile->url() != "") && (m_base->batchTestOutputFile->url() != "") && (m_commHandlerMode == 0) && (m_connectionActiveAndValid == true)) {
|
|
|
|
@ -918,19 +940,26 @@ void FPGAViewPart::processLockouts() {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void FPGAViewPart::resizeToHint() {
|
|
|
|
|
resize(widget()->sizeHint());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void FPGAViewPart::switchToBasicMode() {
|
|
|
|
|
m_interfaceMode = BasicInterfaceMode;
|
|
|
|
|
processLockouts();
|
|
|
|
|
TQTimer::singleShot(0, this, SLOT(resizeToHint()));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void FPGAViewPart::switchToIntermediateMode() {
|
|
|
|
|
m_interfaceMode = IntermediateInterfaceMode;
|
|
|
|
|
processLockouts();
|
|
|
|
|
TQTimer::singleShot(0, this, SLOT(resizeToHint()));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void FPGAViewPart::switchToAdvancedMode() {
|
|
|
|
|
m_interfaceMode = AdvancedInterfaceMode;
|
|
|
|
|
processLockouts();
|
|
|
|
|
TQTimer::singleShot(0, this, SLOT(resizeToHint()));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void FPGAViewPart::connectionClosed() {
|
|
|
|
@ -1039,8 +1068,12 @@ printf("[RAJA DEBUG 400.0] Got '%s' from the server\n\r", response.ascii()); ffl
|
|
|
|
|
connToServerConnecting = false;
|
|
|
|
|
connect(m_socket, SIGNAL(readyRead()), m_socket, SLOT(processPendingData()));
|
|
|
|
|
connect(m_socket, SIGNAL(newDataReceived()), this, SLOT(updateDisplay()));
|
|
|
|
|
m_tickerState = 0;
|
|
|
|
|
m_commHandlerState = 0;
|
|
|
|
|
m_commHandlerMode = 0;
|
|
|
|
|
m_updateTimer->start(FPGA_COMM_TIMEOUT_MS, FALSE);
|
|
|
|
|
processLockouts();
|
|
|
|
|
updateDisplay();
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
else if (response == "ERRNOCONN") {
|
|
|
|
|