diff include/gui/window.h @ 250:c130f47f6f48

*: many many changes e.g. the search page is actually implemented now!
author Paper <paper@paper.us.eu.org>
date Sun, 04 Feb 2024 21:17:17 -0500
parents 4d461ef7d424
children 862d0d8619f6
line wrap: on
line diff
--- a/include/gui/window.h	Wed Jan 24 20:18:59 2024 -0500
+++ b/include/gui/window.h	Sun Feb 04 21:17:17 2024 -0500
@@ -13,6 +13,8 @@
 #include <QThread>
 #include "gui/widgets/sidebar.h"
 
+class QMenu;
+
 Q_DECLARE_METATYPE(std::vector<std::string>);
 
 class PlayingThread : public QThread {
@@ -32,11 +34,24 @@
 		Q_OBJECT
 
 	public:
+		enum class Pages {
+			NOW_PLAYING,
+
+			ANIME_LIST,
+			HISTORY,
+			STATISTICS,
+
+			SEARCH,
+			SEASONS,
+			TORRENTS
+		};
+
 		MainWindow(QWidget* parent = nullptr);
 		void SetActivePage(QWidget* page);
 		void CreateBars();
 		void AddMainWidgets();
 		void RetranslateUI();
+		void UpdateFolderMenu();
 		void AsyncSynchronize(QAction* action, QStackedWidget* stack);
 		void changeEvent(QEvent* event) override;
 		void showEvent(QShowEvent* event) override;
@@ -47,7 +62,9 @@
 		std::unique_ptr<QStackedWidget> stack = nullptr;
 		std::unique_ptr<SideBar> sidebar = nullptr;
 
-        std::unique_ptr<PlayingThread> thread = nullptr;
+		std::unique_ptr<PlayingThread> thread = nullptr;
+
+		QMenu* folder_menu = nullptr;
 };
 
 #endif // __window_h