mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 14:07:46 +00:00
WindowServer: More work on the menu system.
Menus are now tied to a Process (by WeakPtr.) This will allow us to pass notifications to the correct event stream.
This commit is contained in:
parent
133706d697
commit
15b4c9f9f1
7 changed files with 43 additions and 39 deletions
|
@ -2,10 +2,13 @@
|
|||
|
||||
#include "WSMenu.h"
|
||||
#include <AK/Vector.h>
|
||||
#include <AK/WeakPtr.h>
|
||||
|
||||
class Process;
|
||||
|
||||
class WSMenuBar {
|
||||
public:
|
||||
WSMenuBar();
|
||||
explicit WSMenuBar(Process&);
|
||||
~WSMenuBar();
|
||||
|
||||
void add_menu(WSMenu* menu) { m_menus.append(menu); }
|
||||
|
@ -20,5 +23,6 @@ public:
|
|||
}
|
||||
|
||||
private:
|
||||
WeakPtr<Process> m_process;
|
||||
Vector<WSMenu*> m_menus;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue