mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-28 07:47:03 -05:00
Refactor, added a pattern data display
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user