1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 03:27:44 +00:00

HexEditor: Find

Added search submenu with options to find or find again.
Find allows to search for ASII string or sequence of Hex value.
This commit is contained in:
Camisul 2021-01-22 23:22:00 +03:00 committed by Andreas Kling
parent 509e39ac00
commit 0678dab7dc
7 changed files with 294 additions and 1 deletions

View file

@ -52,6 +52,12 @@ private:
String m_path;
String m_name;
String m_extension;
String m_search_text;
ByteBuffer m_search_buffer;
int last_found_index() const { return m_last_found_index == -1 ? 0 : m_last_found_index; }
int m_last_found_index { -1 };
RefPtr<GUI::Action> m_new_action;
RefPtr<GUI::Action> m_open_action;
RefPtr<GUI::Action> m_save_action;