mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-01-06 00:30:18 +01:00
* 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
50 lines
1.4 KiB
C++
50 lines
1.4 KiB
C++
#ifdef QT_UI
|
|
|
|
#include <QVBoxLayout>
|
|
#include <QHBoxLayout>
|
|
#include <QPushButton>
|
|
|
|
#include "coretab.h"
|
|
#include "graphicstab.h"
|
|
#include "audiotab.h"
|
|
#include "inputtab.h"
|
|
#include "misctab.h"
|
|
#include "networkingtab.h"
|
|
#include "systemtab.h"
|
|
#include "settingsdialog.h"
|
|
|
|
SettingsDialog::SettingsDialog(QWidget *parent) : QDialog(parent)
|
|
{
|
|
tabWidget = new QTabWidget;
|
|
tabWidget->addTab(new CoreTab(this), tr("Core"));
|
|
tabWidget->addTab(new GraphicsTab(this), tr("Graphics"));
|
|
tabWidget->addTab(new AudioTab(this), tr("Audio"));
|
|
tabWidget->addTab(new InputTab(this), tr("Input / Output"));
|
|
tabWidget->addTab(new MiscTab(this), tr("Misc"));
|
|
tabWidget->addTab(new NetworkingTab(this), tr("Networking"));
|
|
tabWidget->addTab(new SystemTab(this), tr("System"));
|
|
|
|
QPushButton *okButton = new QPushButton(tr("OK"));
|
|
connect(okButton, &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->addStretch();
|
|
buttonsLayout->addWidget(okButton);
|
|
buttonsLayout->addWidget(cancelButton);
|
|
|
|
QVBoxLayout *mainLayout = new QVBoxLayout;
|
|
mainLayout->addWidget(tabWidget);
|
|
mainLayout->addLayout(buttonsLayout);
|
|
setLayout(mainLayout);
|
|
|
|
cancelButton->setFocus();
|
|
|
|
setWindowTitle(tr("Settings"));
|
|
}
|
|
|
|
#endif // QT_UI
|