2020-11-10 20:31:04 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <hex.hpp>
|
|
|
|
|
|
|
|
#include "imgui.h"
|
|
|
|
#include "views/view.hpp"
|
|
|
|
#include "views/highlight.hpp"
|
|
|
|
|
|
|
|
#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-11-11 08:18:35 +00:00
|
|
|
ViewPatternData(prv::Provider* &dataProvider, std::vector<Highlight> &highlights);
|
2020-11-11 08:28:44 +00:00
|
|
|
~ViewPatternData() override;
|
2020-11-10 20:31:04 +00:00
|
|
|
|
2020-11-11 08:28:44 +00:00
|
|
|
void createView() override;
|
|
|
|
void createMenu() override;
|
2020-11-10 20:31:04 +00:00
|
|
|
|
|
|
|
private:
|
2020-11-11 08:18:35 +00:00
|
|
|
prv::Provider* &m_dataProvider;
|
2020-11-10 20:31:04 +00:00
|
|
|
std::vector<Highlight> &m_highlights;
|
|
|
|
bool m_windowOpen = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|