aboutsummaryrefslogtreecommitdiffstats
path: root/src/widgets/tab_actor_info.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/widgets/tab_actor_info.h')
-rw-r--r--src/widgets/tab_actor_info.h27
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;
+};