summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-03-12 21:19:52 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-03-12 21:19:52 -0500
commit078cfe2e28833be11c4d2da0f0ee3c3de8edc215 (patch)
tree469ed55f8989cf37851404eb4715c218d9544e87
parent2c95bfffaf198f5e6ce99e0c26ab7ffb0269f028 (diff)
downloadulab-078cfe2e28833be11c4d2da0f0ee3c3de8edc215.tar.gz
ulab-078cfe2e28833be11c4d2da0f0ee3c3de8edc215.zip
Properly handle IDLE response while in programming state
Set sensible programmer minimum size
-rw-r--r--clients/tde/src/part/fpgaprogram/part.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/clients/tde/src/part/fpgaprogram/part.cpp b/clients/tde/src/part/fpgaprogram/part.cpp
index eab8c06..a7edbe2 100644
--- a/clients/tde/src/part/fpgaprogram/part.cpp
+++ b/clients/tde/src/part/fpgaprogram/part.cpp
@@ -104,6 +104,7 @@ FPGAProgramPart::FPGAProgramPart(TQWidget *parentWidget, const char *widgetName,
m_base = new FPGAProgramBase(widget());
// Initialize widgets
+ m_base->setMinimumSize(500,350);
m_base->programmingLogBox->setReadOnly(true);
connect(m_base->programRunButton, SIGNAL(clicked()), this, SLOT(programRunButtonClicked()));
connect(m_base->clearProgrammingLogButton, SIGNAL(clicked()), this, SLOT(clearProgrammingLogBox()));
@@ -491,6 +492,13 @@ void FPGAProgramPart::mainEventLoop() {
KMessageBox::error(0, i18n("<qt>Unknown error</qt>"), i18n("Program Failed"));
processLockouts();
}
+ else if (result == "IDLE") {
+ m_socket->clearFrameTail();
+ setTickerMessage(i18n("Initializing..."));
+ // Request status
+ ds << TQString("STATUS");
+ m_socket->writeEndOfFrame();
+ }
else {
// Unknown response
// Request status