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