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

Dialog for managing performance profiles for a game. More...

#include <performance_profile_dialog.h>

Inheritance diagram for PerformanceProfileDialog:
Collaboration diagram for PerformanceProfileDialog:

Public Member Functions

 PerformanceProfileDialog (const Game *game, PerformanceProfileService *profileService, QWidget *parent=nullptr, ThemeManager *themeManager=nullptr)
 Construct a profile dialog for a specific game.
 PerformanceProfileDialog (PerformanceProfileService *profileService, core::GameLibraryController *libraryController, QWidget *parent=nullptr, ThemeManager *themeManager=nullptr)
 Construct a global profile manager dialog.
 ~PerformanceProfileDialog () override
std::string getSelectedProfileId () const
 Get the currently selected profile ID.
void profileApplied (const std::string &gameId, const std::string &profileId)
 Emitted when a profile is applied to a game.

Detailed Description

Dialog for managing performance profiles for a game.

Features:

  • List of existing profiles with quick-select
  • Create/Edit/Delete profiles
  • Profile settings: MangoHud, GameMode, Gamescope, DXVK options
  • Preset templates (Default, High Performance, Battery Saver, etc.)
  • Apply profile to game

Definition at line 54 of file performance_profile_dialog.h.

Constructor & Destructor Documentation

◆ PerformanceProfileDialog() [1/2]

PerformanceProfileDialog::PerformanceProfileDialog ( const Game * game,
PerformanceProfileService * profileService,
QWidget * parent = nullptr,
ThemeManager * themeManager = nullptr )
explicit

Construct a profile dialog for a specific game.

Parameters
gameGame to manage profiles for
profileServiceService for profile management
parentParent widget
themeManagerTheme provider; pass nullptr to use ThemeManager::instance()

Definition at line 28 of file performance_profile_dialog.cpp.

References Game::name, and ThemeManager::themeChanged().

◆ PerformanceProfileDialog() [2/2]

PerformanceProfileDialog::PerformanceProfileDialog ( PerformanceProfileService * profileService,
core::GameLibraryController * libraryController,
QWidget * parent = nullptr,
ThemeManager * themeManager = nullptr )
explicit

Construct a global profile manager dialog.

Parameters
profileServiceService for profile management
libraryControllerLibrary controller for game list
parentParent widget
themeManagerTheme provider; pass nullptr to use ThemeManager::instance()

Definition at line 49 of file performance_profile_dialog.cpp.

References ThemeManager::themeChanged().

◆ ~PerformanceProfileDialog()

PerformanceProfileDialog::~PerformanceProfileDialog ( )
overridedefault

Member Function Documentation

◆ getSelectedProfileId()

std::string PerformanceProfileDialog::getSelectedProfileId ( ) const

Get the currently selected profile ID.

Returns
Profile ID or empty if none selected

Definition at line 775 of file performance_profile_dialog.cpp.

◆ profileApplied()

void PerformanceProfileDialog::profileApplied ( const std::string & gameId,
const std::string & profileId )

Emitted when a profile is applied to a game.

Parameters
gameIdGame ID
profileIdProfile ID that was applied

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