| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 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 |