|
game_launcher 1.1.0
Modern Linux game launcher with Steam / Proton / Wine integration
|
Fluent builder for creating ShortcutAction objects. More...
#include <shortcut_manager.h>
Public Member Functions | |
| ShortcutBuilder (const QString &id) | |
| ShortcutBuilder & | action (std::function< void()> fn) |
| ShortcutAction | build () const |
| ShortcutBuilder & | canExecute (std::function< bool()> fn) |
| ShortcutBuilder & | category (const QString &cat) |
| ShortcutBuilder & | description (const QString &desc) |
| ShortcutBuilder & | global (bool g=true) |
| ShortcutBuilder & | label (const QString &label) |
| bool | registerWith (ShortcutManager &manager) const |
| Build and register with the ShortcutManager. | |
| ShortcutBuilder & | shortcut (const QKeySequence &seq) |
| ShortcutBuilder & | shortcut (const QString &seq) |
Fluent builder for creating ShortcutAction objects.
Definition at line 313 of file shortcut_manager.h.
|
inlineexplicit |
Definition at line 316 of file shortcut_manager.h.
Referenced by action(), canExecute(), category(), description(), global(), label(), shortcut(), and shortcut().
|
inline |
Definition at line 351 of file shortcut_manager.h.
References ShortcutBuilder(), and action().
Referenced by action(), and ShortcutsController::setupKeyboardShortcuts().
|
inline |
Definition at line 362 of file shortcut_manager.h.
|
inline |
Definition at line 356 of file shortcut_manager.h.
References ShortcutBuilder(), and canExecute().
Referenced by canExecute().
|
inline |
Definition at line 326 of file shortcut_manager.h.
References ShortcutBuilder(), and category().
Referenced by category(), and ShortcutsController::setupKeyboardShortcuts().
|
inline |
Definition at line 341 of file shortcut_manager.h.
References ShortcutBuilder(), and description().
Referenced by description(), and ShortcutsController::setupKeyboardShortcuts().
|
inline |
Definition at line 346 of file shortcut_manager.h.
References ShortcutBuilder().
Referenced by ShortcutsController::setupKeyboardShortcuts().
|
inline |
Definition at line 321 of file shortcut_manager.h.
References ShortcutBuilder(), and label().
Referenced by label(), and ShortcutsController::setupKeyboardShortcuts().
|
inline |
Build and register with the ShortcutManager.
Definition at line 370 of file shortcut_manager.h.
References ShortcutManager::registerAction().
|
inline |
Definition at line 331 of file shortcut_manager.h.
References ShortcutBuilder().
Referenced by ShortcutsController::setupKeyboardShortcuts(), and shortcut().
|
inline |
Definition at line 337 of file shortcut_manager.h.
References ShortcutBuilder(), and shortcut().