author | simon <simon> | 2002-12-02 15:00:35 (UTC) |
---|---|---|
committer | simon <simon> | 2002-12-02 15:00:35 (UTC) |
commit | 77147a2001cf991e3581bcb2401143e20a3973d4 (patch) (unidiff) | |
tree | 2f42819217f97431082a54459d6a7cfe76ea5702 /noncore/multimedia/opieplayer2/playlistwidget.h | |
parent | f90e42128a496a0fb5a67c3148c30ef46092624b (diff) | |
download | opie-77147a2001cf991e3581bcb2401143e20a3973d4.zip opie-77147a2001cf991e3581bcb2401143e20a3973d4.tar.gz opie-77147a2001cf991e3581bcb2401143e20a3973d4.tar.bz2 |
- simplified addSelected
Diffstat (limited to 'noncore/multimedia/opieplayer2/playlistwidget.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/multimedia/opieplayer2/playlistwidget.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/noncore/multimedia/opieplayer2/playlistwidget.h b/noncore/multimedia/opieplayer2/playlistwidget.h index a608eae..238a75c 100644 --- a/noncore/multimedia/opieplayer2/playlistwidget.h +++ b/noncore/multimedia/opieplayer2/playlistwidget.h | |||
@@ -47,80 +47,82 @@ | |||
47 | //class PlayListWidgetPrivate; | 47 | //class PlayListWidgetPrivate; |
48 | class Config; | 48 | class Config; |
49 | class QListViewItem; | 49 | class QListViewItem; |
50 | class QListView; | 50 | class QListView; |
51 | class QPoint; | 51 | class QPoint; |
52 | class QAction; | 52 | class QAction; |
53 | class QLabel; | 53 | class QLabel; |
54 | 54 | ||
55 | class PlayListWidget : public PlayListWidgetGui { | 55 | class PlayListWidget : public PlayListWidgetGui { |
56 | Q_OBJECT | 56 | Q_OBJECT |
57 | public: | 57 | public: |
58 | enum TabType { CurrentPlayList, AudioFiles, VideoFiles, PlayLists, NumTabTypes = 4 }; | 58 | enum TabType { CurrentPlayList, AudioFiles, VideoFiles, PlayLists, NumTabTypes = 4 }; |
59 | 59 | ||
60 | PlayListWidget( QWidget* parent=0, const char* name=0, WFlags fl=0 ); | 60 | PlayListWidget( QWidget* parent=0, const char* name=0, WFlags fl=0 ); |
61 | ~PlayListWidget(); | 61 | ~PlayListWidget(); |
62 | DocLnkSet files; | 62 | DocLnkSet files; |
63 | DocLnkSet vFiles; | 63 | DocLnkSet vFiles; |
64 | bool fromSetDocument; | 64 | bool fromSetDocument; |
65 | bool insanityBool; | 65 | bool insanityBool; |
66 | QString setDocFileRef, currentPlayList; | 66 | QString setDocFileRef, currentPlayList; |
67 | // retrieve the current playlist entry (media file link) | 67 | // retrieve the current playlist entry (media file link) |
68 | const DocLnk *current(); | 68 | const DocLnk *current(); |
69 | void useSelectedDocument(); | 69 | void useSelectedDocument(); |
70 | int selected; | 70 | int selected; |
71 | int whichList() const; | 71 | int whichList() const; |
72 | TabType currentTab() const; | 72 | TabType currentTab() const; |
73 | 73 | ||
74 | public slots: | 74 | public slots: |
75 | bool first(); | 75 | bool first(); |
76 | bool last(); | 76 | bool last(); |
77 | bool next(); | 77 | bool next(); |
78 | bool prev(); | 78 | bool prev(); |
79 | void writeDefaultPlaylist( ); | 79 | void writeDefaultPlaylist( ); |
80 | QString currentFileListPathName() const; | 80 | QString currentFileListPathName() const; |
81 | protected: | 81 | protected: |
82 | void keyReleaseEvent( QKeyEvent *e); | 82 | void keyReleaseEvent( QKeyEvent *e); |
83 | 83 | ||
84 | private: | 84 | private: |
85 | int defaultSkinIndex; | 85 | int defaultSkinIndex; |
86 | bool audioScan, videoScan, audioPopulated, videoPopulated; | 86 | bool audioScan, videoScan, audioPopulated, videoPopulated; |
87 | void readm3u(const QString &); | 87 | void readm3u(const QString &); |
88 | void readPls(const QString &); | 88 | void readPls(const QString &); |
89 | void initializeStates(); | 89 | void initializeStates(); |
90 | void populateAudioView(); | 90 | void populateAudioView(); |
91 | void populateVideoView(); | 91 | void populateVideoView(); |
92 | 92 | ||
93 | QListView *currentFileListView() const; | 93 | QListView *currentFileListView() const; |
94 | 94 | ||
95 | bool inFileListMode() const; | ||
96 | |||
95 | private slots: | 97 | private slots: |
96 | void populateSkinsMenu(); | 98 | void populateSkinsMenu(); |
97 | void skinsMenuActivated(int); | 99 | void skinsMenuActivated(int); |
98 | void pmViewActivated(int); | 100 | void pmViewActivated(int); |
99 | void writem3u(); | 101 | void writem3u(); |
100 | void writeCurrentM3u(); | 102 | void writeCurrentM3u(); |
101 | void scanForAudio(); | 103 | void scanForAudio(); |
102 | void scanForVideo(); | 104 | void scanForVideo(); |
103 | void openFile(); | 105 | void openFile(); |
104 | void setDocument( const QString& fileref ); | 106 | void setDocument( const QString& fileref ); |
105 | void addToSelection( const DocLnk& ); // Add a media file to the playlist | 107 | void addToSelection( const DocLnk& ); // Add a media file to the playlist |
106 | void addToSelection( QListViewItem* ); // Add a media file to the playlist | 108 | void addToSelection( QListViewItem* ); // Add a media file to the playlist |
107 | void setPlaylist( bool ); // Show/Hide the playlist | 109 | void setPlaylist( bool ); // Show/Hide the playlist |
108 | void clearList(); | 110 | void clearList(); |
109 | void addAllToList(); | 111 | void addAllToList(); |
110 | void addAllMusicToList(); | 112 | void addAllMusicToList(); |
111 | void addAllVideoToList(); | 113 | void addAllVideoToList(); |
112 | void saveList(); // Save the playlist | 114 | void saveList(); // Save the playlist |
113 | void loadList( const DocLnk &); // Load a playlist | 115 | void loadList( const DocLnk &); // Load a playlist |
114 | void playIt( QListViewItem *); | 116 | void playIt( QListViewItem *); |
115 | void btnPlay(bool); | 117 | void btnPlay(bool); |
116 | void deletePlaylist(); | 118 | void deletePlaylist(); |
117 | void addSelected(); | 119 | void addSelected(); |
118 | void removeSelected(); | 120 | void removeSelected(); |
119 | void tabChanged(QWidget*); | 121 | void tabChanged(QWidget*); |
120 | void viewPressed( int, QListViewItem *, const QPoint&, int); | 122 | void viewPressed( int, QListViewItem *, const QPoint&, int); |
121 | void playlistViewPressed( int, QListViewItem *, const QPoint&, int); | 123 | void playlistViewPressed( int, QListViewItem *, const QPoint&, int); |
122 | void playSelected(); | 124 | void playSelected(); |
123 | }; | 125 | }; |
124 | 126 | ||
125 | #endif // PLAY_LIST_WIDGET_H | 127 | #endif // PLAY_LIST_WIDGET_H |
126 | 128 | ||