mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-07-13 21:25:59 +00:00
some more WIP in gui
This commit is contained in:
parent
c9add2e788
commit
93feb220ea
4 changed files with 13 additions and 3 deletions
|
@ -79,6 +79,10 @@ std::string selectedUserid{"00000001"};
|
||||||
std::string getDefaultUserId() {
|
std::string getDefaultUserId() {
|
||||||
return userid;
|
return userid;
|
||||||
}
|
}
|
||||||
|
std::string getActiveUserId() {
|
||||||
|
return selectedUserid;
|
||||||
|
}
|
||||||
|
|
||||||
// Gui
|
// Gui
|
||||||
static bool load_game_size = true;
|
static bool load_game_size = true;
|
||||||
static std::vector<GameInstallDir> settings_install_dirs = {};
|
static std::vector<GameInstallDir> settings_install_dirs = {};
|
||||||
|
|
|
@ -130,5 +130,6 @@ void setDefaultValues();
|
||||||
// todo: name and function location pending
|
// todo: name and function location pending
|
||||||
std::filesystem::path GetFoolproofKbmConfigFile(const std::string& game_id = "");
|
std::filesystem::path GetFoolproofKbmConfigFile(const std::string& game_id = "");
|
||||||
std::string getDefaultUserId();
|
std::string getDefaultUserId();
|
||||||
|
std::string getActiveUserId();
|
||||||
|
|
||||||
}; // namespace Config
|
}; // namespace Config
|
|
@ -45,8 +45,8 @@ void user_manager_dialog::Init() {
|
||||||
QPushButton* push_create_user = new QPushButton(tr("&Create User"), this);
|
QPushButton* push_create_user = new QPushButton(tr("&Create User"), this);
|
||||||
push_create_user->setAutoDefault(false);
|
push_create_user->setAutoDefault(false);
|
||||||
|
|
||||||
QPushButton* push_rename_user = new QPushButton(tr("&Rename User"), this);
|
QPushButton* push_edit_user = new QPushButton(tr("&Edit User"), this);
|
||||||
push_rename_user->setAutoDefault(false);
|
push_edit_user->setAutoDefault(false);
|
||||||
|
|
||||||
QPushButton* push_close = new QPushButton(tr("&Close"), this);
|
QPushButton* push_close = new QPushButton(tr("&Close"), this);
|
||||||
push_close->setAutoDefault(false);
|
push_close->setAutoDefault(false);
|
||||||
|
@ -54,7 +54,7 @@ void user_manager_dialog::Init() {
|
||||||
// Button Layout
|
// Button Layout
|
||||||
QHBoxLayout* hbox_buttons = new QHBoxLayout();
|
QHBoxLayout* hbox_buttons = new QHBoxLayout();
|
||||||
hbox_buttons->addWidget(push_create_user);
|
hbox_buttons->addWidget(push_create_user);
|
||||||
hbox_buttons->addWidget(push_rename_user);
|
hbox_buttons->addWidget(push_edit_user);
|
||||||
hbox_buttons->addWidget(push_remove_user);
|
hbox_buttons->addWidget(push_remove_user);
|
||||||
hbox_buttons->addStretch();
|
hbox_buttons->addStretch();
|
||||||
hbox_buttons->addWidget(push_close);
|
hbox_buttons->addWidget(push_close);
|
||||||
|
@ -65,4 +65,8 @@ void user_manager_dialog::Init() {
|
||||||
vbox_main->addWidget(m_table);
|
vbox_main->addWidget(m_table);
|
||||||
vbox_main->addLayout(hbox_buttons);
|
vbox_main->addLayout(hbox_buttons);
|
||||||
setLayout(vbox_main);
|
setLayout(vbox_main);
|
||||||
|
|
||||||
|
// get active user
|
||||||
|
m_active_user = Config::getActiveUserId();
|
||||||
|
|
||||||
}
|
}
|
|
@ -16,4 +16,5 @@ private:
|
||||||
void Init();
|
void Init();
|
||||||
|
|
||||||
QTableWidget* m_table = nullptr;
|
QTableWidget* m_table = nullptr;
|
||||||
|
std::string m_active_user;
|
||||||
};
|
};
|
Loading…
Add table
Add a link
Reference in a new issue