Audio 1.0.0
audio.h
Go to the documentation of this file.
1
11#ifndef MAINWINDOW_H
12#define MAINWINDOW_H
13#include "controller.h"
14#include "updater.h"
15#include <map>
16#include <wx/gauge.h>
17#include <wx/listctrl.h>
18#include <wx/wx.h>
19
25class Audio : public wxFrame
26{
27
28 private:
29 AudioController* controller = nullptr;
30 std::string getPath(const std::string& filename);
31
32 wxMenuBar* menuBar = nullptr;
33
34 wxImage* cover = nullptr;
35 wxButton* loadBtn = nullptr;
36 wxButton* playBtn = nullptr;
37 wxButton* pauseBtn = nullptr;
38 wxButton* stopBtn = nullptr;
39 wxStaticText* progresslbl = nullptr;
40 wxStaticText* progressEndlbl = nullptr;
41 wxGauge* progress = nullptr;
42
43 wxStaticText* fileslbl = nullptr;
44 wxListCtrl* filesListBox = nullptr;
45 std::map<std::string, std::string>* files = nullptr;
46
47 // Audio Controls
48 wxStaticText* pitchlbl = nullptr;
49 wxButton* incpitchbtn = nullptr;
50 wxButton* decpitchbtn = nullptr;
51 wxComboBox* pitchcb = nullptr;
52 wxArrayString* pitchChoices;
53
54 protected:
55 // Events
56 void onloadBtnPress(wxCommandEvent& evt);
57 void onplayBtnPress(wxCommandEvent& evt);
58 void onpauseBtnPress(wxCommandEvent& evt);
59 void onstopBtnPress(wxCommandEvent& evt);
60 void onPitchIncrease(wxCommandEvent& evt);
61 void onPitchDecrease(wxCommandEvent& evt);
63
64 public:
66 ~Audio();
67};
68
69#endif
BASS controller.
Definition: controller.h:23
Main frame class.
Definition: audio.h:26
void onPitchDecrease(wxCommandEvent &evt)
Pitch decrease event.
Definition: audio.cpp:190
wxDECLARE_EVENT_TABLE()
void onpauseBtnPress(wxCommandEvent &evt)
Pause event.
Definition: audio.cpp:119
void onplayBtnPress(wxCommandEvent &evt)
Play event.
Definition: audio.cpp:129
void onstopBtnPress(wxCommandEvent &evt)
Stop event.
Definition: audio.cpp:142
void onPitchIncrease(wxCommandEvent &evt)
Pitch increase event.
Definition: audio.cpp:171
void onloadBtnPress(wxCommandEvent &evt)
Load file event.
Definition: audio.cpp:100
~Audio()
Destructor.
Definition: audio.cpp:90
Audio Controller class.