~mixxxdevelopers/mixxx/trunk

« back to all changes in this revision

Viewing changes to mixxx/src/library/playlistfeature.h

  • Committer: Raffitea
  • Date: 2011-01-07 00:44:11 UTC
  • mfrom: (2616.1.25 traktor_library)
  • Revision ID: raffitea-20110107004411-lz9m8mnny3sf86rq
Merging from lp:~mixxxdevelopers/mixxx/traktor_library
* support for n-level childmodels in sidebar
* M3U and PLS playlist import

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
#include "library/libraryfeature.h"
12
12
#include "library/dao/playlistdao.h"
13
13
#include "library/dao/trackdao.h"
 
14
#include "treeitemmodel.h"
 
15
 
14
16
 
15
17
class PlaylistTableModel;
16
18
class TrackCollection;
29
31
    bool dragMoveAccept(QUrl url);
30
32
    bool dragMoveAcceptChild(const QModelIndex& index, QUrl url);
31
33
 
32
 
    QAbstractItemModel* getChildModel();
33
 
 
 
34
    TreeItemModel* getChildModel();
 
35
 
34
36
    void bindWidget(WLibrarySidebar* sidebarWidget,
35
37
                    WLibrary* libraryWidget,
36
38
                    MixxxKeyboard* keyboard);
45
47
 
46
48
    void slotCreatePlaylist();
47
49
    void slotDeletePlaylist();
 
50
        void slotRenamePlaylist();
 
51
    void slotImportPlaylist();
48
52
 
49
53
 private:
 
54
        void constructChildModel();
 
55
    void clearChildModel();
 
56
    
50
57
    PlaylistTableModel* m_pPlaylistTableModel;
51
58
    PlaylistDAO &m_playlistDao;
52
59
    TrackDAO &m_trackDao;
53
60
    QAction *m_pCreatePlaylistAction;
54
61
    QAction *m_pDeletePlaylistAction;
 
62
    QAction *m_pRenamePlaylistAction;
 
63
    QAction *m_pImportPlaylistAction;
55
64
    QSqlTableModel m_playlistTableModel;
56
65
    QModelIndex m_lastRightClickedIndex;
 
66
    TreeItemModel m_childModel;
57
67
};
58
68
 
59
69
#endif /* PLAYLISTFEATURE_H */