1
0
mirror of synced 2024-12-04 20:17:57 +01:00
ImHex/plugins/builtin/include/content/views/view_information.hpp

36 lines
859 B
C++
Raw Normal View History

#pragma once
#include <hex/api/content_registry.hpp>
#include <hex/api/task_manager.hpp>
#include <hex/ui/view.hpp>
#include <ui/widgets.hpp>
2021-12-07 22:47:41 +01:00
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;
};
}