Made SnapshotManager signal more generic
This commit is contained in:
@@ -168,7 +168,7 @@ namespace Bloom::Widgets
|
|||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
emit this->captureTaskCreated(captureTask);
|
emit this->insightWorkerTaskCreated(captureTask);
|
||||||
|
|
||||||
InsightWorker::queueTask(captureTask);
|
InsightWorker::queueTask(captureTask);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
#include "src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/FocusedMemoryRegion.hpp"
|
#include "src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/FocusedMemoryRegion.hpp"
|
||||||
#include "src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/ExcludedMemoryRegion.hpp"
|
#include "src/Insight/UserInterfaces/InsightWindow/Widgets/TargetMemoryInspectionPane/ExcludedMemoryRegion.hpp"
|
||||||
|
|
||||||
#include "src/Insight/InsightWorker/Tasks/CaptureMemorySnapshot.hpp"
|
#include "src/Insight/InsightWorker/Tasks/InsightWorkerTask.hpp"
|
||||||
|
|
||||||
#include "./CreateSnapshotWindow/CreateSnapshotWindow.hpp"
|
#include "./CreateSnapshotWindow/CreateSnapshotWindow.hpp"
|
||||||
#include "MemorySnapshotItem.hpp"
|
#include "MemorySnapshotItem.hpp"
|
||||||
@@ -42,7 +42,7 @@ namespace Bloom::Widgets
|
|||||||
);
|
);
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
void captureTaskCreated(const QSharedPointer<CaptureMemorySnapshot>& task);
|
void insightWorkerTaskCreated(const QSharedPointer<InsightWorkerTask>& task);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void resizeEvent(QResizeEvent* event) override;
|
void resizeEvent(QResizeEvent* event) override;
|
||||||
|
|||||||
@@ -199,9 +199,10 @@ namespace Bloom::Widgets
|
|||||||
|
|
||||||
QObject::connect(
|
QObject::connect(
|
||||||
this->snapshotManager,
|
this->snapshotManager,
|
||||||
&SnapshotManager::captureTaskCreated,
|
&SnapshotManager::insightWorkerTaskCreated,
|
||||||
this,
|
this,
|
||||||
&TargetMemoryInspectionPane::onCaptureMemoryTaskCreated
|
&TargetMemoryInspectionPane::onSubtaskCreated
|
||||||
|
);
|
||||||
);
|
);
|
||||||
|
|
||||||
QObject::connect(
|
QObject::connect(
|
||||||
@@ -630,7 +631,7 @@ namespace Bloom::Widgets
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void TargetMemoryInspectionPane::onCaptureMemoryTaskCreated(const QSharedPointer<CaptureMemorySnapshot>& task) {
|
void TargetMemoryInspectionPane::onSubtaskCreated(const QSharedPointer<InsightWorkerTask>& task) {
|
||||||
this->setTaskProgressIndicator(task);
|
this->setTaskProgressIndicator(task);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -19,7 +19,7 @@
|
|||||||
#include "src/Insight/UserInterfaces/InsightWindow/Widgets/Label.hpp"
|
#include "src/Insight/UserInterfaces/InsightWindow/Widgets/Label.hpp"
|
||||||
#include "src/Insight/UserInterfaces/InsightWindow/Widgets/TaskProgressIndicator/TaskProgressIndicator.hpp"
|
#include "src/Insight/UserInterfaces/InsightWindow/Widgets/TaskProgressIndicator/TaskProgressIndicator.hpp"
|
||||||
|
|
||||||
#include "src/Insight/InsightWorker/Tasks/CaptureMemorySnapshot.hpp"
|
#include "src/Insight/InsightWorker/Tasks/InsightWorkerTask.hpp"
|
||||||
|
|
||||||
#include "HexViewerWidget/HexViewerWidget.hpp"
|
#include "HexViewerWidget/HexViewerWidget.hpp"
|
||||||
#include "MemoryRegionManager/MemoryRegionManagerWindow.hpp"
|
#include "MemoryRegionManager/MemoryRegionManagerWindow.hpp"
|
||||||
@@ -105,7 +105,7 @@ namespace Bloom::Widgets
|
|||||||
Bloom::Targets::TargetMemoryType memoryType,
|
Bloom::Targets::TargetMemoryType memoryType,
|
||||||
Targets::TargetMemoryAddressRange addressRange
|
Targets::TargetMemoryAddressRange addressRange
|
||||||
);
|
);
|
||||||
void onCaptureMemoryTaskCreated(const QSharedPointer<CaptureMemorySnapshot>& task);
|
void onSubtaskCreated(const QSharedPointer<InsightWorkerTask>& task);
|
||||||
void setTaskProgressIndicator(const QSharedPointer<InsightWorkerTask>& task);
|
void setTaskProgressIndicator(const QSharedPointer<InsightWorkerTask>& task);
|
||||||
void setStaleData(bool staleData);
|
void setStaleData(bool staleData);
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user