summaryrefslogtreecommitdiff
path: root/Applications/IRCClient/IRCAppWindow.h
blob: 367c494e398ec31d6cc545a3afeaa771173467bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#pragma once

#include <LibGUI/GWindow.h>
#include <LibGUI/GWidget.h>
#include "IRCClient.h"
#include "IRCWindow.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();

    IRCWindow& create_window(void* owner, IRCWindow::Type, const String& name);
    IRCClient m_client;
    GStackWidget* m_container { nullptr };
    GTableView* m_window_list { 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;
};