36 lines
859 B
C++
36 lines
859 B
C++
#pragma once
|
|
|
|
#include <hex/api/content_registry.hpp>
|
|
#include <hex/api/task_manager.hpp>
|
|
#include <hex/ui/view.hpp>
|
|
#include <ui/widgets.hpp>
|
|
|
|
namespace hex::plugin::builtin {
|
|
|
|
class ViewInformation : public View::Window {
|
|
public:
|
|
explicit ViewInformation();
|
|
~ViewInformation() override = default;
|
|
|
|
void drawContent() override;
|
|
|
|
private:
|
|
void analyze();
|
|
|
|
struct AnalysisData {
|
|
bool valid = false;
|
|
|
|
TaskHolder task;
|
|
const prv::Provider *analyzedProvider = nullptr;
|
|
Region analysisRegion = { 0, 0 };
|
|
|
|
ui::RegionType selectionType = ui::RegionType::EntireData;
|
|
|
|
std::list<std::unique_ptr<ContentRegistry::DataInformation::InformationSection>> informationSections;
|
|
};
|
|
|
|
PerProvider<AnalysisData> m_analysisData;
|
|
};
|
|
|
|
}
|