forked from mpc-qt/mpc-qt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpropertieswindow.h
53 lines (42 loc) · 1.24 KB
/
propertieswindow.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
#ifndef PROPERTIESWINDOW_H
#define PROPERTIESWINDOW_H
#include <QDateTime>
#include <QDialog>
#include <QVariantList>
#include <QVariantMap>
namespace Ui {
class PropertiesWindow;
}
class PropertiesWindow : public QDialog
{
Q_OBJECT
public:
explicit PropertiesWindow(QWidget *parent = nullptr);
~PropertiesWindow();
signals:
void artistAndTitleChanged(QString artistAndTitle);
public slots:
void setFileName(const QString &filename);
void setFileFormat(const QString &format);
void setFileSize(const int64_t &bytes);
void setMediaLength(double time);
void setVideoSize(const QSize &sz);
void setFileCreationTime(const int64_t &secsSinceEpoch);
void setTracks(const QVariantList &tracks);
void setMediaTitle(const QString &title);
void setFilePath(const QString &path);
void setMetaData(QVariantMap data);
void setChapters(const QVariantList &chapters);
private slots:
void on_save_clicked();
void updateSaveVisibility();
private:
void updateLastTab();
QString sectionText(const QString &header, const QVariantMap &fields);
Ui::PropertiesWindow *ui;
QString filename;
QString metadataText;
QString trackText;
QString chapterText;
};
#endif // PROPERTIESWINDOW_H