1
0
mirror of synced 2024-12-18 18:45:53 +01:00
ImHex/plugins/hashes/include/content/views/view_hashes.hpp

29 lines
659 B
C++
Raw Normal View History

#pragma once
#include <hex/api/content_registry.hpp>
#include <hex/ui/view.hpp>
namespace hex::plugin::hashes {
class ViewHashes : public View::Window {
public:
explicit ViewHashes();
2020-11-11 09:28:44 +01:00
~ViewHashes() override;
void drawContent() override;
private:
bool importHashes(prv::Provider *provider, const nlohmann::json &json);
bool exportHashes(prv::Provider *provider, nlohmann::json &json);
private:
ContentRegistry::Hashes::Hash *m_selectedHash = nullptr;
std::string m_newHashName;
PerProvider<std::vector<ContentRegistry::Hashes::Hash::Function>> m_hashFunctions;
};
}