rpcs3/rpcs3/rpcs3qt/audiotab.cpp
Yukariin 74e806810d [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
2017-04-07 01:12:15 +03:00

44 lines
989 B
C++

#ifdef QT_UI
#include <QCheckBox>
#include <QComboBox>
#include <QGroupBox>
#include <QVBoxLayout>
#include <QHBoxLayout>
#include "audiotab.h"
AudioTab::AudioTab(QWidget *parent) : QWidget(parent)
{
// Audio Out
QGroupBox *audioOut = new QGroupBox(tr("Audio Out"));
QComboBox *audioOutBox = new QComboBox;
audioOutBox->addItem(tr("Null"));
#ifdef _WIN32
audioOutBox->addItem(tr("XAudio2"));
#endif // _WIN32
audioOutBox->addItem(tr("OpenAL"));
QVBoxLayout *audioOutVbox = new QVBoxLayout;
audioOutVbox->addWidget(audioOutBox);
audioOut->setLayout(audioOutVbox);
// Checkboxes
QCheckBox *audioDump = new QCheckBox(tr("Dump to file"));
QCheckBox *conv = new QCheckBox(tr("Convert to 16 bit"));
// Main layout
QVBoxLayout *vbox = new QVBoxLayout;
vbox->addWidget(audioOut);
vbox->addWidget(audioDump);
vbox->addWidget(conv);
vbox->addStretch();
QHBoxLayout *hbox = new QHBoxLayout;
hbox->addLayout(vbox);
hbox->addStretch();
setLayout(hbox);
}
#endif // QT_UI