mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-25 15:31:17 +01:00
71f3039f96
This widget will be used in several places to notify the player that a feature has been disabled because hardcore mode is on. It includes a button to open the Achievement Settings so that Hardcore Mode may be turned off. Also included is the framework required to open AchievementsWindow specifically on the Settings tab.
40 lines
906 B
C++
40 lines
906 B
C++
// Copyright 2023 Dolphin Emulator Project
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
#pragma once
|
|
|
|
#ifdef USE_RETRO_ACHIEVEMENTS
|
|
#include <QDialog>
|
|
|
|
#include "Core/AchievementManager.h"
|
|
#include "DolphinQt/QtUtils/QueueOnObject.h"
|
|
|
|
class AchievementHeaderWidget;
|
|
class AchievementLeaderboardWidget;
|
|
class AchievementProgressWidget;
|
|
class QDialogButtonBox;
|
|
class QTabWidget;
|
|
class UpdateCallback;
|
|
|
|
class AchievementsWindow : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit AchievementsWindow(QWidget* parent);
|
|
void UpdateData();
|
|
void ForceSettingsTab();
|
|
|
|
private:
|
|
void CreateMainLayout();
|
|
void showEvent(QShowEvent* event);
|
|
void ConnectWidgets();
|
|
|
|
AchievementHeaderWidget* m_header_widget;
|
|
QTabWidget* m_tab_widget;
|
|
AchievementProgressWidget* m_progress_widget;
|
|
AchievementLeaderboardWidget* m_leaderboard_widget;
|
|
QDialogButtonBox* m_button_box;
|
|
};
|
|
|
|
#endif // USE_RETRO_ACHIEVEMENTS
|