2020-11-10 15:26:38 +01:00
|
|
|
#include "window.hpp"
|
|
|
|
|
2020-11-10 21:31:04 +01:00
|
|
|
#include "views/highlight.hpp"
|
2020-11-10 15:26:38 +01:00
|
|
|
#include "views/view_hexeditor.hpp"
|
|
|
|
#include "views/view_pattern.hpp"
|
2020-11-10 21:31:04 +01:00
|
|
|
#include "views/view_pattern_data.hpp"
|
2020-11-11 00:13:09 +01:00
|
|
|
#include "views/view_hashes.hpp"
|
2020-11-12 09:38:52 +01:00
|
|
|
#include "views/view_information.hpp"
|
2020-11-10 21:31:04 +01:00
|
|
|
|
2020-11-11 09:18:35 +01:00
|
|
|
#include "providers/provider.hpp"
|
|
|
|
|
2020-11-10 21:31:04 +01:00
|
|
|
#include <vector>
|
2020-11-10 15:26:38 +01:00
|
|
|
|
|
|
|
int main() {
|
|
|
|
hex::Window window;
|
|
|
|
|
2020-11-10 21:31:04 +01:00
|
|
|
// Shared Data
|
|
|
|
std::vector<hex::Highlight> highlights;
|
2020-11-11 09:18:35 +01:00
|
|
|
hex::prv::Provider *dataProvider = nullptr;
|
2020-11-10 21:31:04 +01:00
|
|
|
|
|
|
|
// Create views
|
2020-11-11 09:18:35 +01:00
|
|
|
window.addView<hex::ViewHexEditor>(dataProvider, highlights);
|
2020-11-13 13:06:22 +01:00
|
|
|
window.addView<hex::ViewPattern>(dataProvider, highlights);
|
2020-11-11 09:18:35 +01:00
|
|
|
window.addView<hex::ViewPatternData>(dataProvider, highlights);
|
|
|
|
window.addView<hex::ViewHashes>(dataProvider);
|
2020-11-12 09:38:52 +01:00
|
|
|
window.addView<hex::ViewInformation>(dataProvider);
|
2020-11-10 15:26:38 +01:00
|
|
|
|
|
|
|
window.loop();
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|