Added math evaluator / calculator to tools window

This commit is contained in:
WerWolv
2020-11-28 21:55:52 +01:00
parent 0f6e276113
commit c90ef343c1
27 changed files with 647 additions and 26 deletions

View File

@@ -4,7 +4,7 @@
#include "imgui.h"
#include "event.hpp"
#include "helpers/event.hpp"
#include <functional>
#include <string>

View File

@@ -5,7 +5,7 @@
#include <vector>
#include <list>
#include "utils.hpp"
#include "helpers/utils.hpp"
namespace hex {

View File

@@ -1,6 +1,6 @@
#pragma once
#include "utils.hpp"
#include "helpers/utils.hpp"
#include "views/view.hpp"
#include "imgui_memory_editor.h"

View File

@@ -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();
};
}