Mercurial > minori
comparison include/gui/dialog/settings.h @ 317:b1f4d1867ab1
services: VERY initial Kitsu support
it only supports user authentication for now, but it's definitely
a start.
author | Paper <paper@paper.us.eu.org> |
---|---|
date | Wed, 12 Jun 2024 04:07:10 -0400 |
parents | 180714442770 |
children |
comparison
equal
deleted
inserted
replaced
316:180714442770 | 317:b1f4d1867ab1 |
---|---|
12 #include <QLocale> | 12 #include <QLocale> |
13 #include <QStackedWidget> | 13 #include <QStackedWidget> |
14 #include <QTabWidget> | 14 #include <QTabWidget> |
15 #include <QVBoxLayout> | 15 #include <QVBoxLayout> |
16 #include <QWidget> | 16 #include <QWidget> |
17 | |
18 /* !!! MOVE THIS ELSEWHERE! */ | |
19 class DroppableListWidget : public QListWidget { | |
20 Q_OBJECT | |
21 | |
22 public: | |
23 explicit DroppableListWidget(QWidget* parent); | |
24 | |
25 signals: | |
26 void FilesDropped(QStringList list); | |
27 | |
28 protected: | |
29 void dragEnterEvent(QDragEnterEvent* event) override; | |
30 void dragMoveEvent(QDragMoveEvent* event) override; | |
31 void dropEvent(QDropEvent* event) override; | |
32 }; | |
33 | 17 |
34 class SettingsPage : public QWidget { | 18 class SettingsPage : public QWidget { |
35 Q_OBJECT | 19 Q_OBJECT |
36 | 20 |
37 public: | 21 public: |
54 void SaveInfo() override; | 38 void SaveInfo() override; |
55 | 39 |
56 private: | 40 private: |
57 QWidget* CreateMainPage(); | 41 QWidget* CreateMainPage(); |
58 QWidget* CreateAniListPage(); | 42 QWidget* CreateAniListPage(); |
43 QWidget* CreateKitsuPage(); | |
59 | 44 |
60 decltype(session.config.service) service; | 45 decltype(session.config.service) service; |
61 }; | 46 }; |
62 | 47 |
63 class SettingsPageApplication final : public SettingsPage { | 48 class SettingsPageApplication final : public SettingsPage { |