1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 10:48:11 +00:00

IRCClient: Add menus.

This commit is contained in:
Andreas Kling 2019-03-16 01:10:48 +01:00
parent 746144f783
commit 5c2d405e1f
6 changed files with 75 additions and 34 deletions

View file

@ -5,6 +5,7 @@
#include "IRCClient.h"
#include "IRCClientWindow.h"
class GAction;
class GStackWidget;
class IRCAppWindow : public GWindow {
@ -14,6 +15,8 @@ public:
private:
void setup_client();
void setup_actions();
void setup_menus();
void setup_widgets();
IRCClientWindow& create_subwindow(IRCClientWindow::Type, const String& name);
@ -22,4 +25,10 @@ private:
IRCClient m_client;
GStackWidget* m_container { nullptr };
RetainPtr<GAction> m_join_action;
RetainPtr<GAction> m_part_action;
RetainPtr<GAction> m_whois_action;
RetainPtr<GAction> m_open_query_action;
RetainPtr<GAction> m_close_query_action;
};