2020-11-10 20:31:04 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <hex.hpp>
|
|
|
|
|
|
|
|
#include "imgui.h"
|
|
|
|
#include "views/view.hpp"
|
2020-11-19 10:36:52 +00:00
|
|
|
#include "lang/pattern_data.hpp"
|
2020-11-10 20:31:04 +00:00
|
|
|
|
|
|
|
#include <vector>
|
|
|
|
#include <tuple>
|
|
|
|
#include <cstdio>
|
|
|
|
|
|
|
|
namespace hex {
|
|
|
|
|
2020-11-11 08:28:44 +00:00
|
|
|
namespace prv { class Provider; }
|
|
|
|
|
2020-11-10 20:31:04 +00:00
|
|
|
class ViewPatternData : public View {
|
|
|
|
public:
|
2020-12-27 14:39:06 +00:00
|
|
|
ViewPatternData(std::vector<lang::PatternData*> &patternData);
|
2020-11-11 08:28:44 +00:00
|
|
|
~ViewPatternData() override;
|
2020-11-10 20:31:04 +00:00
|
|
|
|
2020-12-22 17:10:01 +00:00
|
|
|
void drawContent() override;
|
|
|
|
void drawMenu() override;
|
2020-11-10 20:31:04 +00:00
|
|
|
|
|
|
|
private:
|
2020-11-23 22:57:19 +00:00
|
|
|
|
2020-11-19 10:36:52 +00:00
|
|
|
std::vector<lang::PatternData*> &m_patternData;
|
|
|
|
std::vector<lang::PatternData*> m_sortedPatternData;
|
2020-11-10 20:31:04 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|