diff options
author | ouwou <26526779+ouwou@users.noreply.github.com> | 2021-02-04 23:41:53 -0500 |
---|---|---|
committer | ouwou <26526779+ouwou@users.noreply.github.com> | 2021-02-04 23:41:53 -0500 |
commit | 64adcffe4272d109f296ff46fbc52eea5cf367bd (patch) | |
tree | 7df5a5ef1f0cd77541c684af5a794a1f536ff6ea /windows/profilewindow.hpp | |
parent | 0479bf52c2417cd983d808b6bce3f48f1551d6d9 (diff) | |
download | abaddon-portaudio-64adcffe4272d109f296ff46fbc52eea5cf367bd.tar.gz abaddon-portaudio-64adcffe4272d109f296ff46fbc52eea5cf367bd.zip |
view user profile (notes+connections+badges)
change some stuff with callbacks
Diffstat (limited to 'windows/profilewindow.hpp')
-rw-r--r-- | windows/profilewindow.hpp | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/windows/profilewindow.hpp b/windows/profilewindow.hpp new file mode 100644 index 0000000..5d4f319 --- /dev/null +++ b/windows/profilewindow.hpp @@ -0,0 +1,29 @@ +#pragma once +#include <gtkmm.h> +#include "../discord/snowflake.hpp" +#include "profile/userinfopane.hpp" + +class ProfileWindow : public Gtk::Window { +public: + ProfileWindow(Snowflake user_id); + + void on_hide() override; + + Snowflake ID; + +private: + void OnFetchProfile(const UserProfileData &data); + + Gtk::Box m_main; + Gtk::Box m_upper; + Gtk::Box m_badges; + Gtk::ScrolledWindow m_badges_scroll; + Gtk::EventBox m_avatar_ev; + Gtk::Image m_avatar; + Gtk::Label m_username; + Gtk::ScrolledWindow m_scroll; + Gtk::Stack m_stack; + Gtk::StackSwitcher m_switcher; + + ProfileUserInfoPane m_pane_info; +}; |