2022-12-04 11:03:45 +00:00
|
|
|
// SPDX-FileCopyrightText: 2019-2022 Connor McLaughlin <stenzek@gmail.com>
|
|
|
|
// SPDX-License-Identifier: (GPL-3.0 OR CC-BY-NC-ND-4.0)
|
|
|
|
|
2021-02-26 14:44:53 +00:00
|
|
|
#pragma once
|
|
|
|
#include <QtWidgets/QWidget>
|
|
|
|
#include "ui_achievementsettingswidget.h"
|
|
|
|
|
2023-11-06 13:01:38 +00:00
|
|
|
class SettingsWindow;
|
2021-02-26 14:44:53 +00:00
|
|
|
|
|
|
|
class AchievementSettingsWidget : public QWidget
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2023-11-06 13:01:38 +00:00
|
|
|
explicit AchievementSettingsWidget(SettingsWindow* dialog, QWidget* parent);
|
2021-02-26 14:44:53 +00:00
|
|
|
~AchievementSettingsWidget();
|
|
|
|
|
|
|
|
private Q_SLOTS:
|
2022-07-11 13:03:29 +00:00
|
|
|
void updateEnableState();
|
2023-09-07 10:13:48 +00:00
|
|
|
void onHardcoreModeStateChanged();
|
|
|
|
void onAchievementsNotificationDurationSliderChanged();
|
|
|
|
void onLeaderboardsNotificationDurationSliderChanged();
|
2021-02-26 14:44:53 +00:00
|
|
|
void onLoginLogoutPressed();
|
|
|
|
void onViewProfilePressed();
|
2023-09-07 10:13:48 +00:00
|
|
|
void onAchievementsRefreshed(quint32 id, const QString& game_info_string);
|
2021-02-26 14:44:53 +00:00
|
|
|
|
|
|
|
private:
|
2021-03-03 09:14:01 +00:00
|
|
|
void updateLoginState();
|
|
|
|
|
2021-02-26 14:44:53 +00:00
|
|
|
Ui::AchievementSettingsWidget m_ui;
|
|
|
|
|
2023-11-06 13:01:38 +00:00
|
|
|
SettingsWindow* m_dialog;
|
2021-02-26 14:44:53 +00:00
|
|
|
};
|