|
game_launcher 1.1.0
Modern Linux game launcher with Steam / Proton / Wine integration
|
#include <sidebar_manager.h>
Classes | |
| class | Impl |
Public Member Functions | |
| SidebarManager (core::GameLibraryController *libraryController, core::LaunchController *launchController, core::SettingsController *settingsController, QtNotificationService *notificationService, ThemeManager *themeManager, QWidget *parent, QObject *qparent=nullptr) | |
| ~SidebarManager () override | |
| void | applyTheme () |
| Re-apply theme colours (called from MainWindow::applyTheme()). | |
| void | categoryChanged (int row) |
| void | clearCollectionsSelection () |
| void | collectionChanged (const QString &collectionName) |
| void | collectionDeleted (const QString &collectionName) |
| void | populateRunnerVersions () |
| void | runnerChanged () |
| void | selectCategoryByRow (int row) |
| void | selectCategoryByText (const QString &partialText) |
| int | selectedCategoryIndex () const |
| QString | selectedCollection () const |
| "" = "All" | |
| QString | selectedRunnerVersion () const |
| "" = "All", "native" = Native | |
| int | selectedSourceValue () const |
| GameSource enum int, -1 = "All". | |
| void | setupSidebar () |
| Build the sidebar widget tree. Call once after construction. | |
| void | showCreateCollectionDialog (QWidget *dialogParent) |
| void | sourceChanged () |
| void | updateCategoryCounts () |
| void | updateCollectionsList () |
| void | updateSourceFilters () |
| QWidget * | widget () const |
| The root widget — slot into MainWindow's splitter. | |
Definition at line 68 of file sidebar_manager.h.
| SidebarManager::SidebarManager | ( | core::GameLibraryController * | libraryController, |
| core::LaunchController * | launchController, | ||
| core::SettingsController * | settingsController, | ||
| QtNotificationService * | notificationService, | ||
| ThemeManager * | themeManager, | ||
| QWidget * | parent, | ||
| QObject * | qparent = nullptr ) |
Definition at line 146 of file sidebar_manager.cpp.
Referenced by SidebarManager::Impl::Impl().
|
overridedefault |
| void SidebarManager::applyTheme | ( | ) |
Re-apply theme colours (called from MainWindow::applyTheme()).
Definition at line 364 of file sidebar_manager.cpp.
References ThemeColors::border.
| void SidebarManager::categoryChanged | ( | int | row | ) |
| void SidebarManager::clearCollectionsSelection | ( | ) |
Definition at line 469 of file sidebar_manager.cpp.
| void SidebarManager::collectionChanged | ( | const QString & | collectionName | ) |
| void SidebarManager::collectionDeleted | ( | const QString & | collectionName | ) |
| void SidebarManager::populateRunnerVersions | ( | ) |
Definition at line 480 of file sidebar_manager.cpp.
References selectedRunnerVersion().
Referenced by setupSidebar().
| void SidebarManager::runnerChanged | ( | ) |
| void SidebarManager::selectCategoryByRow | ( | int | row | ) |
Definition at line 449 of file sidebar_manager.cpp.
| void SidebarManager::selectCategoryByText | ( | const QString & | partialText | ) |
Definition at line 459 of file sidebar_manager.cpp.
| int SidebarManager::selectedCategoryIndex | ( | ) | const |
Definition at line 407 of file sidebar_manager.cpp.
| QString SidebarManager::selectedCollection | ( | ) | const |
"" = "All"
Definition at line 438 of file sidebar_manager.cpp.
Referenced by updateCollectionsList().
| QString SidebarManager::selectedRunnerVersion | ( | ) | const |
"" = "All", "native" = Native
Definition at line 427 of file sidebar_manager.cpp.
Referenced by populateRunnerVersions().
| int SidebarManager::selectedSourceValue | ( | ) | const |
GameSource enum int, -1 = "All".
Definition at line 416 of file sidebar_manager.cpp.
Referenced by updateSourceFilters().
| void SidebarManager::setupSidebar | ( | ) |
Build the sidebar widget tree. Call once after construction.
Definition at line 163 of file sidebar_manager.cpp.
References ThemeColors::accent, CollapsibleSection::applyTheme(), ThemeColors::border, ThemeColors::inputBackground, populateRunnerVersions(), showCreateCollectionDialog(), ThemeColors::textPrimary, ThemeManager::themeChanged(), updateCategoryCounts(), and updateSourceFilters().
| void SidebarManager::showCreateCollectionDialog | ( | QWidget * | dialogParent | ) |
Definition at line 594 of file sidebar_manager.cpp.
References updateCollectionsList().
Referenced by setupSidebar().
| void SidebarManager::sourceChanged | ( | ) |
| void SidebarManager::updateCategoryCounts | ( | ) |
Definition at line 524 of file sidebar_manager.cpp.
References SteamStateFlags::needsUpdate(), SteamDownloadMonitor::readGameState(), and Steam.
Referenced by setupSidebar().
| void SidebarManager::updateCollectionsList | ( | ) |
Definition at line 571 of file sidebar_manager.cpp.
References selectedCollection().
Referenced by showCreateCollectionDialog().
| void SidebarManager::updateSourceFilters | ( | ) |
Definition at line 504 of file sidebar_manager.cpp.
References selectedSourceValue().
Referenced by setupSidebar().
| QWidget * SidebarManager::widget | ( | ) | const |
The root widget — slot into MainWindow's splitter.
Definition at line 402 of file sidebar_manager.cpp.