#ifndef MAINWINDOW_H #define MAINWINDOW_H #include #include namespace Ui { class MainWindow; } class MainWindow : public QMainWindow { Q_OBJECT public: explicit MainWindow(QWidget *parent = 0); ~MainWindow(); private slots: void cancelCloseAction(); void saveCurrentConfig(); void saveConfigAsFile(); void loadConfigFromFile(); void enableApplyButton(); void updateResamplerLabel(int num); void updatePeriodSizeEdit(int size); void updatePeriodSizeSlider(); void updatePeriodCountEdit(int size); void updatePeriodCountSlider(); void addHrtfFile(); void removeHrtfFile(); void updateHrtfRemoveButton(); void showEnabledBackendMenu(QPoint pt); void showDisabledBackendMenu(QPoint pt); private: Ui::MainWindow *ui; QValidator *mPeriodSizeValidator; QValidator *mPeriodCountValidator; QValidator *mSourceCountValidator; QValidator *mEffectSlotValidator; QValidator *mSourceSendValidator; QValidator *mSampleRateValidator; bool mNeedsSave; void closeEvent(QCloseEvent *event); QStringList collectDefaultHrtfs(); void loadConfig(const QString &fname); void saveConfig(const QString &fname) const; }; #endif // MAINWINDOW_H