abaddon-ppc/windows/profilewindow.hpp
2021-02-08 15:57:55 -05:00

35 lines
857 B
C++

#pragma once
#include <gtkmm.h>
#include "../discord/snowflake.hpp"
#include "profile/userinfopane.hpp"
#include "profile/mutualguildspane.hpp"
#include "profile/mutualfriendspane.hpp"
class ProfileWindow : public Gtk::Window {
public:
ProfileWindow(Snowflake user_id);
void on_hide() override;
Snowflake ID;
private:
void OnFetchProfile(const UserProfileData &data);
void OnFetchRelationships(const std::vector<UserData> &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;
UserMutualGuildsPane m_pane_guilds;
MutualFriendsPane m_pane_friends;
};