clang-tidy cleanups (#800)
[openal-soft.git] / utils / alsoft-config / mainwindow.h
blobf7af8eace57c20014e7e87f26b446aac35d0c832
1 #ifndef MAINWINDOW_H
2 #define MAINWINDOW_H
4 #include <QMainWindow>
5 #include <QListWidget>
7 namespace Ui {
8 class MainWindow;
11 class MainWindow : public QMainWindow
13 Q_OBJECT
15 public:
16 explicit MainWindow(QWidget *parent = 0);
17 ~MainWindow();
19 private slots:
20 void cancelCloseAction();
22 void saveCurrentConfig();
24 void saveConfigAsFile();
25 void loadConfigFromFile();
27 void showAboutPage();
29 void enableApplyButton();
31 void updateResamplerLabel(int num);
33 void updatePeriodSizeEdit(int size);
34 void updatePeriodSizeSlider();
35 void updatePeriodCountEdit(int size);
36 void updatePeriodCountSlider();
38 void selectQuadDecoderFile();
39 void select51DecoderFile();
40 void select61DecoderFile();
41 void select71DecoderFile();
42 void select3D71DecoderFile();
44 void updateJackBufferSizeEdit(int size);
45 void updateJackBufferSizeSlider();
47 void updateHrtfModeLabel(int num);
48 void addHrtfFile();
49 void removeHrtfFile();
51 void updateHrtfRemoveButton();
53 void showEnabledBackendMenu(QPoint pt);
54 void showDisabledBackendMenu(QPoint pt);
56 void selectOSSPlayback();
57 void selectOSSCapture();
59 void selectSolarisPlayback();
61 void selectWaveOutput();
63 private:
64 Ui::MainWindow *ui;
66 QValidator *mPeriodSizeValidator;
67 QValidator *mPeriodCountValidator;
68 QValidator *mSourceCountValidator;
69 QValidator *mEffectSlotValidator;
70 QValidator *mSourceSendValidator;
71 QValidator *mSampleRateValidator;
72 QValidator *mJackBufferValidator;
74 bool mNeedsSave;
76 void closeEvent(QCloseEvent *event);
78 void selectDecoderFile(QLineEdit *line, const char *name);
80 QStringList collectHrtfs();
82 void loadConfig(const QString &fname);
83 void saveConfig(const QString &fname) const;
86 #endif // MAINWINDOW_H