1
0
mirror of synced 2024-11-15 03:27:40 +01:00
ImHex/source/main.cpp

32 lines
801 B
C++
Raw Normal View History

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