mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 22:48:11 +00:00
WindowServer+LibGUI: Add per-window progress
Each window now has an associated progress integer that can be updated via the SetWindowProgress IPC call. This can be used by clients to indicate the progress of ongoing tasks. Any number in the range 0 through 100 indicate a progress percentage. Any other number means "no progress"
This commit is contained in:
parent
8449f0a15b
commit
1d6ec51bee
12 changed files with 47 additions and 4 deletions
|
@ -232,6 +232,9 @@ public:
|
|||
void set_frameless(bool frameless) { m_frameless = frameless; }
|
||||
bool is_frameless() const { return m_frameless; }
|
||||
|
||||
int progress() const { return m_progress; }
|
||||
void set_progress(int);
|
||||
|
||||
private:
|
||||
void handle_mouse_event(const MouseEvent&);
|
||||
void update_menu_item_text(PopupMenuItem item);
|
||||
|
@ -281,6 +284,7 @@ private:
|
|||
MenuItem* m_window_menu_minimize_item { nullptr };
|
||||
MenuItem* m_window_menu_maximize_item { nullptr };
|
||||
int m_minimize_animation_step { -1 };
|
||||
int m_progress { -1 };
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue