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

LibGUI: Add GInputBox for getting a string from a modal dialog.

Use this to implement some of the toolbar actions in IRCClient. :^)
This commit is contained in:
Andreas Kling 2019-03-19 01:41:00 +01:00
parent b87c099535
commit a6538feed1
11 changed files with 158 additions and 17 deletions

View file

@ -554,3 +554,29 @@ void IRCClient::handle_user_command(const String& input)
return;
}
}
void IRCClient::handle_whois_action(const String& nick)
{
send_whois(nick);
}
void IRCClient::handle_open_query_action(const String& nick)
{
ensure_query(nick);
}
void IRCClient::handle_close_query_action(const String& nick)
{
m_queries.remove(nick);
m_client_window_list_model->update();
}
void IRCClient::handle_join_action(const String& channel)
{
join_channel(channel);
}
void IRCClient::handle_part_action(const String& channel)
{
part_channel(channel);
}