From a27fe3632b45d8262bbeb8c8db256665af10cfec Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Sat, 14 Aug 2021 20:32:52 +0000 Subject: improved "about" dialog git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@10208 90c681e8-e032-0410-971d-27865f9a5e38 --- src/qmmpui/aboutdialog.cpp | 68 +++++++++++++++++++++++++++++++++++++++++----- 1 file 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 #include #include +#include +#include +#include +#include +#include +#include +#include +#include #include #include "general.h" #include "generalfactory.h" @@ -73,7 +81,16 @@ QString AboutDialog::loadAbout() text.append("https://sourceforge.net/projects/qmmp-dev/"); text.append("

"); - text.append("
"+tr("Input plugins:")+"
"); + text.append("
"+tr("Transports:")+"
"); + text.append("
    "); + for(const InputSourceFactory *fact : InputSource::factories()) + { + text.append("
  • "); + text.append(fact->properties().name); + text.append("
  • "); + } + text.append("
"); + text.append("
"+tr("Decoders:")+"
"); text.append("
    "); for(const DecoderFactory *fact : Decoder::factories()) { @@ -82,9 +99,22 @@ QString AboutDialog::loadAbout() text.append(""); } text.append("
"); - text.append("
"+tr("Output plugins:")+"
"); + if(!AbstractEngine::factories().isEmpty()) + { + text.append("
"+tr("Engines:")+"
"); + text.append("
    "); + for(const EngineFactory *fact : AbstractEngine::factories()) + { + text.append("
  • "); + text.append(fact->properties().name); + text.append("
  • "); + } + text.append("
"); + } + + text.append("
"+tr("Effects:")+"
"); text.append("
    "); - for(const OutputFactory *fact : Output::factories()) + for(const EffectFactory *fact : Effect::factories()) { text.append("
  • "); text.append(fact->properties().name); @@ -100,24 +130,48 @@ QString AboutDialog::loadAbout() text.append("
  • "); } text.append("
"); - text.append("
"+tr("Effect plugins:")+"
"); + text.append("
"+tr("General plugins:")+"
"); text.append("
    "); - for(const EffectFactory *fact : Effect::factories()) + for(const GeneralFactory *fact : General::factories()) { text.append("
  • "); text.append(fact->properties().name); text.append("
  • "); } text.append("
"); - text.append("
"+tr("General plugins:")+"
"); + text.append("
"+tr("Output plugins:")+"
"); text.append("
    "); - for(const GeneralFactory *fact : General::factories()) + for(const OutputFactory *fact : Output::factories()) { text.append("
  • "); text.append(fact->properties().name); text.append("
  • "); } text.append("
"); + if(!FileDialog::factories().isEmpty()) + { + text.append("
"+tr("File dialogs:")+"
"); + text.append("
    "); + for(const FileDialogFactory *fact : FileDialog::factories()) + { + text.append("
  • "); + text.append(fact->properties().name); + text.append("
  • "); + } + text.append("
"); + } + if(!UiLoader::factories().isEmpty()) + { + text.append("
"+tr("User interfaces:")+"
"); + text.append("
    "); + for(const UiFactory *fact :UiLoader::factories()) + { + text.append("
  • "); + text.append(fact->properties().name); + text.append("
  • "); + } + text.append("
"); + } text.append("
"); return text; -- cgit v1.2.3-13-gbd6f