1
0
mirror of synced 2024-11-18 12:57:12 +01:00
ImHex/include/views/view_pattern.hpp

39 lines
808 B
C++
Raw Normal View History

#pragma once
#include "lang/ast_node.hpp"
#include "views/view.hpp"
#include "lang/pattern_data.hpp"
#include "providers/provider.hpp"
#include <concepts>
#include <cstring>
#include "ImGuiFileBrowser.h"
namespace hex {
class ViewPattern : public View {
public:
explicit ViewPattern(prv::Provider* &dataProvider, std::vector<lang::PatternData*> &patternData);
2020-11-11 09:28:44 +01:00
~ViewPattern() override;
2020-11-11 09:28:44 +01:00
void createMenu() override;
void createView() override;
private:
char *m_buffer = nullptr;
std::vector<lang::PatternData*> &m_patternData;
prv::Provider* &m_dataProvider;
2020-11-10 17:34:11 +01:00
bool m_windowOpen = true;
imgui_addons::ImGuiFileBrowser m_fileBrowser;
void clearPatternData();
2020-11-10 21:31:04 +01:00
void parsePattern(char *buffer);
};
}