From b5659bf9ade976353d771d9fcd1a3f1f3c3fb663 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sat, 24 Nov 2018 19:17:47 +0100 Subject: Add change user nickname/avatar menu --- include/UserSettingsWindow.hpp | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 include/UserSettingsWindow.hpp (limited to 'include/UserSettingsWindow.hpp') diff --git a/include/UserSettingsWindow.hpp b/include/UserSettingsWindow.hpp new file mode 100644 index 0000000..e7062e1 --- /dev/null +++ b/include/UserSettingsWindow.hpp @@ -0,0 +1,33 @@ +#pragma once + +#include +#include +#include +#include + +namespace Gtk +{ + class Paned; +} + +namespace dchat +{ + class ChatWindow; + + class UserSettingsWindow : public Gtk::Grid + { + public: + UserSettingsWindow(ChatWindow *chatWindow); + void setAvatarUrl(const std::string &url); + void setNickname(const std::string &nickname); + + void setupLeftPanel(Gtk::Paned *sidePanels); + void setupRightPanel(Gtk::Paned *sidePanels); + private: + ChatWindow *chatWindow; + Gtk::Entry nicknameEntry; + Gtk::Entry avatarUrlEntry; + Glib::ustring prevNickname; + Glib::ustring prevAvatarUrl; + }; +} \ No newline at end of file -- cgit v1.2.3