diff options
author | Mat M <mathew1800@gmail.com> | 2018-10-24 10:10:29 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-24 10:10:29 -0400 |
commit | 77e705a8fa0a70dac2eb81b95fedc5e98d7c274e (patch) | |
tree | 29bf11e757a34d608652b901f9c58ce4ad25aeaf /src/yuzu/configuration/configure_system.h | |
parent | a94e5d9e68619a90c9171a5198162bc74fb88f22 (diff) | |
parent | e7ac42677be6c13e5286fb42004aa94b0da45391 (diff) |
Merge pull request #1468 from DarkLordZach/profile-manager-ui
qt: Add UI to manage emulated user profiles
Diffstat (limited to 'src/yuzu/configuration/configure_system.h')
-rw-r--r-- | src/yuzu/configuration/configure_system.h | 33 |
1 files changed, 32 insertions, 1 deletions
diff --git a/src/yuzu/configuration/configure_system.h b/src/yuzu/configuration/configure_system.h index f13de17d4..b73e0719c 100644 --- a/src/yuzu/configuration/configure_system.h +++ b/src/yuzu/configuration/configure_system.h @@ -5,8 +5,21 @@ #pragma once #include <memory> + +#include <QList> #include <QWidget> +namespace Service::Account { +class ProfileManager; +struct UUID; +} // namespace Service::Account + +class QGraphicsScene; +class QStandardItem; +class QStandardItemModel; +class QTreeView; +class QVBoxLayout; + namespace Ui { class ConfigureSystem; } @@ -21,18 +34,36 @@ public: void applyConfiguration(); void setConfiguration(); + void PopulateUserList(); + void UpdateCurrentUser(); + public slots: void updateBirthdayComboBox(int birthmonth_index); void refreshConsoleID(); + void SelectUser(const QModelIndex& index); + void AddUser(); + void RenameUser(); + void DeleteUser(); + void SetUserImage(); + private: void ReadSystemSettings(); + std::string GetAccountUsername(Service::Account::UUID uuid) const; + + QVBoxLayout* layout; + QTreeView* tree_view; + QStandardItemModel* item_model; + QGraphicsScene* scene; + + std::vector<QList<QStandardItem*>> list_items; std::unique_ptr<Ui::ConfigureSystem> ui; bool enabled; - std::u16string username; int birthmonth, birthday; int language_index; int sound_index; + + std::unique_ptr<Service::Account::ProfileManager> profile_manager; }; |