Handling programming mode enabled/disabled events in Insight

This commit is contained in:
Nav
2022-06-05 17:00:56 +01:00
parent f33d6062a4
commit ddf53ab0f8
8 changed files with 97 additions and 0 deletions

View File

@@ -213,6 +213,20 @@ namespace Bloom
this,
&InsightWindow::onTargetProgramCounterUpdate
);
QObject::connect(
&(this->insightWorker),
&InsightWorker::programmingModeEnabled,
this,
&InsightWindow::onProgrammingModeEnabled
);
QObject::connect(
&(this->insightWorker),
&InsightWorker::programmingModeDisabled,
this,
&InsightWindow::onProgrammingModeDisabled
);
}
void InsightWindow::init(TargetDescriptor targetDescriptor) {
@@ -863,6 +877,15 @@ namespace Bloom
this->adjustMinimumSize();
}
void InsightWindow::onProgrammingModeEnabled() {
this->targetStatusLabel->setText("Programming Mode Enabled");
this->programCounterValueLabel->setText("-");
}
void InsightWindow::onProgrammingModeDisabled() {
this->onTargetStateUpdate(this->targetState);
}
void InsightWindow::recordInsightSettings() {
auto& projectSettings = this->insightProjectSettings;