mirror of
https://github.com/celisej567/abaddon.git
synced 2026-09-06 20:15:19 +03:00
55 lines
1.2 KiB
C++
55 lines
1.2 KiB
C++
#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 ProfileUserInfoPane : public Gtk::Box {
|
|
public:
|
|
ProfileUserInfoPane(Snowflake ID);
|
|
void SetConnections(const std::vector<ConnectionData> &connections);
|
|
|
|
Snowflake UserID;
|
|
|
|
private:
|
|
Gtk::Label m_created;
|
|
|
|
NotesContainer m_note;
|
|
ConnectionsContainer m_conns;
|
|
};
|