2023-05-26 13:35:50 +00:00
|
|
|
// Copyright 2023 Dolphin Emulator Project
|
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#ifdef USE_RETRO_ACHIEVEMENTS
|
|
|
|
#include <QDialog>
|
|
|
|
|
2024-03-10 01:18:40 +00:00
|
|
|
#include "Core/AchievementManager.h"
|
|
|
|
|
2023-06-03 01:20:42 +00:00
|
|
|
class AchievementHeaderWidget;
|
2023-06-17 15:47:56 +00:00
|
|
|
class AchievementLeaderboardWidget;
|
2023-06-08 02:23:10 +00:00
|
|
|
class AchievementSettingsWidget;
|
2023-06-03 01:25:01 +00:00
|
|
|
class AchievementProgressWidget;
|
2023-05-26 13:35:50 +00:00
|
|
|
class QDialogButtonBox;
|
2023-06-03 01:31:30 +00:00
|
|
|
class QTabWidget;
|
|
|
|
class UpdateCallback;
|
2023-05-26 13:35:50 +00:00
|
|
|
|
|
|
|
class AchievementsWindow : public QDialog
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
explicit AchievementsWindow(QWidget* parent);
|
2024-03-10 01:18:40 +00:00
|
|
|
void UpdateData(AchievementManager::UpdatedItems updated_items);
|
2023-11-15 15:56:15 +00:00
|
|
|
void ForceSettingsTab();
|
2023-05-26 13:35:50 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
void CreateMainLayout();
|
2023-12-11 18:47:59 +00:00
|
|
|
void showEvent(QShowEvent* event) override;
|
2023-05-26 13:35:50 +00:00
|
|
|
void ConnectWidgets();
|
|
|
|
|
2023-06-03 01:20:42 +00:00
|
|
|
AchievementHeaderWidget* m_header_widget;
|
2023-05-26 22:29:22 +00:00
|
|
|
QTabWidget* m_tab_widget;
|
2023-06-08 02:23:10 +00:00
|
|
|
AchievementSettingsWidget* m_settings_widget;
|
2023-06-03 01:25:01 +00:00
|
|
|
AchievementProgressWidget* m_progress_widget;
|
2023-06-17 15:47:56 +00:00
|
|
|
AchievementLeaderboardWidget* m_leaderboard_widget;
|
2023-05-26 13:35:50 +00:00
|
|
|
QDialogButtonBox* m_button_box;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // USE_RETRO_ACHIEVEMENTS
|