-
Notifications
You must be signed in to change notification settings - Fork 0
/
visualvolumefactory.cpp
41 lines (35 loc) · 1.07 KB
/
visualvolumefactory.cpp
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
#include "visualvolumefactory.h"
#include "volume.h"
#include <QMessageBox>
VisualProperties VisualVolumeFactory::properties() const
{
VisualProperties properties;
properties.name = tr("Volume Plugin");
properties.shortName = "volume";
properties.hasAbout = true;
return properties;
}
Visual *VisualVolumeFactory::create(QWidget *parent)
{
return new Volume(parent);
}
#if (QMMP_VERSION_INT < 0x10700) || (0x20000 <= QMMP_VERSION_INT && QMMP_VERSION_INT < 0x20200)
QDialog *VisualVolumeFactory::createConfigDialog(QWidget *parent)
#else
QDialog *VisualVolumeFactory::createSettings(QWidget *parent)
#endif
{
Q_UNUSED(parent);
return nullptr;
}
void VisualVolumeFactory::showAbout(QWidget *parent)
{
QMessageBox::about(parent, tr("About Volume Visual Plugin"),
tr("Qmmp Volume Visual Plugin") + "\n" +
tr("This plugin adds Volume visualization") + "\n" +
tr("Written by: Greedysky <greedysky@163.com>"));
}
QString VisualVolumeFactory::translation() const
{
return QString();
}