1
0
mirror of synced 2024-11-18 12:57:12 +01:00
ImHex/include/views/view_constants.hpp
2021-06-26 01:18:33 +02:00

39 lines
729 B
C++

#pragma once
#include <hex/views/view.hpp>
#include <cstdio>
#include <string>
namespace hex {
enum class ConstantType {
Int10,
Int16BigEndian,
Int16LittleEndian
};
struct Constant {
std::string name, description;
std::string category;
ConstantType type;
std::string value;
};
class ViewConstants : public View {
public:
explicit ViewConstants();
~ViewConstants() override;
void drawContent() override;
void drawMenu() override;
private:
void reloadConstants();
std::vector<Constant> m_constants;
std::vector<Constant*> m_filteredConstants;
std::string m_search;
};
}