1
0
mirror of synced 2024-11-18 12:57:12 +01:00
ImHex/include/views/view_tools.hpp

42 lines
824 B
C++
Raw Normal View History

2020-11-15 00:46:38 +01:00
#pragma once
#include <hex.hpp>
#include "imgui.h"
#include "views/view.hpp"
#include <array>
#include <string>
2020-11-15 00:46:38 +01:00
namespace hex {
namespace prv { class Provider; }
class ViewTools : public View {
public:
ViewTools();
~ViewTools() override;
void createView() override;
void createMenu() override;
private:
char *m_mangledBuffer = nullptr;
char *m_demangledName = nullptr;
2020-11-15 02:50:56 +01:00
bool m_asciiTableShowOctal = false;
char *m_regexInput = nullptr;
char *m_regexPattern = nullptr;
char *m_replacePattern = nullptr;
std::string m_regexOutput;
std::array<float, 4> m_pickedColor;
2020-11-15 02:50:56 +01:00
void drawDemangler();
void drawASCIITable();
void drawRegexReplacer();
void drawColorPicker();
2020-11-15 00:46:38 +01:00
};
}