aboutsummaryrefslogtreecommitdiff
path: root/include/ChatWindow.hpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2018-10-25 16:19:49 +0200
committerdec05eba <dec05eba@protonmail.com>2018-10-25 16:19:49 +0200
commit9096d6ef3710118f98c46f6e7f7689d5aa11c7f4 (patch)
tree3fe958d79d2771cd8ee26863486eb3dedc1b4b49 /include/ChatWindow.hpp
parentc50ef935e0792eeb0256ddf5df87af015f3ae1d8 (diff)
Initial commit
Diffstat (limited to 'include/ChatWindow.hpp')
-rw-r--r--include/ChatWindow.hpp29
1 files changed, 29 insertions, 0 deletions
diff --git a/include/ChatWindow.hpp b/include/ChatWindow.hpp
new file mode 100644
index 0000000..2d45b76
--- /dev/null
+++ b/include/ChatWindow.hpp
@@ -0,0 +1,29 @@
+#pragma once
+
+#include <gtkmm/label.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>
+
+namespace dchat
+{
+ class ChatWindow : public Gtk::Grid
+ {
+ public:
+ ChatWindow();
+ private:
+ void setupTopBar();
+ void setupLeftPanel(Gtk::Paned *sidePanels);
+ void setupMessageArea(Gtk::Grid *rightPanel);
+ void setupChatInput(Gtk::Grid *rightPanel);
+ private:
+ Gtk::Grid topbar;
+ Gtk::Entry topbarSearchBar;
+ Gtk::Label currentChannelTitle;
+ Gtk::ScrolledWindow chatArea;
+ Gtk::TextView chatInput;
+ };
+} \ No newline at end of file