feat: Replace useless constants view with a constant search option in the Find view

This commit is contained in:
WerWolv
2025-12-02 23:02:44 +01:00
parent da0c1674a6
commit d4df465633
27 changed files with 218 additions and 291 deletions

View File

@@ -0,0 +1,27 @@
#pragma once
#include <string>
#include <vector>
#include <hex/helpers/binary_pattern.hpp>
namespace hex::plugin::builtin {
struct Constant {
std::string name;
std::string description;
BinaryPattern value;
};
class ConstantGroup {
public:
explicit ConstantGroup(const std::fs::path &path);
[[nodiscard]] const std::string& getName() const { return m_name; }
const std::vector<Constant>& getConstants() const { return m_constants; }
private:
std::string m_name;
std::vector<Constant> m_constants;
};
}