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>
|
|
|
|
|
2023-06-03 01:25:01 +00:00
|
|
|
#include "Core/AchievementManager.h"
|
2023-06-03 01:31:30 +00:00
|
|
|
#include "DolphinQt/QtUtils/QueueOnObject.h"
|
2023-06-03 01:25:01 +00:00
|
|
|
|
2023-06-03 01:20:42 +00:00
|
|
|
class AchievementHeaderWidget;
|
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);
|
|
|
|
void UpdateData();
|
|
|
|
|
|
|
|
private:
|
|
|
|
void CreateMainLayout();
|
|
|
|
void showEvent(QShowEvent* event);
|
|
|
|
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-03 01:25:01 +00:00
|
|
|
AchievementProgressWidget* m_progress_widget;
|
2023-05-26 13:35:50 +00:00
|
|
|
QDialogButtonBox* m_button_box;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // USE_RETRO_ACHIEVEMENTS
|