From 616fb291ee1f62202affbec3a043f741c2c2469c Mon Sep 17 00:00:00 2001 From: dec05eba Date: Thu, 25 Oct 2018 17:51:19 +0200 Subject: Login works and showing messages, nothing else --- include/ChatWindow.hpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'include/ChatWindow.hpp') diff --git a/include/ChatWindow.hpp b/include/ChatWindow.hpp index 2d45b76..b13046e 100644 --- a/include/ChatWindow.hpp +++ b/include/ChatWindow.hpp @@ -1,12 +1,14 @@ #pragma once #include +#include #include #include #include #include #include #include +#include namespace dchat { @@ -14,6 +16,8 @@ namespace dchat { public: ChatWindow(); + void addChannel(const odhtdb::Hash &nodeHash); + void addLocalMessage(const odhtdb::Hash &channelId, Glib::ustring msg); private: void setupTopBar(); void setupLeftPanel(Gtk::Paned *sidePanels); @@ -22,8 +26,19 @@ namespace dchat private: Gtk::Grid topbar; Gtk::Entry topbarSearchBar; + Gtk::Grid leftPanelChannels; Gtk::Label currentChannelTitle; Gtk::ScrolledWindow chatArea; + Gtk::Grid chatAreaLayout; Gtk::TextView chatInput; + + struct ChannelData + { + Gtk::Button *button; + int messageCount; + }; + + odhtdb::MapHash channelDataById; + int channelCount; }; } \ No newline at end of file -- cgit v1.2.3