| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
#ifndef H_FREAC_PLAYBACK |
| 14 |
#define H_FREAC_PLAYBACK |
| 15 |
|
| 16 |
#include <smooth.h> |
| 17 |
#include <boca.h> |
| 18 |
|
| 19 |
using namespace smooth; |
| 20 |
using namespace smooth::GUI; |
| 21 |
|
| 22 |
namespace freac |
| 23 |
{ |
| 24 |
class Player; |
| 25 |
class JobList; |
| 26 |
|
| 27 |
class PlaybackWidget : public Layer |
| 28 |
{ |
| 29 |
private: |
| 30 |
Player *player; |
| 31 |
JobList *joblist; |
| 32 |
|
| 33 |
Button *button_play; |
| 34 |
Button *button_pause; |
| 35 |
Button *button_stop; |
| 36 |
Button *button_prev; |
| 37 |
Button *button_next; |
| 38 |
Button *button_open; |
| 39 |
|
| 40 |
Slider *slider_play; |
| 41 |
|
| 42 |
BoCA::Track playingTrack; |
| 43 |
public: |
| 44 |
PlaybackWidget(Player *, JobList *); |
| 45 |
~PlaybackWidget(); |
| 46 |
slots: |
| 47 |
Void OnChangeLanguageSettings(); |
| 48 |
|
| 49 |
Void OnJoblistRemoveTrack(const BoCA::Track &); |
| 50 |
Void OnJoblistRemoveAllTracks(); |
| 51 |
|
| 52 |
Void PlaySelectedItem(); |
| 53 |
Void PlayPreviousItem(); |
| 54 |
Void PlayNextItem(); |
| 55 |
|
| 56 |
Void Play(const BoCA::Track &); |
| 57 |
|
| 58 |
Void PauseResumePlayback(); |
| 59 |
Void StopPlayback(); |
| 60 |
|
| 61 |
Void OnPlay(const BoCA::Track &); |
| 62 |
Void OnFinish(const BoCA::Track &); |
| 63 |
|
| 64 |
Void OpenCDTray(); |
| 65 |
|
| 66 |
Void OnChangePlayPosition(); |
| 67 |
}; |
| 68 |
}; |
| 69 |
|
| 70 |
#endif |