mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-24 14:49:42 -06:00
Added AchievementSettingsWidget
AchievementSettingsWidget is a dialog widget in AchievementsWindow for handling RetroAchievements settings in the user interface. This class contains the physical layout, widget connections, load/save functions and button responses. AchievementsWindow now has a tabbed list that this is inserted into; other tabs will be in a later pull request.
This commit is contained in:

committed by
Admiral H. Curtiss

parent
e1e662b86a
commit
df38573ff6
@ -0,0 +1,62 @@
|
||||
// Copyright 2023 Dolphin Emulator Project
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
#pragma once
|
||||
|
||||
#ifdef USE_RETRO_ACHIEVEMENTS
|
||||
#include <QWidget>
|
||||
|
||||
class AchievementsWindow;
|
||||
class QGroupBox;
|
||||
class QVBoxLayout;
|
||||
class QLabel;
|
||||
class QLineEdit;
|
||||
class QPushButton;
|
||||
class ToolTipCheckBox;
|
||||
|
||||
class AchievementSettingsWidget final : public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit AchievementSettingsWidget(QWidget* parent, AchievementsWindow* parent_window);
|
||||
|
||||
private:
|
||||
void OnControllerInterfaceConfigure();
|
||||
|
||||
void CreateLayout();
|
||||
void ConnectWidgets();
|
||||
|
||||
void LoadSettings();
|
||||
void SaveSettings();
|
||||
|
||||
void ToggleRAIntegration();
|
||||
void Login();
|
||||
void Logout();
|
||||
void ToggleAchievements();
|
||||
void ToggleLeaderboards();
|
||||
void ToggleRichPresence();
|
||||
void ToggleHardcore();
|
||||
void ToggleBadgeIcons();
|
||||
void ToggleUnofficial();
|
||||
void ToggleEncore();
|
||||
|
||||
AchievementsWindow* parent_window;
|
||||
|
||||
QGroupBox* m_common_box;
|
||||
QVBoxLayout* m_common_layout;
|
||||
ToolTipCheckBox* m_common_integration_enabled_input;
|
||||
QLabel* m_common_login_failed;
|
||||
QLabel* m_common_username_label;
|
||||
QLineEdit* m_common_username_input;
|
||||
QLabel* m_common_password_label;
|
||||
QLineEdit* m_common_password_input;
|
||||
QPushButton* m_common_login_button;
|
||||
QPushButton* m_common_logout_button;
|
||||
ToolTipCheckBox* m_common_achievements_enabled_input;
|
||||
ToolTipCheckBox* m_common_leaderboards_enabled_input;
|
||||
ToolTipCheckBox* m_common_rich_presence_enabled_input;
|
||||
ToolTipCheckBox* m_common_unofficial_enabled_input;
|
||||
ToolTipCheckBox* m_common_encore_enabled_input;
|
||||
};
|
||||
|
||||
#endif // USE_RETRO_ACHIEVEMENTS
|
Reference in New Issue
Block a user