mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-04-02 05:27:41 -05:00
* sys: Initial refactoring of the SharedData class * sys/pattern: More refactoring, make every provider have its own patterns * sys: Finished up refactoring. No more SharedData! * sys: Fixed compile on Unix * tests: Fixed unit tests * sys: Moved view and lang files * pattern: Added assignment operator support to for loops * tests: Fixed compile issue
43 lines
852 B
C++
43 lines
852 B
C++
#pragma once
|
|
|
|
#include <hex/ui/view.hpp>
|
|
|
|
#include <cstdio>
|
|
#include <string>
|
|
|
|
namespace hex::plugin::builtin {
|
|
|
|
namespace prv {
|
|
class Provider;
|
|
}
|
|
|
|
struct FoundString {
|
|
u64 offset;
|
|
size_t size;
|
|
};
|
|
|
|
class ViewStrings : public View {
|
|
public:
|
|
explicit ViewStrings();
|
|
~ViewStrings() override;
|
|
|
|
void drawContent() override;
|
|
|
|
private:
|
|
bool m_searching = false;
|
|
bool m_regex = false;
|
|
bool m_pattern_parsed = false;
|
|
|
|
std::vector<FoundString> m_foundStrings;
|
|
std::vector<size_t> m_filterIndices;
|
|
int m_minimumLength = 5;
|
|
std::string m_filter;
|
|
|
|
std::string m_selectedString;
|
|
std::string m_demangledName;
|
|
|
|
void searchStrings();
|
|
void createStringContextMenu(const FoundString &foundString);
|
|
};
|
|
|
|
} |