aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2021-08-14 20:32:52 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2021-08-14 20:32:52 +0000
commita27fe3632b45d8262bbeb8c8db256665af10cfec (patch)
tree26168aae25bf0904708636c6c17fe9e4fd8c50c5
parent58986ece564c027393af6a55af7d210c317d8975 (diff)
downloadqmmp-a27fe3632b45d8262bbeb8c8db256665af10cfec.tar.gz
qmmp-a27fe3632b45d8262bbeb8c8db256665af10cfec.tar.bz2
qmmp-a27fe3632b45d8262bbeb8c8db256665af10cfec.zip
improved "about" dialog
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@10208 90c681e8-e032-0410-971d-27865f9a5e38
-rw-r--r--src/qmmpui/aboutdialog.cpp68
1 files changed, 61 insertions, 7 deletions
diff --git a/src/qmmpui/aboutdialog.cpp b/src/qmmpui/aboutdialog.cpp
index bb019fb5a..463052aa8 100644
--- a/src/qmmpui/aboutdialog.cpp
+++ b/src/qmmpui/aboutdialog.cpp
@@ -28,6 +28,14 @@
#include <qmmp/visualfactory.h>
#include <qmmp/effect.h>
#include <qmmp/effectfactory.h>
+#include <qmmp/inputsource.h>
+#include <qmmp/inputsourcefactory.h>
+#include <qmmp/abstractengine.h>
+#include <qmmp/enginefactory.h>
+#include <qmmpui/filedialog.h>
+#include <qmmpui/filedialogfactory.h>
+#include <qmmpui/uiloader.h>
+#include <qmmpui/uifactory.h>
#include <qmmp/qmmp.h>
#include "general.h"
#include "generalfactory.h"
@@ -73,7 +81,16 @@ QString AboutDialog::loadAbout()
text.append("<a href=\"https://sourceforge.net/projects/qmmp-dev/\">https://sourceforge.net/projects/qmmp-dev/</a>");
text.append("</p>");
- text.append("<h5>"+tr("Input plugins:")+"</h5>");
+ text.append("<h5>"+tr("Transports:")+"</h5>");
+ text.append("<ul type=\"square\">");
+ for(const InputSourceFactory *fact : InputSource::factories())
+ {
+ text.append("<li>");
+ text.append(fact->properties().name);
+ text.append("</li>");
+ }
+ text.append("</ul>");
+ text.append("<h5>"+tr("Decoders:")+"</h5>");
text.append("<ul type=\"square\">");
for(const DecoderFactory *fact : Decoder::factories())
{
@@ -82,9 +99,22 @@ QString AboutDialog::loadAbout()
text.append("</li>");
}
text.append("</ul>");
- text.append("<h5>"+tr("Output plugins:")+"</h5>");
+ if(!AbstractEngine::factories().isEmpty())
+ {
+ text.append("<h5>"+tr("Engines:")+"</h5>");
+ text.append("<ul type=\"square\">");
+ for(const EngineFactory *fact : AbstractEngine::factories())
+ {
+ text.append("<li>");
+ text.append(fact->properties().name);
+ text.append("</li>");
+ }
+ text.append("</ul>");
+ }
+
+ text.append("<h5>"+tr("Effects:")+"</h5>");
text.append("<ul type=\"square\">");
- for(const OutputFactory *fact : Output::factories())
+ for(const EffectFactory *fact : Effect::factories())
{
text.append("<li>");
text.append(fact->properties().name);
@@ -100,24 +130,48 @@ QString AboutDialog::loadAbout()
text.append("</li>");
}
text.append("</ul>");
- text.append("<h5>"+tr("Effect plugins:")+"</h5>");
+ text.append("<h5>"+tr("General plugins:")+"</h5>");
text.append("<ul type=\"square\">");
- for(const EffectFactory *fact : Effect::factories())
+ for(const GeneralFactory *fact : General::factories())
{
text.append("<li>");
text.append(fact->properties().name);
text.append("</li>");
}
text.append("</ul>");
- text.append("<h5>"+tr("General plugins:")+"</h5>");
+ text.append("<h5>"+tr("Output plugins:")+"</h5>");
text.append("<ul type=\"square\">");
- for(const GeneralFactory *fact : General::factories())
+ for(const OutputFactory *fact : Output::factories())
{
text.append("<li>");
text.append(fact->properties().name);
text.append("</li>");
}
text.append("</ul>");
+ if(!FileDialog::factories().isEmpty())
+ {
+ text.append("<h5>"+tr("File dialogs:")+"</h5>");
+ text.append("<ul type=\"square\">");
+ for(const FileDialogFactory *fact : FileDialog::factories())
+ {
+ text.append("<li>");
+ text.append(fact->properties().name);
+ text.append("</li>");
+ }
+ text.append("</ul>");
+ }
+ if(!UiLoader::factories().isEmpty())
+ {
+ text.append("<h5>"+tr("User interfaces:")+"</h5>");
+ text.append("<ul type=\"square\">");
+ for(const UiFactory *fact :UiLoader::factories())
+ {
+ text.append("<li>");
+ text.append(fact->properties().name);
+ text.append("</li>");
+ }
+ text.append("</ul>");
+ }
text.append("<div>");
return text;