mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-06 23:15:18 +00:00
[WIP] Update Qt interface (#2336)
* Fix rpcs3qt Linux build * Files clean up * Add base MainWindow class * Add slot stubs * Update MainWindow::DecryptSPRXLibraries * Add SettingsDialog base class and tab stubs * Add CoreTab base layout * Add compile guards * Minor fixes * Add GraphicsTab base layout * Add OK button signal * Remove QML stuff * Fix indentation * Add AudioTab base layout * Add InputTab base layout * Fix layouts * Add MiscTab base layout * Fix layouts * Add NetworkingTab base layout * Add SystemTab base layout * Fix button layout in SettingsDialog * Make SettingsDialog resizable * Add base dock widget stubs * Add very base PadSettingsDialog layout * Add combo box entries * Abb LogFrame base layout * Fix indent * Abb GameListFrame base layout * Minor fixes * Add AutoPauseSettingsDialog base layout
This commit is contained in:
parent
d8dc4f4474
commit
74e806810d
30 changed files with 1434 additions and 12 deletions
49
rpcs3/rpcs3qt/AutoPauseSettingsDialog.cpp
Normal file
49
rpcs3/rpcs3qt/AutoPauseSettingsDialog.cpp
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
#ifdef QT_UI
|
||||
|
||||
#include <QVBoxLayout>
|
||||
#include <QPushButton>
|
||||
#include <QLabel>
|
||||
#include <QTableWidget>
|
||||
|
||||
#include "AutoPauseSettingsDialog.h"
|
||||
|
||||
AutoPauseSettingsDialog::AutoPauseSettingsDialog(QWidget *parent) : QDialog(parent)
|
||||
{
|
||||
QLabel *desc = new QLabel(tr("To use auto pause: enter the ID(s) of a function or a system call.\nRestart of the game is required to apply. You can enable/disable this in the settings."));
|
||||
|
||||
QTableWidget *pauseList = new QTableWidget;
|
||||
pauseList->setColumnCount(2);
|
||||
pauseList->setHorizontalHeaderItem(0, new QTableWidgetItem(tr("Call ID")));
|
||||
pauseList->setHorizontalHeaderItem(1, new QTableWidgetItem(tr("Type")));
|
||||
|
||||
QPushButton *clearButton = new QPushButton(tr("Clear"));
|
||||
|
||||
QPushButton *reloadButton = new QPushButton(tr("Reload"));
|
||||
|
||||
QPushButton *saveButton = new QPushButton(tr("Save"));
|
||||
connect(saveButton, &QAbstractButton::clicked, this, &QDialog::accept);
|
||||
|
||||
QPushButton *cancelButton = new QPushButton(tr("Cancel"));
|
||||
cancelButton->setDefault(true);
|
||||
connect(cancelButton, &QAbstractButton::clicked, this, &QWidget::close);
|
||||
|
||||
QHBoxLayout *buttonsLayout = new QHBoxLayout;
|
||||
buttonsLayout->addWidget(clearButton);
|
||||
buttonsLayout->addWidget(reloadButton);
|
||||
buttonsLayout->addStretch();
|
||||
buttonsLayout->addWidget(saveButton);
|
||||
buttonsLayout->addWidget(cancelButton);
|
||||
|
||||
QVBoxLayout *mainLayout = new QVBoxLayout;
|
||||
mainLayout->addWidget(desc);
|
||||
mainLayout->addWidget(pauseList);
|
||||
mainLayout->addLayout(buttonsLayout);
|
||||
setLayout(mainLayout);
|
||||
|
||||
setMinimumSize(QSize(400, 360));
|
||||
|
||||
setWindowTitle(tr("Auto Pause Manager"));
|
||||
}
|
||||
|
||||
#endif // QT_UI
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue