duckstation

duckstation, but archived from the revision just before upstream changed it to a proprietary software project, this version is the libre one
git clone https://git.neptards.moe/u3shit/duckstation.git
Log | Files | Refs | README | LICENSE

achievementsettingswidget.h (869B)


      1 // SPDX-FileCopyrightText: 2019-2022 Connor McLaughlin <stenzek@gmail.com>
      2 // SPDX-License-Identifier: (GPL-3.0 OR CC-BY-NC-ND-4.0)
      3 
      4 #pragma once
      5 #include <QtWidgets/QWidget>
      6 #include "ui_achievementsettingswidget.h"
      7 
      8 class SettingsWindow;
      9 
     10 class AchievementSettingsWidget : public QWidget
     11 {
     12   Q_OBJECT
     13 
     14 public:
     15   explicit AchievementSettingsWidget(SettingsWindow* dialog, QWidget* parent);
     16   ~AchievementSettingsWidget();
     17 
     18 private Q_SLOTS:
     19   void updateEnableState();
     20   void onHardcoreModeStateChanged();
     21   void onAchievementsNotificationDurationSliderChanged();
     22   void onLeaderboardsNotificationDurationSliderChanged();
     23   void onLoginLogoutPressed();
     24   void onViewProfilePressed();
     25   void onAchievementsRefreshed(quint32 id, const QString& game_info_string);
     26 
     27 private:
     28   void updateLoginState();
     29 
     30   Ui::AchievementSettingsWidget m_ui;
     31 
     32   SettingsWindow* m_dialog;
     33 };