aboutsummaryrefslogtreecommitdiff
path: root/include/RoomSettingsWindow.hpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2018-11-09 09:46:43 +0100
committerdec05eba <dec05eba@protonmail.com>2018-11-09 09:46:47 +0100
commit5fab9a3a2cf048330f687dda48c76c95a3a67d98 (patch)
tree1be0385ef62f5fbf0794d98a697e0ff11fe7a510 /include/RoomSettingsWindow.hpp
parent118277121c8b1767a78f76d19c44aea496121b34 (diff)
Add room joining
Diffstat (limited to 'include/RoomSettingsWindow.hpp')
-rw-r--r--include/RoomSettingsWindow.hpp30
1 files changed, 30 insertions, 0 deletions
diff --git a/include/RoomSettingsWindow.hpp b/include/RoomSettingsWindow.hpp
new file mode 100644
index 0000000..9ffd808
--- /dev/null
+++ b/include/RoomSettingsWindow.hpp
@@ -0,0 +1,30 @@
+#pragma once
+
+#include <gtkmm/grid.h>
+#include <gtkmm/entry.h>
+#include <gtkmm/label.h>
+#include <dchat/Room.hpp>
+
+namespace Gtk
+{
+ class Paned;
+}
+
+namespace dchat
+{
+ class ChatWindow;
+
+ class RoomSettingsWindow : public Gtk::Grid
+ {
+ public:
+ RoomSettingsWindow(ChatWindow *chatWindow);
+ void selectRoom(std::shared_ptr<Room> room);
+
+ void setupLeftPanel(Gtk::Paned *sidePanels);
+ void setupRightPanel(Gtk::Paned *sidePanels);
+ private:
+ ChatWindow *chatWindow;
+ Gtk::Entry roomNameEntry;
+ Gtk::Label inviteKey;
+ };
+} \ No newline at end of file