Няма описание

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. #ifndef MAINWINDOW_H
  2. #define MAINWINDOW_H
  3. #include <QMainWindow>
  4. #include <QFileDialog>
  5. #include <QtMultimedia/QMediaPlayer>
  6. #include <QMessageBox>
  7. #include "wavesound.h"
  8. namespace Ui {
  9. class MainWindow;
  10. }
  11. class MainWindow : public QMainWindow
  12. {
  13. Q_OBJECT
  14. private:
  15. WaveSound ws;
  16. QAudioBuffer::S16S *Frames;
  17. QMediaPlayer *MediaPlayer;
  18. QString AudioInFile;
  19. QString AudioOutFile;
  20. public:
  21. explicit MainWindow(QWidget *parent = 0);
  22. ~MainWindow();
  23. private slots:
  24. void on_actionExit_triggered();
  25. void on_actionAbout_triggered();
  26. void on_Filter_Box_currentIndexChanged(int index);
  27. void on_Play_Audio_In_clicked();
  28. void on_Play_Audio_Out_clicked();
  29. void on_Search_Audio_In_clicked();
  30. void on_Search_Audio_Out_clicked();
  31. void on_Stop_Audio_In_clicked();
  32. void on_Stop_Audio_Out_clicked();
  33. void on_run_filter_clicked();
  34. void on_Action_Output_Audio_File_triggered();
  35. void on_Audio_Out_currentIndexChanged(const QString &arg1);
  36. void on_Action_Input_Audio_File_triggered();
  37. void on_Audio_In_currentIndexChanged(const QString &arg1);
  38. private:
  39. void setFilesAndButtonStatus(const QString &fileName);
  40. Ui::MainWindow *ui;
  41. };
  42. #endif //MAINWINDOW_H