summaryrefslogtreecommitdiffstats
path: root/playerwidget.h
blob: 66c813a37d0b7e496555af663715e259236b0da1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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