2023-05-26 22:29:22 +00:00
|
|
|
// Copyright 2023 Dolphin Emulator Project
|
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#ifdef USE_RETRO_ACHIEVEMENTS
|
|
|
|
#include <QWidget>
|
|
|
|
|
|
|
|
class QGroupBox;
|
|
|
|
class QVBoxLayout;
|
|
|
|
class QLabel;
|
|
|
|
class QLineEdit;
|
|
|
|
class QPushButton;
|
|
|
|
class ToolTipCheckBox;
|
|
|
|
|
|
|
|
class AchievementSettingsWidget final : public QWidget
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
2023-06-08 02:23:10 +00:00
|
|
|
explicit AchievementSettingsWidget(QWidget* parent);
|
|
|
|
void UpdateData();
|
2023-05-26 22:29:22 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
void OnControllerInterfaceConfigure();
|
|
|
|
|
|
|
|
void CreateLayout();
|
|
|
|
void ConnectWidgets();
|
|
|
|
|
|
|
|
void LoadSettings();
|
|
|
|
void SaveSettings();
|
|
|
|
|
|
|
|
void ToggleRAIntegration();
|
|
|
|
void Login();
|
|
|
|
void Logout();
|
|
|
|
void ToggleHardcore();
|
|
|
|
void ToggleUnofficial();
|
|
|
|
void ToggleEncore();
|
2024-04-03 20:58:22 +00:00
|
|
|
void ToggleSpectator();
|
2024-02-24 21:06:29 +00:00
|
|
|
void ToggleDiscordPresence();
|
2024-04-03 20:31:18 +00:00
|
|
|
void ToggleProgress();
|
2023-05-26 22:29:22 +00:00
|
|
|
|
|
|
|
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;
|
2023-06-08 02:23:10 +00:00
|
|
|
ToolTipCheckBox* m_common_hardcore_enabled_input;
|
2023-05-26 22:29:22 +00:00
|
|
|
ToolTipCheckBox* m_common_unofficial_enabled_input;
|
|
|
|
ToolTipCheckBox* m_common_encore_enabled_input;
|
2024-04-03 20:58:22 +00:00
|
|
|
ToolTipCheckBox* m_common_spectator_enabled_input;
|
2024-02-24 21:06:29 +00:00
|
|
|
ToolTipCheckBox* m_common_discord_presence_enabled_input;
|
2024-04-03 20:31:18 +00:00
|
|
|
ToolTipCheckBox* m_common_progress_enabled_input;
|
2023-05-26 22:29:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // USE_RETRO_ACHIEVEMENTS
|