-
Notifications
You must be signed in to change notification settings - Fork 0
/
widget.h
55 lines (43 loc) · 1.15 KB
/
widget.h
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
43
44
45
46
47
48
49
50
51
52
53
54
55
#ifndef WIDGET_H
#define WIDGET_H
#include <QWidget>
#include <QIcon>
#include <QMediaPlayer>
#include <QMediaPlaylist>
#include <QStringList>
QT_BEGIN_NAMESPACE
namespace Ui { class Widget; }
QT_END_NAMESPACE
class Widget : public QWidget
{
Q_OBJECT
public:
Widget(QWidget *parent = nullptr);
~Widget();
public slots:
void toogle_pp();
private slots:
void on_next_btn_clicked();
void set_time_readed(qint64 time);
void set_time_total(qint64 time);
void update_song_name();
void update_playtime_slider();
void update_song_position(int pos);
void update_song_position_by_step(int action);
void changeOpacity();
void on_last_btn_clicked();
void on_delete_btn_clicked();
void on_reapet_btn_clicked();
void on_random_btn_clicked();
private:
Ui::Widget *ui;
QIcon pause_icon, play_icon, last_icon, next_icon, del_icon;
QIcon repeat_all_icon, no_repeat_icon, repeat_current_icon;
QIcon random_icon;
QMediaPlayer *player;
QMediaPlaylist *playlist;
QStringList get_liste_musiques();
QString mlsToString(qint64 milli);
QString get_current_song_name();
};
#endif // WIDGET_H