Handling programming mode enabled/disabled events in Insight
This commit is contained in:
@@ -85,6 +85,20 @@ namespace Bloom::Widgets
|
||||
&TargetMemoryInspectionPane::onTargetStateChanged
|
||||
);
|
||||
|
||||
QObject::connect(
|
||||
&insightWorker,
|
||||
&InsightWorker::programmingModeEnabled,
|
||||
this,
|
||||
&TargetMemoryInspectionPane::onProgrammingModeEnabled
|
||||
);
|
||||
|
||||
QObject::connect(
|
||||
&insightWorker,
|
||||
&InsightWorker::programmingModeDisabled,
|
||||
this,
|
||||
&TargetMemoryInspectionPane::onProgrammingModeDisabled
|
||||
);
|
||||
|
||||
QObject::connect(
|
||||
this->hexViewerWidget->refreshButton,
|
||||
&QToolButton::clicked,
|
||||
@@ -295,4 +309,12 @@ namespace Bloom::Widgets
|
||||
void TargetMemoryInspectionPane::onMemoryRegionsChange() {
|
||||
this->hexViewerWidget->refreshRegions();
|
||||
}
|
||||
|
||||
void TargetMemoryInspectionPane::onProgrammingModeEnabled() {
|
||||
this->hexViewerWidget->setDisabled(true);
|
||||
}
|
||||
|
||||
void TargetMemoryInspectionPane::onProgrammingModeDisabled() {
|
||||
this->hexViewerWidget->setDisabled(this->targetState != Targets::TargetState::STOPPED);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -63,5 +63,7 @@ namespace Bloom::Widgets
|
||||
void onMemoryRead(const Targets::TargetMemoryBuffer& buffer);
|
||||
void openMemoryRegionManagerWindow();
|
||||
void onMemoryRegionsChange();
|
||||
void onProgrammingModeEnabled();
|
||||
void onProgrammingModeDisabled();
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user