1
0
mirror of synced 2024-11-27 17:10:51 +01:00
ImHex/plugins/builtin/include/content/views/view_pattern_data.hpp

26 lines
515 B
C++
Raw Normal View History

2020-11-10 21:31:04 +01:00
#pragma once
#include <hex.hpp>
#include <hex/ui/view.hpp>
2020-11-10 21:31:04 +01:00
#include <ui/pattern_drawer.hpp>
#include <hex/providers/provider.hpp>
2020-11-10 21:31:04 +01:00
#include <vector>
#include <tuple>
2021-12-07 22:47:41 +01:00
namespace hex::plugin::builtin {
2020-11-10 21:31:04 +01:00
class ViewPatternData : public View {
public:
ViewPatternData();
2020-11-11 09:28:44 +01:00
~ViewPatternData() override;
2020-11-10 21:31:04 +01:00
void drawContent() override;
2020-11-10 21:31:04 +01:00
private:
std::map<hex::prv::Provider *, std::vector<pl::ptrn::Pattern*>> m_sortedPatterns;
ui::PatternDrawer m_patternDrawer;
2020-11-10 21:31:04 +01:00
};
}