mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 12:57:35 +00:00
HexEditor: Add 'Go to Offset...' dialog
This commit is contained in:
parent
dd6921bfc6
commit
efef77a154
7 changed files with 276 additions and 22 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue