2020-11-10 14:26:38 +00:00
|
|
|
#include "window.hpp"
|
|
|
|
|
2020-11-14 13:42:21 +00:00
|
|
|
#include "views/pattern_data.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"
|
2020-11-10 23:13:09 +00:00
|
|
|
#include "views/view_hashes.hpp"
|
2020-11-12 08:38:52 +00:00
|
|
|
#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-10 20:31:04 +00:00
|
|
|
|
2020-11-11 08:18:35 +00:00
|
|
|
#include "providers/provider.hpp"
|
|
|
|
|
2020-11-10 20:31:04 +00:00
|
|
|
#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
|
2020-11-14 13:42:21 +00:00
|
|
|
std::vector<hex::PatternData*> patternData;
|
2020-11-11 08:18:35 +00:00
|
|
|
hex::prv::Provider *dataProvider = nullptr;
|
2020-11-10 20:31:04 +00:00
|
|
|
|
|
|
|
// Create views
|
2020-11-14 13:42:21 +00:00
|
|
|
window.addView<hex::ViewHexEditor>(dataProvider, patternData);
|
|
|
|
window.addView<hex::ViewPattern>(dataProvider, patternData);
|
|
|
|
window.addView<hex::ViewPatternData>(dataProvider, patternData);
|
2020-11-11 08:18:35 +00:00
|
|
|
window.addView<hex::ViewHashes>(dataProvider);
|
2020-11-12 08:38:52 +00:00
|
|
|
window.addView<hex::ViewInformation>(dataProvider);
|
2020-11-14 20:16:03 +00:00
|
|
|
window.addView<hex::ViewHelp>();
|
2020-11-14 23:46:38 +00:00
|
|
|
window.addView<hex::ViewTools>();
|
2020-11-10 14:26:38 +00:00
|
|
|
|
|
|
|
window.loop();
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|