ImHex/source/main.cpp

32 lines
811 B
C++
Raw Normal View History

#include "window.hpp"
#include "views/pattern_data.hpp"
#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 "views/view_hashes.hpp"
#include "views/view_information.hpp"
2020-11-10 20:31:04 +00:00
#include "providers/provider.hpp"
2020-11-10 20:31:04 +00:00
#include <vector>
int main() {
hex::Window window;
2020-11-10 20:31:04 +00:00
// Shared Data
std::vector<hex::PatternData*> patternData;
hex::prv::Provider *dataProvider = nullptr;
2020-11-10 20:31:04 +00:00
// Create views
window.addView<hex::ViewHexEditor>(dataProvider, patternData);
window.addView<hex::ViewPattern>(dataProvider, patternData);
window.addView<hex::ViewPatternData>(dataProvider, patternData);
window.addView<hex::ViewHashes>(dataProvider);
window.addView<hex::ViewInformation>(dataProvider);
window.loop();
return 0;
}