#pragma once #include "views/view.hpp" #include #include #include #include namespace hex { namespace prv { class Provider; } class ViewInformation : public View { public: explicit ViewInformation(prv::Provider* &dataProvider); ~ViewInformation() override; void createView() override; void createMenu() override; private: prv::Provider* &m_dataProvider; bool m_windowOpen = true; bool m_dataValid = false; u32 m_blockSize = 0; float m_averageEntropy = 0; float m_highestBlockEntropy = 0; std::vector m_blockEntropy; std::array m_valueCounts = { 0 }; bool m_shouldInvalidate = false; std::pair m_analyzedRegion = { 0, 0 }; std::string m_fileDescription; std::string m_mimeType; }; }