Debian Codegraph @

src/playlist.h

raw symbols SCIP
1 /*
2 Copyright (C) 2005-2014 Mario Stephan <[email protected]>
3
4 This library is free software; you can redistribute it and/or modify
5 it under the terms of the GNU Lesser General Public License as published
6 by the Free Software Foundation; either version 2.1 of the License, or
7 (at your option) any later version.
8
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
13
14 You should have received a copy of the GNU Lesser General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
16 */
17
18 #ifndef PLAYLIST_H
19 #define PLAYLIST_Hcxx . . $ `src/playlist.h:19:9`!
20
21 #include "track.h"cxx . . $ `<file>/src/track.h`/
22
23 #include <QTreeWidget>
24
25 class Playlistcxx . . $ Playlist# : public QTreeWidgetcxx . . $ QTreeWidget# {
26 Q_OBJECTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:170:9`!
27 public:
28 Playlistcxx . . $ Playlist#Playlist(108f35f7aa7f3cf9).(QWidgetcxx . . $ QWidget#* parent = nullptr);
29 ~cxx . . $ Playlist#`~Playlist`(ced63f7c635d850d).Playlistcxx . . $ Playlist#();
30 //virtual void keyPressEvent ( QKeyEvent* e );
31 //virtual bool isExecuteArea( const QPoint& point );
32
33 enum Modecxx . . $ Playlist#Mode# { Tracklistcxx . . $ Playlist#Tracklist. = 0,
34 Playlist_Singlecxx . . $ Playlist#Playlist_Single. = 1,
35 Playlist_Multicxx . . $ Playlist#Playlist_Multi. = 2
36 };
37
38 /** Add a songs to the plalist*/
39 void addTrackcxx . . $ Playlist#addTrack(39030c23652f50b4).(QUrlcxx . . $ QUrl# file, PlaylistItemcxx . . $ PlaylistItem#* after);
40 void appendSongcxx . . $ Playlist#appendSong(c7ced298c7283c1a).(Trackcxx . . $ Track#* track);
41 void addTrackcxx . . $ Playlist#addTrack(58853a9f173e335c).(Trackcxx . . $ Track#* track, PlaylistItemcxx . . $ PlaylistItem#* after);
42 void appendSongcxx . . $ Playlist#appendSong(7df51288a9ebd664).(QStringcxx . . $ QString# songFileName);
43 void appendListcxx . . $ Playlist#appendList(d57bff85900e1dfd).(QListcxx . . $ QList#<QUrlcxx . . $ QUrl#>, PlaylistItemcxx . . $ PlaylistItem#* after);
44 void appendTrackscxx . . $ Playlist#appendTracks(c63e2316933a5574).(const QListcxx . . $ QList#<Trackcxx . . $ Track#*> tracks, PlaylistItemcxx . . $ PlaylistItem#* after);
45
46 void saveXMLcxx . . $ Playlist#saveXML(7fba01612ab56717).(const QStringcxx . . $ QString#&) const;
47 void loadXMLcxx . . $ Playlist#loadXML(3520e46b33348bf6).(const QStringcxx . . $ QString#&);
48
49 //----------------
50 PlaylistItemcxx . . $ PlaylistItem#* firstTrackcxx . . $ Playlist#firstTrack(51fa73fd7dca94c4).() const { return firstChildcxx . . $ Playlist#firstChild(51fa73fd7dca94c4).(); }
51 PlaylistItemcxx . . $ PlaylistItem#* nextTrackcxx . . $ Playlist#nextTrack(51fa73fd7dca94c4).() const { return nextPlaylistItemcxx . . $ Playlist#nextPlaylistItem.; }
52 PlaylistItemcxx . . $ PlaylistItem#* currentTrackcxx . . $ Playlist#currentTrack(51fa73fd7dca94c4).() const { return currentPlaylistItemcxx . . $ Playlist#currentPlaylistItem.; }
53 PlaylistItemcxx . . $ PlaylistItem#* dragTrackcxx . . $ Playlist#dragTrack(51fa73fd7dca94c4).() const { return (PlaylistItemcxx . . $ PlaylistItem#*)this->currentItemcxx . . $ QTreeWidget#currentItem(faf259b556e61ea0).(); }
54 PlaylistItemcxx . . $ PlaylistItem#* newTrackcxx . . $ Playlist#newTrack(51fa73fd7dca94c4).() const { return newPlaylistItemcxx . . $ Playlist#newPlaylistItem.; }
55 QListcxx . . $ QList#<Trackcxx . . $ Track#*> allTrackscxx . . $ Playlist#allTracks(90c909b7da9f26e2).();
56 bool isCurrentListcxx . . $ Playlist#isCurrentList(50ce9a9e25b4a850).() const { return m_isCurrentListcxx . . $ Playlist#m_isCurrentList.; }
57 void setIsCurrentListcxx . . $ Playlist#setIsCurrentList(b45ddcbc8423892c).(bool b)
58 {
59 m_isCurrentListcxx . . $ Playlist#m_isCurrentList. = b;
60 handleChangescxx . . $ Playlist#handleChanges(49f6e7a06ebc5aa8).();
61 }
62
63 bool isEmptycxx . . $ Playlist#isEmpty(50ce9a9e25b4a850).() const { return this->topLevelItemCountcxx . . $ QTreeWidget#topLevelItemCount(455f465bc33b4cdf).() == 0; }
64 bool isFirstcxx . . $ Playlist#isFirst(50ce9a9e25b4a850).() const { return this->topLevelItemCountcxx . . $ QTreeWidget#topLevelItemCount(455f465bc33b4cdf).() == 1; }
65
66 void setPlaylistModecxx . . $ Playlist#setPlaylistMode(2d18f437f150c3ac).(Modecxx . . $ Playlist#Mode#);
67 void setAutoClearOncxx . . $ Playlist#setAutoClearOn(b45ddcbc8423892c).(bool b) { autoClearOncxx . . $ Playlist#autoClearOn. = b; }
68
69 QStringcxx . . $ QString# defaultPlaylistPathcxx . . $ Playlist#defaultPlaylistPath(4365c3963150523e).();
70 static void showTrackInfocxx . . $ Playlist#showTrackInfo(c7ced298c7283c1a).(Trackcxx . . $ Track#* bundle);
71 PlaylistItemcxx . . $ PlaylistItem#* lastChildcxx . . $ Playlist#lastChild(51fa73fd7dca94c4).() const { return (PlaylistItemcxx . . $ PlaylistItem#*)topLevelItemcxx . . $ QTreeWidget#topLevelItem(bdbf10533f234380).(topLevelItemCountcxx . . $ QTreeWidget#topLevelItemCount(455f465bc33b4cdf).() - 1); }
72 int countTrackcxx . . $ Playlist#countTrack(455f465bc33b4cdf).() const { return topLevelItemCountcxx . . $ QTreeWidget#topLevelItemCount(455f465bc33b4cdf).(); }
73
74 //ToDo: what is for private only? Sort!
75
76 protected:
77 void keyPressEventcxx . . $ Playlist#keyPressEvent(c92999c1b6b09cc0).(QKeyEventcxx . . $ QKeyEvent#* event);
78 void mousePressEventcxx . . $ Playlist#mousePressEvent(702858a82d06265c).(QMouseEventcxx . . $ QMouseEvent#* event);
79 void mouseMoveEventcxx . . $ Playlist#mouseMoveEvent(702858a82d06265c).(QMouseEventcxx . . $ QMouseEvent#* event);
80 void mouseReleaseEventcxx . . $ Playlist#mouseReleaseEvent(702858a82d06265c).(QMouseEventcxx . . $ QMouseEvent#* event);
81 void mouseDoubleClickEventcxx . . $ Playlist#mouseDoubleClickEvent(702858a82d06265c).(QMouseEventcxx . . $ QMouseEvent#* event);
82 void dragEnterEventcxx . . $ Playlist#dragEnterEvent(f87bde08e579de69).(QDragEnterEventcxx . . $ QDragEnterEvent#* event);
83 void dropEventcxx . . $ Playlist#dropEvent(163a41ccaa120447).(QDropEventcxx . . $ QDropEvent#* event);
84 void dragMoveEventcxx . . $ Playlist#dragMoveEvent(211fc5550e6ec45c).(QDragMoveEventcxx . . $ QDragMoveEvent#* event);
85 void dragLeaveEventcxx . . $ Playlist#dragLeaveEvent(4ee6f5241ec34764).(QDragLeaveEventcxx . . $ QDragLeaveEvent#* event);
86 void paintEventcxx . . $ Playlist#paintEvent(f239c9e85d61a220).(QPaintEventcxx . . $ QPaintEvent#* event); //For better DropTarget
87
88 QMimeDatacxx . . $ QMimeData#* mimeDatacxx . . $ Playlist#mimeData.;
89 QDragcxx . . $ QDrag#* dragcxx . . $ Playlist#drag.;
90 QRectcxx . . $ QRect# dropSitecxx . . $ Playlist#dropSite.;
91 Qtcxx . . $ Qt/::DropActioncxx . . $ Qt/DropAction# dropActioncxx . . $ Playlist#dropAction.;
92 bool showDropHighlightercxx . . $ Playlist#showDropHighlighter.;
93
94 public Q_SLOTScxx . . $ `<external>/1208926524888476972/qobjectdefs.h:92:10`!:
95 void appendListcxx . . $ Playlist#appendList(dcf78a2ef3a8e634).(QListcxx . . $ QList#<QUrlcxx . . $ QUrl#>);
96 void appendTrackscxx . . $ Playlist#appendTracks(c2e0487a5277a49e).(const QListcxx . . $ QList#<Trackcxx . . $ Track#*> tracks);
97 void changeTrackscxx . . $ Playlist#changeTracks(c2e0487a5277a49e).(const QListcxx . . $ QList#<Trackcxx . . $ Track#*> tracks);
98 void addCurrentTrackcxx . . $ Playlist#addCurrentTrack(c7ced298c7283c1a).(Trackcxx . . $ Track#*);
99 void addNextTrackcxx . . $ Playlist#addNextTrack(c7ced298c7283c1a).(Trackcxx . . $ Track#*);
100 void removeSelectedItemscxx . . $ Playlist#removeSelectedItems(49f6e7a06ebc5aa8).();
101 void setPlayingcxx . . $ Playlist#setPlaying(b45ddcbc8423892c).(bool plays) { m_isPlayingcxx . . $ Playlist#m_isPlaying. = plays; }
102 bool isPlayingcxx . . $ Playlist#isPlaying(c9857a73d68e59ba).() { return m_isPlayingcxx . . $ Playlist#m_isPlaying.; }
103 void setAlternateMaxcxx . . $ Playlist#setAlternateMax(d4f767463ce0a6b3).(int max)
104 {
105 m_alternateMaxcxx . . $ Playlist#m_alternateMax. = max;
106 fillNoColumncxx . . $ Playlist#fillNoColumn(49f6e7a06ebc5aa8).();
107 }
108 void skipForwardcxx . . $ Playlist#skipForward(49f6e7a06ebc5aa8).();
109 void skipRewindcxx . . $ Playlist#skipRewind(49f6e7a06ebc5aa8).();
110 void onRatingChangedcxx . . $ Playlist#onRatingChanged(9364e6e7bff7660).(float);
111
112 Q_SIGNALScxx . . $ `<external>/1208926524888476972/qobjectdefs.h:93:10`!:
113 void currentTrackChangedcxx . . $ Playlist#currentTrackChanged(c7ced298c7283c1a).(Trackcxx . . $ Track#*);
114 void trackDoubleClickedcxx . . $ Playlist#trackDoubleClicked(c7ced298c7283c1a).(Trackcxx . . $ Track#*);
115 void trackPropertyChangedcxx . . $ Playlist#trackPropertyChanged(c7ced298c7283c1a).(Trackcxx . . $ Track#*);
116 void trackSelectedcxx . . $ Playlist#trackSelected(c7ced298c7283c1a).(Trackcxx . . $ Track#*);
117 void wantSearchcxx . . $ Playlist#wantSearch(7df51288a9ebd664).(QStringcxx . . $ QString#);
118 void wantLoadcxx . . $ Playlist#wantLoad(f9acf7808b11c0bc).(Trackcxx . . $ Track#*, QStringcxx . . $ QString#);
119 void countChangedcxx . . $ Playlist#countChanged(d4f767463ce0a6b3).(int);
120 void countChangedcxx . . $ Playlist#countChanged(c2e0487a5277a49e).(QListcxx . . $ QList#<Trackcxx . . $ Track#*>);
121
122 private:
123 void setCurrentPlaylistItemcxx . . $ Playlist#setCurrentPlaylistItem(dff075faafa5ad4b).(PlaylistItemcxx . . $ PlaylistItem#*);
124 void setNextPlaylistItemcxx . . $ Playlist#setNextPlaylistItem(dff075faafa5ad4b).(PlaylistItemcxx . . $ PlaylistItem#*);
125 void removePlaylistItemcxx . . $ Playlist#removePlaylistItem(dff075faafa5ad4b).(PlaylistItemcxx . . $ PlaylistItem#*);
126 void checkCurrentItemcxx . . $ Playlist#checkCurrentItem(49f6e7a06ebc5aa8).();
127
128 void updateNextPlaylistItemcxx . . $ Playlist#updateNextPlaylistItem(49f6e7a06ebc5aa8).();
129 void updateCurrentPlaylistItemcxx . . $ Playlist#updateCurrentPlaylistItem(49f6e7a06ebc5aa8).();
130 void updatePlaylistItemscxx . . $ Playlist#updatePlaylistItems(49f6e7a06ebc5aa8).();
131
132 int m_recursionCountcxx . . $ Playlist#m_recursionCount.;
133 int mDropVisualizerWidthcxx . . $ Playlist#mDropVisualizerWidth.;
134 int m_alternateMaxcxx . . $ Playlist#m_alternateMax.;
135 void fillNoColumncxx . . $ Playlist#fillNoColumn(49f6e7a06ebc5aa8).();
136 void performDragcxx . . $ Playlist#performDrag(49f6e7a06ebc5aa8).();
137 QTimercxx . . $ QTimer#* timercxx . . $ Playlist#timer.;
138 QTimercxx . . $ QTimer#* timerDragLockcxx . . $ Playlist#timerDragLock.;
139 bool ignoreNextReleasecxx . . $ Playlist#ignoreNextRelease.;
140 bool m_dragLockedcxx . . $ Playlist#m_dragLocked.;
141
142 QPointcxx . . $ QPoint# startPoscxx . . $ Playlist#startPos.;
143
144 bool m_isPlayingcxx . . $ Playlist#m_isPlaying.;
145 bool m_isCurrentListcxx . . $ Playlist#m_isCurrentList.;
146 bool m_isInternDropcxx . . $ Playlist#m_isInternDrop.;
147 bool isChangeSignalEnabledcxx . . $ Playlist#isChangeSignalEnabled.;
148
149 bool autoClearOncxx . . $ Playlist#autoClearOn.;
150
151 PlaylistItemcxx . . $ PlaylistItem#* nextPlaylistItemcxx . . $ Playlist#nextPlaylistItem.; //the item to be played after the current track
152 PlaylistItemcxx . . $ PlaylistItem#* previousPlaylistItemcxx . . $ Playlist#previousPlaylistItem.;
153 PlaylistItemcxx . . $ PlaylistItem#* newPlaylistItemcxx . . $ Playlist#newPlaylistItem.; //the latest item
154 PlaylistItemcxx . . $ PlaylistItem#* currentPlaylistItemcxx . . $ Playlist#currentPlaylistItem.; //the item that is playing
155 PlaylistItemcxx . . $ PlaylistItem#* m_markercxx . . $ Playlist#m_marker.; //the item that has the drag/drop marker under it
156
157 QColorcxx . . $ QColor# m_CurrentTrackColorcxx . . $ Playlist#m_CurrentTrackColor.;
158 QColorcxx . . $ QColor# m_NextTrackColorcxx . . $ Playlist#m_NextTrackColor.;
159
160 Modecxx . . $ Playlist#Mode# m_PlaylistModecxx . . $ Playlist#m_PlaylistMode.;
161
162 inline PlaylistItemcxx . . $ PlaylistItem#* firstChildcxx . . $ Playlist#firstChild(51fa73fd7dca94c4).() const { return (PlaylistItemcxx . . $ PlaylistItem#*)topLevelItemcxx . . $ QTreeWidget#topLevelItem(bdbf10533f234380).(0); }
163 inline PlaylistItemcxx . . $ PlaylistItem#* lastItemcxx . . $ Playlist#lastItem(51fa73fd7dca94c4).() const { return lastChildcxx . . $ Playlist#lastChild(51fa73fd7dca94c4).(); }
164
165 private Q_SLOTScxx . . $ `<external>/1208926524888476972/qobjectdefs.h:92:10`!:
166
167 void showContextMenucxx . . $ Playlist#showContextMenu(fbfc8f9b03bd7d6c).(PlaylistItemcxx . . $ PlaylistItem#*, int);
168 void slotItemClickedcxx . . $ Playlist#slotItemClicked(abbf99ae0f1fc9f0).(QTreeWidgetItemcxx . . $ QTreeWidgetItem#*, int);
169 void slotItemDoubleClickedcxx . . $ Playlist#slotItemDoubleClicked(abbf99ae0f1fc9f0).(QTreeWidgetItemcxx . . $ QTreeWidgetItem#* sender, int column);
170 void emitClickedcxx . . $ Playlist#emitClicked(49f6e7a06ebc5aa8).();
171 void timeoutDragLockcxx . . $ Playlist#timeoutDragLock(49f6e7a06ebc5aa8).();
172 void handleChangescxx . . $ Playlist#handleChanges(49f6e7a06ebc5aa8).();
173 void slotItemChangedcxx . . $ Playlist#slotItemChanged(5ef89140c59dd28e).(QTreeWidgetItemcxx . . $ QTreeWidgetItem#* current, QTreeWidgetItemcxx . . $ QTreeWidgetItem#* previous);
174 void dummySlotcxx . . $ Playlist#dummySlot(49f6e7a06ebc5aa8).();
175 };
176
177 #endif