mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-04-02 21:47:40 -05:00
Added math evaluator / calculator to tools window
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
|
||||
#include "imgui.h"
|
||||
|
||||
#include "event.hpp"
|
||||
#include "helpers/event.hpp"
|
||||
|
||||
#include <functional>
|
||||
#include <string>
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
#include <vector>
|
||||
#include <list>
|
||||
|
||||
#include "utils.hpp"
|
||||
#include "helpers/utils.hpp"
|
||||
|
||||
namespace hex {
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
#include "utils.hpp"
|
||||
#include "helpers/utils.hpp"
|
||||
#include "views/view.hpp"
|
||||
|
||||
#include "imgui_memory_editor.h"
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
|
||||
#include "imgui.h"
|
||||
#include "views/view.hpp"
|
||||
#include "helpers/math_evaluator.hpp"
|
||||
|
||||
#include <array>
|
||||
#include <string>
|
||||
@@ -33,10 +34,16 @@ namespace hex {
|
||||
|
||||
std::array<float, 4> m_pickedColor;
|
||||
|
||||
MathEvaluator m_mathEvaluator;
|
||||
std::vector<long double> m_mathHistory;
|
||||
std::string m_lastMathError;
|
||||
char *m_mathInput = nullptr;
|
||||
|
||||
void drawDemangler();
|
||||
void drawASCIITable();
|
||||
void drawRegexReplacer();
|
||||
void drawColorPicker();
|
||||
void drawMathEvaluator();
|
||||
};
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user