game_launcher 1.1.0
Modern Linux game launcher with Steam / Proton / Wine integration
Loading...
Searching...
No Matches
SidebarManager Class Reference

#include <sidebar_manager.h>

Inheritance diagram for SidebarManager:
Collaboration diagram for SidebarManager:

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.

Detailed Description

Definition at line 68 of file sidebar_manager.h.

Constructor & Destructor Documentation

◆ SidebarManager()

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().

◆ ~SidebarManager()

SidebarManager::~SidebarManager ( )
overridedefault

Member Function Documentation

◆ applyTheme()

void SidebarManager::applyTheme ( )

Re-apply theme colours (called from MainWindow::applyTheme()).

Definition at line 364 of file sidebar_manager.cpp.

References ThemeColors::border.

◆ categoryChanged()

void SidebarManager::categoryChanged ( int row)

◆ clearCollectionsSelection()

void SidebarManager::clearCollectionsSelection ( )

Definition at line 469 of file sidebar_manager.cpp.

◆ collectionChanged()

void SidebarManager::collectionChanged ( const QString & collectionName)

◆ collectionDeleted()

void SidebarManager::collectionDeleted ( const QString & collectionName)

◆ populateRunnerVersions()

void SidebarManager::populateRunnerVersions ( )

Definition at line 480 of file sidebar_manager.cpp.

References selectedRunnerVersion().

Referenced by setupSidebar().

◆ runnerChanged()

void SidebarManager::runnerChanged ( )

◆ selectCategoryByRow()

void SidebarManager::selectCategoryByRow ( int row)

Definition at line 449 of file sidebar_manager.cpp.

◆ selectCategoryByText()

void SidebarManager::selectCategoryByText ( const QString & partialText)

Definition at line 459 of file sidebar_manager.cpp.

◆ selectedCategoryIndex()

int SidebarManager::selectedCategoryIndex ( ) const

Definition at line 407 of file sidebar_manager.cpp.

◆ selectedCollection()

QString SidebarManager::selectedCollection ( ) const

"" = "All"

Definition at line 438 of file sidebar_manager.cpp.

Referenced by updateCollectionsList().

◆ selectedRunnerVersion()

QString SidebarManager::selectedRunnerVersion ( ) const

"" = "All", "native" = Native

Definition at line 427 of file sidebar_manager.cpp.

Referenced by populateRunnerVersions().

◆ selectedSourceValue()

int SidebarManager::selectedSourceValue ( ) const

GameSource enum int, -1 = "All".

Definition at line 416 of file sidebar_manager.cpp.

Referenced by updateSourceFilters().

◆ setupSidebar()

◆ showCreateCollectionDialog()

void SidebarManager::showCreateCollectionDialog ( QWidget * dialogParent)

Definition at line 594 of file sidebar_manager.cpp.

References updateCollectionsList().

Referenced by setupSidebar().

◆ sourceChanged()

void SidebarManager::sourceChanged ( )

◆ updateCategoryCounts()

void SidebarManager::updateCategoryCounts ( )

◆ updateCollectionsList()

void SidebarManager::updateCollectionsList ( )

Definition at line 571 of file sidebar_manager.cpp.

References selectedCollection().

Referenced by showCreateCollectionDialog().

◆ updateSourceFilters()

void SidebarManager::updateSourceFilters ( )

Definition at line 504 of file sidebar_manager.cpp.

References selectedSourceValue().

Referenced by setupSidebar().

◆ widget()

QWidget * SidebarManager::widget ( ) const

The root widget — slot into MainWindow's splitter.

Definition at line 402 of file sidebar_manager.cpp.


The documentation for this class was generated from the following files: