11 class MainWindow
: public QMainWindow
16 explicit MainWindow(QWidget
*parent
= 0);
20 void cancelCloseAction();
22 void saveCurrentConfig();
24 void saveConfigAsFile();
25 void loadConfigFromFile();
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
);
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();
66 QValidator
*mPeriodSizeValidator
;
67 QValidator
*mPeriodCountValidator
;
68 QValidator
*mSourceCountValidator
;
69 QValidator
*mEffectSlotValidator
;
70 QValidator
*mSourceSendValidator
;
71 QValidator
*mSampleRateValidator
;
72 QValidator
*mJackBufferValidator
;
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