#include <menubar_manager.h>
Definition at line 58 of file menubar_manager.h.
◆ PanelVisibilityQuery
Panel-visibility getter.
MainWindow installs a single functor so the View menu's aboutToShow can tick the current panels without us holding references to the container widgets. The functor receives a panel name ("sidebar" | "games" | "details" | "monitor" | "ha") and returns whether that panel is currently visible.
Definition at line 95 of file menubar_manager.h.
◆ MenuBarManager()
◆ ~MenuBarManager()
| MenuBarManager::~MenuBarManager |
( |
| ) |
|
|
overridedefault |
◆ addGameRequested()
| void MenuBarManager::addGameRequested |
( |
| ) |
|
◆ applyTheme()
| void MenuBarManager::applyTheme |
( |
| ) |
|
◆ artworkChanged()
| void MenuBarManager::artworkChanged |
( |
const std::string & | gameId | ) |
|
◆ commandPaletteRequested()
| void MenuBarManager::commandPaletteRequested |
( |
| ) |
|
◆ downloadQueueRequested()
| void MenuBarManager::downloadQueueRequested |
( |
| ) |
|
◆ exitRequested()
| void MenuBarManager::exitRequested |
( |
| ) |
|
◆ exportImportRequested()
| void MenuBarManager::exportImportRequested |
( |
| ) |
|
◆ favoriteChanged()
| void MenuBarManager::favoriteChanged |
( |
const std::string & | gameId | ) |
|
◆ gameConfigUpdated()
| void MenuBarManager::gameConfigUpdated |
( |
const std::string & | gameId | ) |
|
◆ gameListChanged()
| void MenuBarManager::gameListChanged |
( |
| ) |
|
◆ importGamesRequested()
| void MenuBarManager::importGamesRequested |
( |
| ) |
|
◆ installFromLutrisRequested()
| void MenuBarManager::installFromLutrisRequested |
( |
| ) |
|
◆ launchRequested()
| void MenuBarManager::launchRequested |
( |
const std::string & | gameId | ) |
|
◆ libraryStatisticsRequested()
| void MenuBarManager::libraryStatisticsRequested |
( |
| ) |
|
◆ manageRunnersRequested()
| void MenuBarManager::manageRunnersRequested |
( |
| ) |
|
◆ menuModeToggled()
| void MenuBarManager::menuModeToggled |
( |
bool | useHamburger | ) |
|
◆ panelToggleRequested()
| void MenuBarManager::panelToggleRequested |
( |
const QString & | name | ) |
|
◆ refreshLibraryRequested()
| void MenuBarManager::refreshLibraryRequested |
( |
| ) |
|
◆ removeGameRequested()
| void MenuBarManager::removeGameRequested |
( |
const std::string & | gameId | ) |
|
◆ runnersListChanged()
| void MenuBarManager::runnersListChanged |
( |
| ) |
|
◆ setPanelVisibilityQuery()
◆ setSelectedGameId()
| void MenuBarManager::setSelectedGameId |
( |
const std::string & | gameId | ) |
|
Propagate the current selection.
MainWindow calls this every time selectedGameId_ changes so the Game menu's aboutToShow handler can read fresh state without grabbing MainWindow.
Definition at line 513 of file menubar_manager.cpp.
◆ setSortOption()
| void MenuBarManager::setSortOption |
( |
SortOption | sort | ) |
|
◆ settingsRequested()
| void MenuBarManager::settingsRequested |
( |
| ) |
|
◆ setupMenus()
| void MenuBarManager::setupMenus |
( |
| ) |
|
Build the menu bar and all five top-level menus. Call once.
Definition at line 126 of file menubar_manager.cpp.
References ThemeColors::accent, GameActionFactory::addChangeArtworkAction(), GameActionFactory::addCollectionsSubmenu(), GameActionFactory::addConfigureAction(), GameActionFactory::addFavoriteAction(), addGameRequested(), GameActionFactory::addLaunchActions(), GameActionFactory::addOpenFolderAction(), GameActionFactory::addProtonDBAction(), GameActionFactory::addQuickSettingsSubmenu(), GameActionFactory::addRemoveAction(), GameActionFactory::addSteamActions(), ThemeColors::borderLight, ThemeColors::cardBackground, exitRequested(), exportImportRequested(), ThemeColors::hoverBackground, importGamesRequested(), settingsRequested(), ThemeColors::textOnAccent, and ThemeColors::textPrimary.
◆ setViewMode()
| void MenuBarManager::setViewMode |
( |
ViewMode | mode | ) |
|
Current view-mode / sort-option — needed so the View menu's checkbox indicators and Sort By radio group reflect reality.
Definition at line 518 of file menubar_manager.cpp.
◆ sortSelected()
| void MenuBarManager::sortSelected |
( |
SortOption | sort | ) |
|
◆ stopRequested()
| void MenuBarManager::stopRequested |
( |
const std::string & | gameId | ) |
|
◆ themeSelected()
| void MenuBarManager::themeSelected |
( |
const QString & | themeId | ) |
|
◆ viewModeSelected()
| void MenuBarManager::viewModeSelected |
( |
ViewMode | mode | ) |
|
◆ zoomInRequested()
| void MenuBarManager::zoomInRequested |
( |
| ) |
|
◆ zoomOutRequested()
| void MenuBarManager::zoomOutRequested |
( |
| ) |
|
◆ zoomResetRequested()
| void MenuBarManager::zoomResetRequested |
( |
| ) |
|
The documentation for this class was generated from the following files: