2020-11-10 21:31:04 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <hex.hpp>
|
|
|
|
|
|
|
|
#include "imgui.h"
|
|
|
|
#include "views/view.hpp"
|
2020-11-14 14:42:21 +01:00
|
|
|
#include "views/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-11-14 14:42:21 +01:00
|
|
|
ViewPatternData(prv::Provider* &dataProvider, std::vector<hex::PatternData*> &patternData);
|
2020-11-11 09:28:44 +01:00
|
|
|
~ViewPatternData() override;
|
2020-11-10 21:31:04 +01:00
|
|
|
|
2020-11-11 09:28:44 +01:00
|
|
|
void createView() override;
|
|
|
|
void createMenu() override;
|
2020-11-10 21:31:04 +01:00
|
|
|
|
|
|
|
private:
|
2020-11-11 09:18:35 +01:00
|
|
|
prv::Provider* &m_dataProvider;
|
2020-11-14 14:42:21 +01:00
|
|
|
std::vector<hex::PatternData*> &m_patternData;
|
2020-11-15 00:46:18 +01:00
|
|
|
std::vector<hex::PatternData*> m_sortedPatternData;
|
2020-11-10 21:31:04 +01:00
|
|
|
bool m_windowOpen = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|