-
Notifications
You must be signed in to change notification settings - Fork 3
/
mainwindow.h
73 lines (60 loc) · 1.64 KB
/
mainwindow.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <QMediaPlaylist>
#include <QTreeWidgetItem>
#include "digitalclock.h"
#include "audioplayer.h"
#ifdef Q_OS_WIN
#include "tag.h"
#include "taglib/mpeg/mpegfile.h"
#include "tbytevectorstream.h"
#include "taglib/mpeg/id3v2/id3v2tag.h"
#include "taglib/mpeg/id3v2/id3v2framefactory.h"
#include "taglib/fileref.h"
#endif
#ifdef Q_OS_LINUX
#include "taglib/tag.h"
#include "taglib/mpegfile.h"
#include "taglib/tbytevectorstream.h"
#include "taglib/id3v2tag.h"
#include "taglib/id3v2framefactory.h"
#include "taglib/fileref.h"
#endif
namespace Ui {
class MainWindow;
}
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = 0);
~MainWindow();
public slots:
void createActions();
void updateClockLabel(QString text_time);
void directoryViewer();
void init();
private slots:
void on_actionQuit_triggered();
void on_dial_volume_valueChanged(int value);
void on_pushButton_AddFile_clicked();
void on_pushButton_NextTrack_clicked();
void on_pushButton_PreviousTrack_clicked();
void on_pushButton_Play_toggled(bool checked);
void on_pushButton_RemoveFile_clicked();
void on_pushButton_Stop_clicked();
void positionChanged(qint64 time);
void currentMediaChanged(int index);
void get_audio_metadata(QString filename, int i);
void calculate_total_length();
QString convert_time(qint64 secs);
void clear_mark_tracks();
private:
DigitalClock *clock;
Ui::MainWindow *ui;
AudioPlayer audioplayer;
QStringList playlist_names;
bool go_up;
};
#endif // MAINWINDOW_H