pineapple-src/src/yuzu/configuration/configure_per_game_addons.h

60 lines
1.1 KiB
C
Raw Normal View History

2020-12-28 10:15:37 -05:00
// Copyright 2016 Citra Emulator Project
// Licensed under GPLv2 or any later version
// Refer to the license.txt file included.
#pragma once
#include <memory>
#include <vector>
#include <QList>
#include "core/file_sys/vfs_types.h"
2021-10-08 20:29:53 -04:00
namespace Core {
class System;
}
2020-12-28 10:15:37 -05:00
class QGraphicsScene;
class QStandardItem;
class QStandardItemModel;
class QTreeView;
class QVBoxLayout;
namespace Ui {
class ConfigurePerGameAddons;
}
class ConfigurePerGameAddons : public QWidget {
Q_OBJECT
public:
2021-10-08 20:29:53 -04:00
explicit ConfigurePerGameAddons(Core::System& system_, QWidget* parent = nullptr);
2020-12-28 10:15:37 -05:00
~ConfigurePerGameAddons() override;
/// Save all button configurations to settings file
void ApplyConfiguration();
void LoadFromFile(FileSys::VirtualFile file);
void SetTitleId(u64 id);
private:
void changeEvent(QEvent* event) override;
void RetranslateUI();
void LoadConfiguration();
std::unique_ptr<Ui::ConfigurePerGameAddons> ui;
FileSys::VirtualFile file;
u64 title_id;
QVBoxLayout* layout;
QTreeView* tree_view;
QStandardItemModel* item_model;
std::vector<QList<QStandardItem*>> list_items;
2021-10-08 20:29:53 -04:00
Core::System& system;
2020-12-28 10:15:37 -05:00
};