1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 13:47:35 +00:00

HexEditor: Add 'Go to Offset...' dialog

This commit is contained in:
Brendan Coles 2021-05-23 08:36:30 +00:00 committed by Andreas Kling
parent dd6921bfc6
commit efef77a154
7 changed files with 276 additions and 22 deletions

View file

@ -35,6 +35,7 @@ private:
String m_name;
String m_extension;
int m_goto_history { 0 };
String m_search_text;
ByteBuffer m_search_buffer;
int last_found_index() const { return m_last_found_index == -1 ? 0 : m_last_found_index; }
@ -45,8 +46,7 @@ private:
RefPtr<GUI::Action> m_save_action;
RefPtr<GUI::Action> m_save_as_action;
RefPtr<GUI::Action> m_find_action;
RefPtr<GUI::Action> m_goto_decimal_offset_action;
RefPtr<GUI::Action> m_goto_hex_offset_action;
RefPtr<GUI::Action> m_goto_offset_action;
RefPtr<GUI::Action> m_layout_toolbar_action;
GUI::ActionGroup m_bytes_per_row_actions;