1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-24 21:25:07 +00:00
serenity/Applications/IRCClient/IRCAppWindow.h
Robin Burchell 0dc9af5f7e Add clang-format file
Also run it across the whole tree to get everything using the One True Style.
We don't yet run this in an automated fashion as it's a little slow, but
there is a snippet to do so in makeall.sh.
2019-05-28 17:31:20 +02:00

33 lines
836 B
C++

#pragma once
#include "IRCClient.h"
#include "IRCWindow.h"
#include <LibGUI/GWidget.h>
#include <LibGUI/GWindow.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();
void update_title();
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;
RetainPtr<GAction> m_change_nick_action;
};