|
game_launcher 1.1.0
Modern Linux game launcher with Steam / Proton / Wine integration
|
#include <context_menu_manager.h>
Classes | |
| class | Impl |
Public Member Functions | |
| ContextMenuManager (QMainWindow *mainWindow, core::GameLibraryController *libraryController, DetailsPanelManager *detailsPanelManager, GameActionFactory *actionFactory, std::shared_ptr< QtNotificationService > notificationService, ThemeManager *themeManager, QObject *qparent=nullptr) | |
| ~ContextMenuManager () override | |
| void | gamesBatchRemoveRequested (const std::vector< std::string > &gameIds) |
| Multi-select "Remove N Games" confirmed; caller should loop libraryController->removeGame + run updateSourceFilters, updateCategoryCounts, refreshGameList. | |
| void | install (QListView *gameList) |
| Hook the manager's right-click handler onto gameList. | |
| void | steamUninstallCompleted (const std::string &gameId, bool success, const std::string &gameName, std::uint32_t appId) |
| Steam Uninstall worker completed on the UI thread. | |
Definition at line 57 of file context_menu_manager.h.
| ContextMenuManager::ContextMenuManager | ( | QMainWindow * | mainWindow, |
| core::GameLibraryController * | libraryController, | ||
| DetailsPanelManager * | detailsPanelManager, | ||
| GameActionFactory * | actionFactory, | ||
| std::shared_ptr< QtNotificationService > | notificationService, | ||
| ThemeManager * | themeManager, | ||
| QObject * | qparent = nullptr ) |
Definition at line 68 of file context_menu_manager.cpp.
|
overridedefault |
| void ContextMenuManager::gamesBatchRemoveRequested | ( | const std::vector< std::string > & | gameIds | ) |
Multi-select "Remove N Games" confirmed; caller should loop libraryController->removeGame + run updateSourceFilters, updateCategoryCounts, refreshGameList.
| void ContextMenuManager::install | ( | QListView * | gameList | ) |
Hook the manager's right-click handler onto gameList.
Call once after setupGameList() has created the view. Uses this as the receiver for the customContextMenuRequested connection so the lambda is automatically disconnected when the manager is destroyed.
Definition at line 86 of file context_menu_manager.cpp.
References GameActionFactory::addChangeArtworkAction(), GameActionFactory::addCollectionsSubmenu(), GameActionFactory::addConfigureAction(), GameActionFactory::addFavoriteAction(), GameActionFactory::addLaunchActions(), GameActionFactory::addOpenFolderAction(), GameActionFactory::addProtonDBAction(), GameActionFactory::addQuickSettingsSubmenu(), GameActionFactory::addRemoveAction(), GameActionFactory::addSteamActions(), SteamLibraryScanner::forceUninstallGame(), GameIdRole, GameVerificationDialog::setGame(), Game::source, and Steam.
| void ContextMenuManager::steamUninstallCompleted | ( | const std::string & | gameId, |
| bool | success, | ||
| const std::string & | gameName, | ||
| std::uint32_t | appId ) |
Steam Uninstall worker completed on the UI thread.
MainWindow handles the refresh cascade + opens steam:// nav URL on success.