diff options
author | Arno <arno@disconnect.de> | 2018-02-18 15:15:26 +0100 |
---|---|---|
committer | Arno <arno@disconnect.de> | 2018-02-18 15:15:26 +0100 |
commit | 6f3ae187f8e818263dda4676508b109a3b5e291b (patch) | |
tree | eaf33d7c4e932176313069196009e83fb3371679 /playerwidget.h | |
parent | c40077648a603d003aef3a54e0d3cd80e3e217d9 (diff) | |
download | BeetPlayer-6f3ae187f8e818263dda4676508b109a3b5e291b.tar.gz BeetPlayer-6f3ae187f8e818263dda4676508b109a3b5e291b.tar.bz2 BeetPlayer-6f3ae187f8e818263dda4676508b109a3b5e291b.zip |
Add custom handling for WebRadio
The general QActions make no sense for Webradion. Add a custom Playlist
and QActions. New songs from the stream are added for history, but they
can't be edited or double clicked.
Diffstat (limited to 'playerwidget.h')
-rw-r--r-- | playerwidget.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/playerwidget.h b/playerwidget.h index 050418f..07d8c26 100644 --- a/playerwidget.h +++ b/playerwidget.h @@ -26,6 +26,7 @@ class QSystemTrayIcon; class WebDownloader; class QStackedWidget; class QSplashScreen; +class QTabWidget; class PlayerWidget : public QWidget { Q_OBJECT @@ -85,7 +86,8 @@ class PlayerWidget : public QWidget { void recurse(const QModelIndex &parent); void addSong(const QModelIndex &idx); void play(const QString &fullPath); - void playUrl(const QString &url); + //void playUrl(const QString &url); + void playUrl(const QModelIndex &idx); void advance(int numSongs); void adjustVolume(int by); void fillWithText(QTextEdit *te, const TagLib::FileRef &fr); @@ -99,8 +101,10 @@ class PlayerWidget : public QWidget { QTextEdit *mCurrentTE; QTextBrowser *mLeftTE; QTextEdit *mRightTE; - BeetView *mPlayListView; - QStandardItemModel *mPlayListModel; + BeetView *mSongView; + BeetView *mWebRadioView; + QStandardItemModel *mSongModel; + QStandardItemModel *mWebRadioModel; QToolBar *mToolBar; QAction *mPlayA; QAction *mStopA; @@ -116,6 +120,7 @@ class PlayerWidget : public QWidget { WebDownloader *mWebDownloader; QMap<QString, QVariant> mOtherMeta; QStackedWidget *mCollectionStack; + QTabWidget *mPlaylistTab; }; #endif // PLAYERWIDGET_H |