mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-05 22:47:03 +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
90
rpcs3/rpcs3qt/inputtab.cpp
Normal file
90
rpcs3/rpcs3qt/inputtab.cpp
Normal file
|
|
@ -0,0 +1,90 @@
|
|||
#ifdef QT_UI
|
||||
|
||||
#include <QComboBox>
|
||||
#include <QGroupBox>
|
||||
#include <QVBoxLayout>
|
||||
#include <QHBoxLayout>
|
||||
|
||||
#include "inputtab.h"
|
||||
|
||||
InputTab::InputTab(QWidget *parent) : QWidget(parent)
|
||||
{
|
||||
// Pad Handler
|
||||
QGroupBox *padHandler = new QGroupBox(tr("Pad Handler"));
|
||||
|
||||
QComboBox *padHandlerBox = new QComboBox;
|
||||
padHandlerBox->addItem(tr("Null"));
|
||||
padHandlerBox->addItem(tr("Keyboard"));
|
||||
#ifdef _MSC_VER
|
||||
padHandlerBox->addItem(tr("XInput"));
|
||||
#endif // _MSC_VER
|
||||
|
||||
QVBoxLayout *padHandlerVbox = new QVBoxLayout;
|
||||
padHandlerVbox->addWidget(padHandlerBox);
|
||||
padHandler->setLayout(padHandlerVbox);
|
||||
|
||||
// Keyboard Handler
|
||||
QGroupBox *keyboardHandler = new QGroupBox(tr("Keyboard Handler"));
|
||||
|
||||
QComboBox *keyboardHandlerBox = new QComboBox;
|
||||
keyboardHandlerBox->addItem(tr("Null"));
|
||||
keyboardHandlerBox->addItem(tr("Basic"));
|
||||
|
||||
QVBoxLayout *keyboardHandlerVbox = new QVBoxLayout;
|
||||
keyboardHandlerVbox->addWidget(keyboardHandlerBox);
|
||||
keyboardHandler->setLayout(keyboardHandlerVbox);
|
||||
|
||||
// Mouse Handler
|
||||
QGroupBox *mouseHandler = new QGroupBox(tr("Mouse Handler"));
|
||||
|
||||
QComboBox *mouseHandlerBox = new QComboBox;
|
||||
mouseHandlerBox->addItem(tr("Null"));
|
||||
mouseHandlerBox->addItem(tr("Basic"));
|
||||
|
||||
QVBoxLayout *mouseHandlerVbox = new QVBoxLayout;
|
||||
mouseHandlerVbox->addWidget(mouseHandlerBox);
|
||||
mouseHandler->setLayout(mouseHandlerVbox);
|
||||
|
||||
// Camera
|
||||
QGroupBox *camera = new QGroupBox(tr("Camera"));
|
||||
|
||||
QComboBox *cameraBox = new QComboBox;
|
||||
cameraBox->addItem(tr("Null"));
|
||||
cameraBox->addItem(tr("Fake"));
|
||||
|
||||
QVBoxLayout *cameraVbox = new QVBoxLayout;
|
||||
cameraVbox->addWidget(cameraBox);
|
||||
camera->setLayout(cameraVbox);
|
||||
|
||||
// Camera type
|
||||
QGroupBox *cameraType = new QGroupBox(tr("Camera type"));
|
||||
|
||||
QComboBox *cameraTypeBox = new QComboBox;
|
||||
cameraTypeBox->addItem(tr("Unknown"));
|
||||
cameraTypeBox->addItem(tr("EyeToy"));
|
||||
cameraTypeBox->addItem(tr("PS Eye"));
|
||||
cameraTypeBox->addItem(tr("UVC 1.1"));
|
||||
|
||||
QVBoxLayout *cameraTypeVbox = new QVBoxLayout;
|
||||
cameraTypeVbox->addWidget(cameraTypeBox);
|
||||
cameraType->setLayout(cameraTypeVbox);
|
||||
|
||||
// Main layout
|
||||
QVBoxLayout *vbox1 = new QVBoxLayout;
|
||||
vbox1->addWidget(padHandler);
|
||||
vbox1->addWidget(keyboardHandler);
|
||||
vbox1->addWidget(mouseHandler);
|
||||
vbox1->addStretch();
|
||||
|
||||
QVBoxLayout *vbox2 = new QVBoxLayout;
|
||||
vbox2->addWidget(camera);
|
||||
vbox2->addWidget(cameraType);
|
||||
vbox2->addStretch();
|
||||
|
||||
QHBoxLayout *hbox = new QHBoxLayout;
|
||||
hbox->addLayout(vbox1);
|
||||
hbox->addLayout(vbox2);
|
||||
setLayout(hbox);
|
||||
}
|
||||
|
||||
#endif // QT_UI
|
||||
Loading…
Add table
Add a link
Reference in a new issue