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();
43 void updateJackBufferSizeEdit(int size
);
44 void updateJackBufferSizeSlider();
46 void updateHrtfModeLabel(int num
);
48 void removeHrtfFile();
50 void updateHrtfRemoveButton();
52 void showEnabledBackendMenu(QPoint pt
);
53 void showDisabledBackendMenu(QPoint pt
);
55 void selectOSSPlayback();
56 void selectOSSCapture();
58 void selectSolarisPlayback();
60 void selectWaveOutput();
65 QValidator
*mPeriodSizeValidator
;
66 QValidator
*mPeriodCountValidator
;
67 QValidator
*mSourceCountValidator
;
68 QValidator
*mEffectSlotValidator
;
69 QValidator
*mSourceSendValidator
;
70 QValidator
*mSampleRateValidator
;
71 QValidator
*mJackBufferValidator
;
75 void closeEvent(QCloseEvent
*event
);
77 void selectDecoderFile(QLineEdit
*line
, const char *name
);
79 QStringList
collectHrtfs();
81 void loadConfig(const QString
&fname
);
82 void saveConfig(const QString
&fname
) const;
85 #endif // MAINWINDOW_H