mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 04:27:45 +00:00
PixelPaint: Allow ImageEditor event to append info to the statusbar
This provides an event on ImageEditor for other functions to activate functions when appended_status_info is updated
This commit is contained in:
parent
bf06f49417
commit
29665668b6
4 changed files with 33 additions and 1 deletions
|
@ -123,6 +123,9 @@ public:
|
|||
void set_modified(DeprecatedString action_text);
|
||||
void set_unmodified();
|
||||
void update_modified();
|
||||
Function<void(DeprecatedString)> on_appended_status_info_change;
|
||||
DeprecatedString appended_status_info() { return m_appended_status_info; };
|
||||
void set_appended_status_info(DeprecatedString);
|
||||
|
||||
private:
|
||||
explicit ImageEditor(NonnullRefPtr<Image>);
|
||||
|
@ -192,6 +195,7 @@ private:
|
|||
void draw_marching_ants_pixel(Gfx::Painter&, int x, int y) const;
|
||||
|
||||
Core::EventLoop& m_gui_event_loop;
|
||||
DeprecatedString m_appended_status_info;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue