diff options
author | ouwou <26526779+ouwou@users.noreply.github.com> | 2023-10-24 21:55:26 -0400 |
---|---|---|
committer | ouwou <26526779+ouwou@users.noreply.github.com> | 2023-10-24 21:55:26 -0400 |
commit | 8b034e48e27e4889b08ed648745a74d05630a431 (patch) | |
tree | be492529d57526c84df791721a4faee87d2f16ef /src/components/channellist/channellist.cpp | |
parent | 201b114183454f3fb9114fed2caef4ac46587225 (diff) | |
download | abaddon-portaudio-8b034e48e27e4889b08ed648745a74d05630a431.tar.gz abaddon-portaudio-8b034e48e27e4889b08ed648745a74d05630a431.zip |
add intermediate container for channel list
Diffstat (limited to 'src/components/channellist/channellist.cpp')
-rw-r--r-- | src/components/channellist/channellist.cpp | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/src/components/channellist/channellist.cpp b/src/components/channellist/channellist.cpp new file mode 100644 index 0000000..38a9ecc --- /dev/null +++ b/src/components/channellist/channellist.cpp @@ -0,0 +1,50 @@ +#include "channellist.hpp" + +ChannelList::ChannelList() { + m_tree.show(); + add(m_tree); +} + +void ChannelList::UpdateListing() { + m_tree.UpdateListing(); +} + +void ChannelList::SetActiveChannel(Snowflake id, bool expand_to) { + m_tree.SetActiveChannel(id, expand_to); +} + +void ChannelList::UseExpansionState(const ExpansionStateRoot &state) { + m_tree.UseExpansionState(state); +} + +ExpansionStateRoot ChannelList::GetExpansionState() const { + m_tree.GetExpansionState(); +} + +void ChannelList::UsePanedHack(Gtk::Paned &paned) { + m_tree.UsePanedHack(paned); +} + +ChannelList::type_signal_action_open_new_tab ChannelList::signal_action_open_new_tab() { + return m_signal_action_open_new_tab; +} + +ChannelList::type_signal_action_join_voice_channel ChannelList::signal_action_join_voice_channel() { + return m_signal_action_join_voice_channel; +} + +ChannelList::type_signal_action_disconnect_voice ChannelList::signal_action_disconnect_voice() { + return m_signal_action_disconnect_voice; +} + +ChannelList::type_signal_action_channel_item_select ChannelList::signal_action_channel_item_select() { + return m_signal_action_channel_item_select; +} + +ChannelList::type_signal_action_guild_leave ChannelList::signal_action_guild_leave() { + return m_signal_action_guild_leave; +} + +ChannelList::type_signal_action_guild_settings ChannelList::signal_action_guild_settings() { + return m_signal_action_guild_settings; +} |