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>
|
|
|
|
#include <hex/lang/pattern_data.hpp>
|
2020-11-10 21:31:04 +01:00
|
|
|
|
|
|
|
#include <vector>
|
|
|
|
#include <tuple>
|
|
|
|
#include <cstdio>
|
|
|
|
|
|
|
|
namespace hex {
|
|
|
|
|
2020-11-11 09:28:44 +01:00
|
|
|
namespace prv { class Provider; }
|
|
|
|
|
2020-11-10 21:31:04 +01:00
|
|
|
class ViewPatternData : public View {
|
|
|
|
public:
|
2020-12-27 15:39:06 +01:00
|
|
|
ViewPatternData(std::vector<lang::PatternData*> &patternData);
|
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;
|
|
|
|
void drawMenu() override;
|
2020-11-10 21:31:04 +01:00
|
|
|
|
|
|
|
private:
|
2020-11-23 23:57:19 +01:00
|
|
|
|
2020-11-19 11:36:52 +01:00
|
|
|
std::vector<lang::PatternData*> &m_patternData;
|
|
|
|
std::vector<lang::PatternData*> m_sortedPatternData;
|
2020-11-10 21:31:04 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|