mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 07:57:46 +00:00
HexEditor: Add comments to annotations
The comment appears as a tooltip when hovering over the annotation. A couple of properties of the TextEditor would ideally be set in GML, but either don't have a setter exposed, or the GML compiler doesn't recognise the enum. I'll fix those up after the current big GML compiler PR gets merged.
This commit is contained in:
parent
4b1c7533f5
commit
a54952795a
5 changed files with 32 additions and 0 deletions
|
@ -13,6 +13,7 @@
|
|||
#include <LibGUI/ColorInput.h>
|
||||
#include <LibGUI/Dialog.h>
|
||||
#include <LibGUI/NumericInput.h>
|
||||
#include <LibGUI/TextEditor.h>
|
||||
|
||||
class EditAnnotationDialog : public GUI::Dialog {
|
||||
C_OBJECT_ABSTRACT(EditAnnotationDialog)
|
||||
|
@ -32,6 +33,7 @@ private:
|
|||
RefPtr<GUI::NumericInput> m_start_offset;
|
||||
RefPtr<GUI::NumericInput> m_end_offset;
|
||||
RefPtr<GUI::ColorInput> m_background_color;
|
||||
RefPtr<GUI::TextEditor> m_comments;
|
||||
RefPtr<GUI::Button> m_save_button;
|
||||
RefPtr<GUI::Button> m_cancel_button;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue