mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-07 07:25:26 +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
83
rpcs3/rpcs3qt/coretab.cpp
Normal file
83
rpcs3/rpcs3qt/coretab.cpp
Normal file
|
|
@ -0,0 +1,83 @@
|
|||
#ifdef QT_UI
|
||||
|
||||
#include <QCheckBox>
|
||||
#include <QGroupBox>
|
||||
#include <QRadioButton>
|
||||
#include <QVBoxLayout>
|
||||
#include <QHBoxLayout>
|
||||
#include <QDebug>
|
||||
|
||||
#include "coretab.h"
|
||||
|
||||
CoreTab::CoreTab(QWidget *parent) : QWidget(parent)
|
||||
{
|
||||
// PPU Decoder
|
||||
QGroupBox *ppuDecoder = new QGroupBox(tr("PPU Decoder"));
|
||||
|
||||
QRadioButton *ppuRadio1 = new QRadioButton(tr("Interpreter (precise)"));
|
||||
QRadioButton *ppuRadio2 = new QRadioButton(tr("Interpreter (fast)"));
|
||||
QRadioButton *ppuRadio3 = new QRadioButton(tr("Recompiler (LLVM)"));
|
||||
|
||||
QVBoxLayout *ppuVbox = new QVBoxLayout;
|
||||
ppuVbox->addWidget(ppuRadio1);
|
||||
ppuVbox->addWidget(ppuRadio2);
|
||||
ppuVbox->addWidget(ppuRadio3);
|
||||
ppuDecoder->setLayout(ppuVbox);
|
||||
|
||||
// SPU Decoder
|
||||
QGroupBox *spuDecoder = new QGroupBox(tr("SPU Decoder"));
|
||||
|
||||
QRadioButton *spuRadio1 = new QRadioButton(tr("Interpreter (precise)"));
|
||||
QRadioButton *spuRadio2 = new QRadioButton(tr("Interpreter (fast)"));
|
||||
QRadioButton *spuRadio3 = new QRadioButton(tr("Recompiler (ASMJIT)"));
|
||||
QRadioButton *spuRadio4 = new QRadioButton(tr("Recompiler (LLVM)"));
|
||||
spuRadio4->setEnabled(false); // TODO
|
||||
|
||||
QVBoxLayout *spuVbox = new QVBoxLayout;
|
||||
spuVbox->addWidget(spuRadio1);
|
||||
spuVbox->addWidget(spuRadio2);
|
||||
spuVbox->addWidget(spuRadio3);
|
||||
spuVbox->addWidget(spuRadio4);
|
||||
spuDecoder->setLayout(spuVbox);
|
||||
|
||||
// Checkboxes
|
||||
QCheckBox *hookStFunc = new QCheckBox(tr("Hook static functions"));
|
||||
QCheckBox *loadLiblv2 = new QCheckBox(tr("Load liblv2.sprx only"));
|
||||
|
||||
// Load libraries
|
||||
QGroupBox *lle = new QGroupBox(tr("Load libraries"));
|
||||
|
||||
lleList = new QListWidget;
|
||||
searchBox = new QLineEdit;
|
||||
connect(searchBox, &QLineEdit::textChanged, this, &CoreTab::OnSearchBoxTextChanged);
|
||||
|
||||
QVBoxLayout *lleVbox = new QVBoxLayout;
|
||||
lleVbox->addWidget(lleList);
|
||||
lleVbox->addWidget(searchBox);
|
||||
lle->setLayout(lleVbox);
|
||||
|
||||
// Main layout
|
||||
QVBoxLayout *vbox = new QVBoxLayout;
|
||||
vbox->addWidget(ppuDecoder);
|
||||
vbox->addWidget(spuDecoder);
|
||||
vbox->addWidget(hookStFunc);
|
||||
vbox->addWidget(loadLiblv2);
|
||||
vbox->addStretch();
|
||||
|
||||
QHBoxLayout *hbox = new QHBoxLayout;
|
||||
hbox->addLayout(vbox);
|
||||
hbox->addWidget(lle);
|
||||
setLayout(hbox);
|
||||
}
|
||||
|
||||
void CoreTab::OnSearchBoxTextChanged()
|
||||
{
|
||||
if (searchBox->text().isEmpty())
|
||||
qDebug() << "Empty!";
|
||||
|
||||
lleList->clear();
|
||||
|
||||
QString searchTerm = searchBox->text().toLower();
|
||||
}
|
||||
|
||||
#endif // QT_UI
|
||||
Loading…
Add table
Add a link
Reference in a new issue