diff options
author | Mustafa Quraish <mustafaq9@gmail.com> | 2022-01-07 17:49:18 -0500 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-01-09 00:19:47 +0100 |
commit | 6c60bf7537bf68578399af46a1005d62b6c762ce (patch) | |
tree | 44fe16aea746fecd1f00a79904096ceedface9bb /Userland/Applications/PixelPaint/ImageEditor.h | |
parent | c2b3bab984865796dee3c385b50cb601f84f7363 (diff) | |
download | serenity-6c60bf7537bf68578399af46a1005d62b6c762ce.zip |
PixelPaint: Move `request_close_editor()` logic inside `ImageEditor`
This allows us to request any specific editor to close itself. Earlier,
this could only be done for the currently active editor, so trying to
close inactive tabs would not work properly.
Diffstat (limited to 'Userland/Applications/PixelPaint/ImageEditor.h')
-rw-r--r-- | Userland/Applications/PixelPaint/ImageEditor.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Userland/Applications/PixelPaint/ImageEditor.h b/Userland/Applications/PixelPaint/ImageEditor.h index fd8cf7ca47..2f17914b84 100644 --- a/Userland/Applications/PixelPaint/ImageEditor.h +++ b/Userland/Applications/PixelPaint/ImageEditor.h @@ -109,6 +109,8 @@ public: Gfx::FloatPoint image_position_to_editor_position(Gfx::IntPoint const&) const; Gfx::FloatPoint editor_position_to_image_position(Gfx::IntPoint const&) const; + bool request_close(); + void save_project_as(); void save_project(); |