diff options
author | Arno <arno@disconnect.de> | 2017-02-25 03:22:17 +0100 |
---|---|---|
committer | Arno <arno@disconnect.de> | 2017-02-25 03:22:17 +0100 |
commit | f4c0a82668965016ccbaa3f928090814976aa438 (patch) | |
tree | 68af1b326b9ab966a0ab17dcb20a9d2d00df902a /playerwidget.h | |
parent | 803959759a66d01d44d9e07b38f4220a93e57a2c (diff) | |
download | BeetPlayer-f4c0a82668965016ccbaa3f928090814976aa438.tar.gz BeetPlayer-f4c0a82668965016ccbaa3f928090814976aa438.tar.bz2 BeetPlayer-f4c0a82668965016ccbaa3f928090814976aa438.zip |
Implement basic player layout
Does nothing yet, just for show :)
Diffstat (limited to 'playerwidget.h')
-rw-r--r-- | playerwidget.h | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/playerwidget.h b/playerwidget.h new file mode 100644 index 0000000..66c813a --- /dev/null +++ b/playerwidget.h @@ -0,0 +1,42 @@ +#ifndef PLAYERWIDGET_H +#define PLAYERWIDGET_H + +#include <QWidget> + +class QTreeView; +class QStandardItemModel; +class QSortFilterProxyModel; +class QLineEdit; +class QComboBox; +class QLabel; +class QSlider; +class QTextEdit; +class QMediaPlayer; + +class PlayerWidget : public QWidget { + Q_OBJECT + public: + explicit PlayerWidget(QWidget *parent = 0); + + public slots: + //void doFilter(); + void populateBy(QString selector); + void refreshSort(); + + private: + void setupGui(); + void populateByArtist(); + QComboBox *mSortBy; + QLineEdit *mFilter; + QMediaPlayer *mPlayer; + QTreeView *mView; + QStandardItemModel *mViewModel; + QSortFilterProxyModel *mViewProxy; + QLabel *mNowPlayingL; + QSlider *mSlider; + QTextEdit *mCurrentTE; + QTreeView *mPlayListView; + QStandardItemModel *mPlayListModel; +}; + +#endif // PLAYERWIDGET_H |