mirror of
https://github.com/RGBCube/serenity
synced 2025-05-28 06:45:07 +00:00
34 lines
813 B
C++
34 lines
813 B
C++
#pragma once
|
|
|
|
#include <LibGUI/GWindow.h>
|
|
#include <LibGUI/GWidget.h>
|
|
#include "IRCClient.h"
|
|
#include "IRCClientWindow.h"
|
|
|
|
class GAction;
|
|
class GStackWidget;
|
|
|
|
class IRCAppWindow : public GWindow {
|
|
public:
|
|
IRCAppWindow();
|
|
virtual ~IRCAppWindow() override;
|
|
|
|
private:
|
|
void setup_client();
|
|
void setup_actions();
|
|
void setup_menus();
|
|
void setup_widgets();
|
|
|
|
IRCClientWindow& create_subwindow(IRCClientWindow::Type, const String& name);
|
|
IRCClientWindow& ensure_window(IRCClientWindow::Type, const String& name);
|
|
|
|
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;
|
|
};
|