Debian Codegraph @

components/extension/tagedit/chooser/chooser_albums.h

raw symbols SCIP
1 /* fre:ac - free audio converter
2 * Copyright (C) 2001-2018 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_TAGEDIT_CHOOSER_ALBUMS
14 #define H_TAGEDIT_CHOOSER_ALBUMS
15
16 #include <smooth.h>
17 #include <boca.h>
18
19 using namespace smooth;
20 using namespace smooth::GUI;
21
22 using namespace BoCA;
23
24 #include "chooser.h"
25
26 namespace BoCA
27 {
28 class ChooserAlbums : public Chooser
29 {
30 private:
31 Array<Track> tracks;
32 Array<Track> albums;
33
34 ListBox *list_albums;
35 DropArea *droparea_albums;
36
37 Shortcut *shortcut_previous;
38 Shortcut *shortcut_next;
39 Shortcut *shortcut_first;
40 Shortcut *shortcut_last;
41
42 Bool dontUpdateAlbumList;
43
44 Void AddToAlbumList(const Track &);
45 Void RemoveFromAlbumList(const Track &);
46
47 Void UpdateAlbumList();
48 Void UpdateAlbum(const Track &);
49
50 Bool IsAlbumIdentical(const Track &, const Track &);
51 slots:
52 Void OnApplicationAddTrack(const Track &);
53 Void OnApplicationModifyTrack(const Track &);
54 Void OnApplicationRemoveTrack(const Track &);
55 Void OnApplicationSelectTrack(const Track &);
56
57 Void OnApplicationRemoveAllTracks();
58
59 Void OnDropFiles(const Array<String> &);
60
61 Void OnSelectAlbum();
62
63 Void OnShortcutPrevious();
64 Void OnShortcutNext();
65 Void OnShortcutFirst();
66 Void OnShortcutLast();
67
68 Void OnModifyTrack(const Track &);
69
70 Void OnChangeSize(const Size &);
71 Void OnChangeLanguageSettings();
72 public:
73 ChooserAlbums();
74 ~ChooserAlbums();
75
76 Void ReselectEntry();
77 };
78 };
79
80 #endif