-
Notifications
You must be signed in to change notification settings - Fork 0
/
frmaddeditplaylist.h
52 lines (43 loc) · 1.35 KB
/
frmaddeditplaylist.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#ifndef FRMADDEDITPLAYLIST_H
#define FRMADDEDITPLAYLIST_H
#include <QDialog>
#include <QSet>
#include <QTreeWidgetItem>
#include "lib/skglib.h"
#include "customalbumlist.h"
#include "playlist.h"
namespace Ui {
class frmAddEditPlaylist;
}
class frmAddEditPlaylist : public QDialog {
Q_OBJECT
public:
frmAddEditPlaylist(QWidget *parent = 0);
~frmAddEditPlaylist();
Playlist* GetPlaylist();
void ProcessAddList(SKG_MusicLibrary *lib,CustomAlbumList *list = NULL);
void ProcessEditList(SKG_MusicLibrary *lib, Playlist *plist,CustomAlbumList *list = NULL);
protected:
void changeEvent(QEvent *e);
private:
Ui::frmAddEditPlaylist *ui;
Playlist *List;
SKG_MusicLibrary *Library;
QList <long> *TracksToAdd;
CustomAlbumList *CustomList;
void DisplayAvailableTracks();
void DisplayTracksInList();
void RefreshLists();
SKG_Artist *ArtistByName(QList <SKG_Artist*> artistlist,QString artistname);
SKG_Album *AlbumByName(QList <SKG_Album*> albumlist,QString artistname,QString albumname);
private slots:
void AddTracksToList();
void RemoveTracksFromList();
void ProcessItemChecked(QTreeWidgetItem *item, int column);
void btnSaveClicked();
void MoveTrackUp();
void MoveTrackDown();
void KeyPressed(int keycode,bool shift);
void ShowKeyboard();
};
#endif // FRMADDEDITPLAYLIST_H