ImHex/source/main.cpp

41 lines
1.2 KiB
C++
Raw Normal View History

#include "window.hpp"
#include "lang/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-14 20:16:03 +00:00
#include "views/view_help.hpp"
2020-11-14 23:46:38 +00:00
#include "views/view_tools.hpp"
2020-11-15 00:42:43 +00:00
#include "views/view_strings.hpp"
2020-11-20 23:12:58 +00:00
#include "views/view_data_inspector.hpp"
#include "views/view_disassembler.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::lang::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);
2020-11-20 23:12:58 +00:00
window.addView<hex::ViewDataInspector>(dataProvider);
window.addView<hex::ViewHashes>(dataProvider);
window.addView<hex::ViewInformation>(dataProvider);
2020-11-15 00:42:43 +00:00
window.addView<hex::ViewStrings>(dataProvider);
window.addView<hex::ViewDisassembler>(dataProvider);
2020-11-14 23:46:38 +00:00
window.addView<hex::ViewTools>();
window.addView<hex::ViewHelp>();
window.loop();
return 0;
}