summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
authorouwou <26526779+ouwou@users.noreply.github.com>2020-08-17 02:40:03 -0400
committerouwou <26526779+ouwou@users.noreply.github.com>2020-08-17 02:40:03 -0400
commit18af78e6af49821f8c7adb5b4325d75c8bf4fd03 (patch)
tree2a2812d604fa0b00891613e868a79972159886aa /components
parent212511e29d01af9b096e91371956b28de834bd13 (diff)
downloadabaddon-portaudio-18af78e6af49821f8c7adb5b4325d75c8bf4fd03.tar.gz
abaddon-portaudio-18af78e6af49821f8c7adb5b4325d75c8bf4fd03.zip
connect and heartbeat
Diffstat (limited to 'components')
-rw-r--r--components/channels.cpp12
-rw-r--r--components/channels.hpp12
2 files changed, 24 insertions, 0 deletions
diff --git a/components/channels.cpp b/components/channels.cpp
new file mode 100644
index 0000000..364f18b
--- /dev/null
+++ b/components/channels.cpp
@@ -0,0 +1,12 @@
+#include "channels.hpp"
+
+ChannelList::ChannelList() {
+ m_main = Gtk::manage(new Gtk::ScrolledWindow);
+ m_list = Gtk::manage(new Gtk::ListBox);
+
+ m_main->add(*m_list);
+}
+
+Gtk::Widget* ChannelList::GetRoot() const {
+ return m_main;
+}
diff --git a/components/channels.hpp b/components/channels.hpp
new file mode 100644
index 0000000..0bc1855
--- /dev/null
+++ b/components/channels.hpp
@@ -0,0 +1,12 @@
+#pragma once
+#include <gtkmm.h>
+
+class ChannelList {
+public:
+ ChannelList();
+ Gtk::Widget *GetRoot() const;
+
+protected:
+ Gtk::ListBox *m_list;
+ Gtk::ScrolledWindow *m_main;
+};