summaryrefslogtreecommitdiff
path: root/src/windows
diff options
context:
space:
mode:
authorouwou <26526779+ouwou@users.noreply.github.com>2023-01-03 22:52:41 -0500
committerouwou <26526779+ouwou@users.noreply.github.com>2023-01-03 22:52:41 -0500
commitc4590f8b2382fb23a733d2cf2f6c645f02e2fc48 (patch)
tree8ef8b8b8245dff9e37b5a32e75b1f1b5bdfaf0c2 /src/windows
parentdff93e103adf03b25e85ab753693479878c4efbf (diff)
downloadabaddon-portaudio-c4590f8b2382fb23a733d2cf2f6c645f02e2fc48.tar.gz
abaddon-portaudio-c4590f8b2382fb23a733d2cf2f6c645f02e2fc48.zip
start voice info box
Diffstat (limited to 'src/windows')
-rw-r--r--src/windows/mainwindow.cpp13
-rw-r--r--src/windows/mainwindow.hpp4
2 files changed, 14 insertions, 3 deletions
diff --git a/src/windows/mainwindow.cpp b/src/windows/mainwindow.cpp
index 20da46b..c80dfda 100644
--- a/src/windows/mainwindow.cpp
+++ b/src/windows/mainwindow.cpp
@@ -6,6 +6,7 @@ MainWindow::MainWindow()
, m_content_box(Gtk::ORIENTATION_HORIZONTAL)
, m_chan_content_paned(Gtk::ORIENTATION_HORIZONTAL)
, m_content_members_paned(Gtk::ORIENTATION_HORIZONTAL)
+ , m_left_pane(Gtk::ORIENTATION_VERTICAL)
, m_accels(Gtk::AccelGroup::create()) {
set_default_size(1200, 800);
get_style_context()->add_class("app-window");
@@ -51,12 +52,18 @@ MainWindow::MainWindow()
m_content_stack.set_visible_child("chat");
m_content_stack.show();
- m_chan_content_paned.pack1(m_channel_list);
+ m_voice_info.show();
+
+ m_left_pane.add(m_channel_list);
+ m_left_pane.add(m_voice_info);
+ m_left_pane.show();
+
+ m_chan_content_paned.pack1(m_left_pane);
m_chan_content_paned.pack2(m_content_members_paned);
m_chan_content_paned.child_property_shrink(m_content_members_paned) = true;
m_chan_content_paned.child_property_resize(m_content_members_paned) = true;
- m_chan_content_paned.child_property_shrink(m_channel_list) = true;
- m_chan_content_paned.child_property_resize(m_channel_list) = true;
+ m_chan_content_paned.child_property_shrink(m_left_pane) = true;
+ m_chan_content_paned.child_property_resize(m_left_pane) = true;
m_chan_content_paned.set_position(200);
m_chan_content_paned.show();
m_content_box.add(m_chan_content_paned);
diff --git a/src/windows/mainwindow.hpp b/src/windows/mainwindow.hpp
index 6e95b72..d4013dc 100644
--- a/src/windows/mainwindow.hpp
+++ b/src/windows/mainwindow.hpp
@@ -3,6 +3,7 @@
#include "components/chatwindow.hpp"
#include "components/memberlist.hpp"
#include "components/friendslist.hpp"
+#include "components/voiceinfobox.hpp"
#include <gtkmm.h>
class MainWindow : public Gtk::Window {
@@ -53,6 +54,9 @@ private:
ChatWindow m_chat;
MemberList m_members;
FriendsList m_friends;
+ VoiceInfoBox m_voice_info;
+
+ Gtk::Box m_left_pane;
Gtk::Stack m_content_stack;