Added event system and make use of it for data invalidation

This commit is contained in:
WerWolv
2020-11-12 09:38:52 +01:00
parent e3df658b4a
commit 3a6d19eca4
13 changed files with 355 additions and 179 deletions

View File

@@ -5,7 +5,7 @@
#include "views/view_pattern.hpp"
#include "views/view_pattern_data.hpp"
#include "views/view_hashes.hpp"
#include "views/view_entropy.hpp"
#include "views/view_information.hpp"
#include "providers/provider.hpp"
@@ -23,12 +23,9 @@ int main() {
window.addView<hex::ViewPattern>(highlights);
window.addView<hex::ViewPatternData>(dataProvider, highlights);
window.addView<hex::ViewHashes>(dataProvider);
window.addView<hex::ViewEntropy>(dataProvider);
window.addView<hex::ViewInformation>(dataProvider);
window.loop();
if (dataProvider != nullptr)
delete dataProvider;
return 0;
}