mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 09:28:11 +00:00
IRCClient: Rename IRCSubWindow => IRCClientWindow.
This commit is contained in:
parent
f004db19d0
commit
eba5fd3f46
7 changed files with 26 additions and 26 deletions
30
Applications/IRCClient/IRCClientWindow.cpp
Normal file
30
Applications/IRCClient/IRCClientWindow.cpp
Normal file
|
@ -0,0 +1,30 @@
|
|||
#include "IRCClientWindow.h"
|
||||
#include "IRCClient.h"
|
||||
#include "IRCLogBufferModel.h"
|
||||
#include <LibGUI/GBoxLayout.h>
|
||||
#include <LibGUI/GTableView.h>
|
||||
#include <LibGUI/GTextBox.h>
|
||||
|
||||
IRCClientWindow::IRCClientWindow(IRCClient& client, Type type, const String& name, GWidget* parent)
|
||||
: GWidget(parent)
|
||||
, m_client(client)
|
||||
, m_type(type)
|
||||
, m_name(name)
|
||||
{
|
||||
set_layout(make<GBoxLayout>(Orientation::Vertical));
|
||||
m_table_view = new GTableView(this);
|
||||
m_table_view->set_font(Font::default_fixed_width_font());
|
||||
|
||||
m_client.register_subwindow(*this);
|
||||
}
|
||||
|
||||
IRCClientWindow::~IRCClientWindow()
|
||||
{
|
||||
m_client.unregister_subwindow(*this);
|
||||
}
|
||||
|
||||
void IRCClientWindow::set_log_buffer(const IRCLogBuffer& log_buffer)
|
||||
{
|
||||
m_log_buffer = &log_buffer;
|
||||
m_table_view->set_model(OwnPtr<IRCLogBufferModel>((IRCLogBufferModel*)log_buffer.model()));
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue