My Project
mainwindow.h
1 #ifndef MAINWINDOW_H
2 #define MAINWINDOW_H
3 
4 #include <QMainWindow>
5 #include <QFileDialog>
6 #include <QtMultimedia/QMediaPlayer>
7 #include <QMessageBox>
8 #include "wavesound.h"
9 
10 namespace Ui {
11 class MainWindow;
12 }
13 
14 class MainWindow : public QMainWindow
15 {
16  Q_OBJECT
17 private:
18  WaveSound ws;
19  QAudioBuffer::S16S *Frames;
20  QMediaPlayer *MediaPlayer;
21  QString AudioInFile;
22  QString AudioOutFile;
23 
24 public:
25  explicit MainWindow(QWidget *parent = 0);
26  ~MainWindow();
27 
28 private slots:
29 
30  void on_actionExit_triggered();
31 
32  void on_actionAbout_triggered();
33 
34  void on_Filter_Box_currentIndexChanged(int index);
35 
36  void on_Play_Audio_In_clicked();
37 
38  void on_Play_Audio_Out_clicked();
39 
40  void on_Search_Audio_In_clicked();
41 
42  void on_Search_Audio_Out_clicked();
43 
44  void on_Stop_Audio_In_clicked();
45 
46  void on_Stop_Audio_Out_clicked();
47 
48  void on_run_filter_clicked();
49 
50  void on_Action_Output_Audio_File_triggered();
51 
52  void on_Audio_Out_currentIndexChanged(const QString &arg1);
53 
54  void on_Action_Input_Audio_File_triggered();
55 
56  void on_Audio_In_currentIndexChanged(const QString &arg1);
57 
58 private:
59  void setFilesAndButtonStatus(const QString &fileName);
60 
61  Ui::MainWindow *ui;
62 
63 };
64 
65 #endif //MAINWINDOW_H
Definition: mainwindow.h:10
~MainWindow()
GUI Destructor.
Definition: mainwindow.cpp:25
MainWindow(QWidget *parent=0)
GUI Constructor.
Definition: mainwindow.cpp:12
Definition: mainwindow.h:14
Definition: wavesound.h:12