1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 20:07:34 +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

@ -29,12 +29,14 @@ public:
bool is_readonly() const { return m_readonly; }
void set_readonly(bool);
int buffer_size() const { return m_buffer.size(); }
void set_buffer(const ByteBuffer&);
void fill_selection(u8 fill_byte);
bool write_to_file(const String& path);
void select_all();
bool has_selection() const { return !(m_selection_start == -1 || m_selection_end == -1 || (m_selection_end - m_selection_start) < 0 || m_buffer.is_empty()); }
int selection_start_offset() const { return m_selection_start; }
bool copy_selected_text_to_clipboard();
bool copy_selected_hex_to_clipboard();
bool copy_selected_hex_to_clipboard_as_c_code();