chiaki/gui/include/settingsdialog.h
Johannes Baiter c2f0932670 gui: Support for DualSense haptics and trigger effects
Haptics with PulseAudio does not seem to be working properly, so using
Pipewire as a backend is recommended (and picked by default, if
available via an SDL hint).
2023-02-01 18:05:59 +01:00

63 lines
1.4 KiB
C++

// SPDX-License-Identifier: LicenseRef-AGPL-3.0-only-OpenSSL
#ifndef CHIAKI_SETTINGSDIALOG_H
#define CHIAKI_SETTINGSDIALOG_H
#include <QDialog>
class Settings;
class QListWidget;
class QComboBox;
class QCheckBox;
class QLineEdit;
class SettingsDialog : public QDialog
{
Q_OBJECT
private:
Settings *settings;
QCheckBox *log_verbose_check_box;
QComboBox *disconnect_action_combo_box;
QCheckBox *dualsense_check_box;
QComboBox *resolution_combo_box;
QComboBox *fps_combo_box;
QLineEdit *bitrate_edit;
QComboBox *codec_combo_box;
QLineEdit *audio_buffer_size_edit;
QComboBox *audio_device_combo_box;
QCheckBox *pi_decoder_check_box;
QComboBox *hw_decoder_combo_box;
QListWidget *registered_hosts_list_widget;
QPushButton *delete_registered_host_button;
void UpdateBitratePlaceholder();
private slots:
void LogVerboseChanged();
void DualSenseChanged();
void DisconnectActionSelected();
void ResolutionSelected();
void FPSSelected();
void BitrateEdited();
void CodecSelected();
void AudioBufferSizeEdited();
void AudioOutputSelected();
void HardwareDecodeEngineSelected();
void UpdateHardwareDecodeEngineComboBox();
void UpdateRegisteredHosts();
void UpdateRegisteredHostsButtons();
void RegisterNewHost();
void DeleteRegisteredHost();
public:
SettingsDialog(Settings *settings, QWidget *parent = nullptr);
};
#endif // CHIAKI_SETTINGSDIALOG_H