2020-11-10 14:26:38 +00:00
|
|
|
#include "window.hpp"
|
|
|
|
|
2020-11-10 20:31:04 +00:00
|
|
|
#include "views/highlight.hpp"
|
2020-11-10 14:26:38 +00:00
|
|
|
#include "views/view_hexeditor.hpp"
|
|
|
|
#include "views/view_pattern.hpp"
|
2020-11-10 20:31:04 +00:00
|
|
|
#include "views/view_pattern_data.hpp"
|
|
|
|
|
|
|
|
#include <tuple>
|
|
|
|
#include <vector>
|
2020-11-10 14:26:38 +00:00
|
|
|
|
|
|
|
int main() {
|
|
|
|
hex::Window window;
|
|
|
|
|
2020-11-10 20:31:04 +00:00
|
|
|
// 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);
|
2020-11-10 14:26:38 +00:00
|
|
|
|
|
|
|
window.loop();
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|