diff options
author | ConfuSomu | 2024-01-20 21:57:39 -0500 |
---|---|---|
committer | ConfuSomu | 2024-01-20 21:57:39 -0500 |
commit | 5aac009e969cc3bd15c484ba3437348cb7a4d186 (patch) | |
tree | 96cff55a273b9de31d639b00f7139110946ce1b6 /src/widgets/tab_actor_info.h | |
parent | 328c9b166e9d623cd1b80c7ae064baf6172da58f (diff) | |
download | ActorViewer-5aac009e969cc3bd15c484ba3437348cb7a4d186.tar ActorViewer-5aac009e969cc3bd15c484ba3437348cb7a4d186.tar.gz ActorViewer-5aac009e969cc3bd15c484ba3437348cb7a4d186.zip |
Implemement Actor information tab
This class still has improvements to be made, but it works and I am
satisfied with it!
Diffstat (limited to 'src/widgets/tab_actor_info.h')
-rw-r--r-- | src/widgets/tab_actor_info.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/widgets/tab_actor_info.h b/src/widgets/tab_actor_info.h new file mode 100644 index 0000000..a1dd84f --- /dev/null +++ b/src/widgets/tab_actor_info.h @@ -0,0 +1,27 @@ +#pragma once +#include <QWidget> +#include "src/activitypub/apactor.h" +#include "src/archive/base_archive.h" + +QT_BEGIN_NAMESPACE +namespace Ui { class TabActorInfo; } +QT_END_NAMESPACE + +class TabActorInfo : public QWidget { + Q_OBJECT + +public: + TabActorInfo(APActor* actor, QWidget *parent = nullptr); + TabActorInfo(Archive* archive, QWidget *parent = nullptr); + ~TabActorInfo(); + // TODO: when clicking/activating avatar image, open it with the user's default image viewer + +public slots: + // Update displayed information to match Actor + void update_ui(); + +private: + Ui::TabActorInfo* ui; + + APActor* actor = nullptr; +}; |