|
game_launcher 1.1.0
Modern Linux game launcher with Steam / Proton / Wine integration
|
#include <shortcuts_controller.h>
Public Member Functions | |
| ShortcutsController (MainWindow *mainWindow, QObject *qparent=nullptr) | |
| ~ShortcutsController () override | |
| void | registerPaletteCommands () |
| Populate the command palette with every PaletteCommand. | |
| void | setupKeyboardShortcuts () |
| Register global / game / view keyboard shortcuts with ShortcutManager::instance(). | |
Definition at line 25 of file shortcuts_controller.h.
|
explicit |
Definition at line 93 of file shortcuts_controller.cpp.
|
overridedefault |
| void ShortcutsController::registerPaletteCommands | ( | ) |
Populate the command palette with every PaletteCommand.
Requires MainWindow::commandPalette_ to be non-null.
Definition at line 460 of file shortcuts_controller.cpp.
References CommandBuilder::action(), CommandBuilder::build(), CommandBuilder::category(), Compact, CommandBuilder::description(), Theme::displayName, CommandBuilder::enabledWhen(), GameRunnerConfig::executablePath, Grid, CommandBuilder::icon(), GameProcessManager::instance(), ThemeManager::instance(), List, Game::metadata, CommandBuilder::priority(), Game::runnerConfig, GameProcessManager::scanForRunningGames(), GameMetadata::steamAppId, and CommandBuilder::visibleWhen().
| void ShortcutsController::setupKeyboardShortcuts | ( | ) |
Register global / game / view keyboard shortcuts with ShortcutManager::instance().
Call once.
Definition at line 104 of file shortcuts_controller.cpp.
References ShortcutBuilder::action(), ShortcutBuilder::category(), Compact, ShortcutBuilder::description(), ShortcutCategory::GameActions, ShortcutCategory::Global, ShortcutBuilder::global(), Grid, ShortcutManager::initialize(), ShortcutManager::instance(), ShortcutBuilder::label(), List, ShortcutManager::loadCustomizations(), ShortcutCategory::Navigation, ShortcutCategory::Panels, ShortcutBuilder::shortcut(), and ShortcutCategory::View.