Refactor, added a pattern data display

This commit is contained in:
WerWolv
2020-11-10 21:31:04 +01:00
parent 01b4ac8661
commit 35946564a6
13 changed files with 481 additions and 317 deletions

View File

@@ -1,13 +1,24 @@
#include "window.hpp"
#include "views/highlight.hpp"
#include "views/view_hexeditor.hpp"
#include "views/view_pattern.hpp"
#include "views/view_pattern_data.hpp"
#include <tuple>
#include <vector>
int main() {
hex::Window window;
auto* hexEditor = window.addView<hex::ViewHexEditor>();
window.addView<hex::ViewPattern>(hexEditor);
// Shared Data
std::vector<hex::Highlight> highlights;
FILE *file = nullptr;
// Create views
window.addView<hex::ViewHexEditor>(file, highlights);
window.addView<hex::ViewPattern>(highlights);
window.addView<hex::ViewPatternData>(file, highlights);
window.loop();