🛠️🐜 Antkeeper superbuild with dependencies included https://antkeeper.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

85 lines
1.7 KiB

  1. #ifndef MAINWINDOW_H
  2. #define MAINWINDOW_H
  3. #include <QMainWindow>
  4. #include <QListWidget>
  5. namespace Ui {
  6. class MainWindow;
  7. }
  8. class MainWindow : public QMainWindow
  9. {
  10. Q_OBJECT
  11. public:
  12. explicit MainWindow(QWidget *parent = 0);
  13. ~MainWindow();
  14. private slots:
  15. void cancelCloseAction();
  16. void saveCurrentConfig();
  17. void saveConfigAsFile();
  18. void loadConfigFromFile();
  19. void showAboutPage();
  20. void enableApplyButton();
  21. void updateResamplerLabel(int num);
  22. void updatePeriodSizeEdit(int size);
  23. void updatePeriodSizeSlider();
  24. void updatePeriodCountEdit(int size);
  25. void updatePeriodCountSlider();
  26. void selectQuadDecoderFile();
  27. void select51DecoderFile();
  28. void select61DecoderFile();
  29. void select71DecoderFile();
  30. void updateJackBufferSizeEdit(int size);
  31. void updateJackBufferSizeSlider();
  32. void updateHrtfModeLabel(int num);
  33. void addHrtfFile();
  34. void removeHrtfFile();
  35. void updateHrtfRemoveButton();
  36. void showEnabledBackendMenu(QPoint pt);
  37. void showDisabledBackendMenu(QPoint pt);
  38. void selectOSSPlayback();
  39. void selectOSSCapture();
  40. void selectSolarisPlayback();
  41. void selectWaveOutput();
  42. private:
  43. Ui::MainWindow *ui;
  44. QValidator *mPeriodSizeValidator;
  45. QValidator *mPeriodCountValidator;
  46. QValidator *mSourceCountValidator;
  47. QValidator *mEffectSlotValidator;
  48. QValidator *mSourceSendValidator;
  49. QValidator *mSampleRateValidator;
  50. QValidator *mJackBufferValidator;
  51. bool mNeedsSave;
  52. void closeEvent(QCloseEvent *event);
  53. void selectDecoderFile(QLineEdit *line, const char *name);
  54. QStringList collectHrtfs();
  55. void loadConfig(const QString &fname);
  56. void saveConfig(const QString &fname) const;
  57. };
  58. #endif // MAINWINDOW_H