From f4c0a82668965016ccbaa3f928090814976aa438 Mon Sep 17 00:00:00 2001 From: Arno Date: Sat, 25 Feb 2017 03:22:17 +0100 Subject: Implement basic player layout Does nothing yet, just for show :) --- playerwidget.h | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 playerwidget.h (limited to 'playerwidget.h') 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 + +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 -- cgit v1.2.3-70-g09d2