diff options
author | Dylam De La Torre <DyXel04@gmail.com> | 2021-11-23 05:21:56 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-23 04:21:56 +0000 |
commit | a51a54bc5979a2491f152abc47ad54e6b63f27c8 (patch) | |
tree | ce67092b2f6df366033a65a6111e4650866766b2 /windows/profile/userinfopane.hpp | |
parent | d88079000a79e6bcbe51c5a2868d57b303b5fcb6 (diff) | |
download | abaddon-portaudio-a51a54bc5979a2491f152abc47ad54e6b63f27c8.tar.gz abaddon-portaudio-a51a54bc5979a2491f152abc47ad54e6b63f27c8.zip |
Restructure source and resource files (#46)
importantly, res is now res/res and css is now res/css
Diffstat (limited to 'windows/profile/userinfopane.hpp')
-rw-r--r-- | windows/profile/userinfopane.hpp | 65 |
1 files changed, 0 insertions, 65 deletions
diff --git a/windows/profile/userinfopane.hpp b/windows/profile/userinfopane.hpp deleted file mode 100644 index 90a4d55..0000000 --- a/windows/profile/userinfopane.hpp +++ /dev/null @@ -1,65 +0,0 @@ -#pragma once -#include <gtkmm.h> -#include "discord/objects.hpp" - -class ConnectionItem : public Gtk::EventBox { -public: - ConnectionItem(const ConnectionData &connection); - -private: - Gtk::Overlay m_overlay; - Gtk::Box m_box; - Gtk::Label m_name; - Gtk::Image *m_image = nullptr; - Gtk::Image *m_check = nullptr; -}; - -class ConnectionsContainer : public Gtk::Grid { -public: - ConnectionsContainer(); - void SetConnections(const std::vector<ConnectionData> &connections); -}; - -class NotesContainer : public Gtk::Box { -public: - NotesContainer(); - void SetNote(const std::string ¬e); - -private: - void UpdateNote(); - bool OnNoteKeyPress(GdkEventKey *event); - - Gtk::Label m_label; - Gtk::TextView m_note; - - typedef sigc::signal<void, Glib::ustring> type_signal_update_note; - type_signal_update_note m_signal_update_note; - -public: - type_signal_update_note signal_update_note(); -}; - -class BioContainer : public Gtk::Box { -public: - BioContainer(); - void SetBio(const std::string &bio); - -private: - Gtk::Label m_label; - Gtk::Label m_bio; -}; - -class ProfileUserInfoPane : public Gtk::Box { -public: - ProfileUserInfoPane(Snowflake ID); - void SetProfile(const UserProfileData &data); - - Snowflake UserID; - -private: - Gtk::Label m_created; - - BioContainer m_bio; - NotesContainer m_note; - ConnectionsContainer m_conns; -}; |