Debian Codegraph @

include/gui/playback.h

raw symbols SCIP
1 /* fre:ac - free audio converter
2 * Copyright (C) 2001-2020 Robert Kausch <[email protected]>
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License as
6 * published by the Free Software Foundation, either version 2 of
7 * the License, or (at your option) any later version.
8 *
9 * THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR
10 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
11 * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. */
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