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