UI bugfixes
[groove] / bottombar.h
1 #ifndef BOTTOMBAR_H
2 #define BOTTOMBAR_H
3
4 #include <QWidget>
5 #include <QDesktopWidget>
6 #include <QGraphicsRectItem>
7 #include <QGraphicsScene>
8
9 namespace Ui {
10     class bottomBar;
11 }
12
13 class bottomBar : public QWidget
14 {
15     Q_OBJECT
16
17 public:
18     explicit bottomBar(QWidget *parent = 0);
19     ~bottomBar();
20 public slots:
21     void setPlaybackProgress(qint64 min,qint64 max);
22 signals:
23     void addB();
24     void nextB();
25     void pause();
26     void back();
27 protected:
28     void changeEvent(QEvent *e);
29 private slots:
30     void on_addButton_clicked();
31     void on_nextB_clicked();
32     void on_pauseB_clicked();
33     void on_backB_clicked();
34
35 private:
36     Ui::bottomBar *ui;
37     QGraphicsRectItem *playbackProgress;
38     QGraphicsScene *main;
39 };
40
41 #endif // BOTTOMBAR_H