aboutsummaryrefslogtreecommitdiff
path: root/include/ChatWindow.hpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2018-10-25 17:51:19 +0200
committerdec05eba <dec05eba@protonmail.com>2018-10-25 17:51:19 +0200
commit616fb291ee1f62202affbec3a043f741c2c2469c (patch)
treeac4347b38cf598e29893fa2be5584324e5258b9a /include/ChatWindow.hpp
parent9096d6ef3710118f98c46f6e7f7689d5aa11c7f4 (diff)
Login works and showing messages, nothing else
Diffstat (limited to 'include/ChatWindow.hpp')
-rw-r--r--include/ChatWindow.hpp15
1 files changed, 15 insertions, 0 deletions
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 <gtkmm/label.h>
+#include <gtkmm/button.h>
#include <gtkmm/grid.h>
#include <gtkmm/entry.h>
#include <gtkmm/paned.h>
#include <gtkmm/scrolledwindow.h>
#include <gtkmm/stack.h>
#include <gtkmm/textview.h>
+#include <odhtdb/Hash.hpp>
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<ChannelData> channelDataById;
+ int channelCount;
};
} \ No newline at end of file