2020-11-10 21:31:04 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <hex.hpp>
|
|
|
|
|
2021-01-13 17:28:27 +01:00
|
|
|
#include <imgui.h>
|
|
|
|
#include <hex/views/view.hpp>
|
2020-11-10 21:31:04 +01:00
|
|
|
|
|
|
|
#include <vector>
|
|
|
|
#include <tuple>
|
|
|
|
#include <cstdio>
|
|
|
|
|
|
|
|
namespace hex {
|
|
|
|
|
2022-01-24 20:53:17 +01:00
|
|
|
namespace prv {
|
|
|
|
class Provider;
|
|
|
|
}
|
|
|
|
namespace lang {
|
|
|
|
class PatternData;
|
|
|
|
}
|
2020-11-11 09:28:44 +01:00
|
|
|
|
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:
|
2021-04-20 21:46:48 +02:00
|
|
|
ViewPatternData();
|
2020-11-11 09:28:44 +01:00
|
|
|
~ViewPatternData() override;
|
2020-11-10 21:31:04 +01:00
|
|
|
|
2020-12-22 18:10:01 +01:00
|
|
|
void drawContent() override;
|
2020-11-10 21:31:04 +01:00
|
|
|
|
|
|
|
private:
|
2022-01-24 20:53:17 +01:00
|
|
|
std::vector<pl::PatternData *> m_sortedPatternData;
|
2020-11-10 21:31:04 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|