mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 22:57:44 +00:00
WindowServer+TaskBar: Add a taskbar window button popup menu.
This patch only hooks up the minimize and unminimize actions.
This commit is contained in:
parent
c5c4e54a67
commit
956bd23aae
17 changed files with 158 additions and 56 deletions
18
Applications/Taskbar/TaskbarButton.h
Normal file
18
Applications/Taskbar/TaskbarButton.h
Normal file
|
@ -0,0 +1,18 @@
|
|||
#pragma once
|
||||
|
||||
#include <LibGUI/GButton.h>
|
||||
#include "WindowIdentifier.h"
|
||||
|
||||
class TaskbarButton final : public GButton {
|
||||
public:
|
||||
TaskbarButton(const WindowIdentifier&, GWidget* parent);
|
||||
virtual ~TaskbarButton() override;
|
||||
|
||||
private:
|
||||
virtual void context_menu_event(GContextMenuEvent&) override;
|
||||
|
||||
GMenu& ensure_menu();
|
||||
|
||||
WindowIdentifier m_identifier;
|
||||
OwnPtr<GMenu> m_menu;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue