aboutsummaryrefslogtreecommitdiff
path: root/include/InputDialog.hpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2018-11-03 01:10:08 +0100
committerdec05eba <dec05eba@protonmail.com>2018-11-03 01:10:11 +0100
commit8cc8853c3c1e5dfd7681bc0c31bc0eb88a4ef959 (patch)
tree844cb300de80e41aac38a1b481368c6ae6eb6c58 /include/InputDialog.hpp
parent3c5eb7000709606eccd34114e8bf4e851dcacd6a (diff)
Add room name change event, create new room button, multiple rooms
Diffstat (limited to 'include/InputDialog.hpp')
-rw-r--r--include/InputDialog.hpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/include/InputDialog.hpp b/include/InputDialog.hpp
new file mode 100644
index 0000000..4b2b02a
--- /dev/null
+++ b/include/InputDialog.hpp
@@ -0,0 +1,16 @@
+#pragma once
+
+#include <gtkmm/dialog.h>
+#include <gtkmm/entry.h>
+
+namespace dchat
+{
+ class InputDialog : public Gtk::Dialog
+ {
+ public:
+ InputDialog(const char *title, const char *text, const char *acceptText = "Create", const char *cancelText = "Cancel");
+ Glib::ustring getInput() const;
+
+ Gtk::Entry entry;
+ };
+} \ No newline at end of file