1
0
mirror of synced 2024-12-23 21:14:51 +01:00
ImHex/plugins/builtin/include/content/views/view_information.hpp

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;
};
}