aboutsummaryrefslogtreecommitdiff
path: root/include/LoginWindow.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/LoginWindow.hpp
parentc50ef935e0792eeb0256ddf5df87af015f3ae1d8 (diff)
Initial commit
Diffstat (limited to 'include/LoginWindow.hpp')
-rw-r--r--include/LoginWindow.hpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/include/LoginWindow.hpp b/include/LoginWindow.hpp
new file mode 100644
index 0000000..b60dddb
--- /dev/null
+++ b/include/LoginWindow.hpp
@@ -0,0 +1,21 @@
+#pragma once
+
+#include <gtkmm/grid.h>
+#include <gtkmm/entry.h>
+#include <gtkmm/button.h>
+#include <functional>
+
+namespace dchat
+{
+ class LoginWindow : public Gtk::Grid
+ {
+ public:
+ LoginWindow();
+
+ void setLoginHandler(std::function<void()> loginHandler);
+ private:
+ Gtk::Entry usernameInput;
+ Gtk::Entry passwordInput;
+ Gtk::Button loginButton;
+ };
+} \ No newline at end of file