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