From 743106083092d3cdfad526de825215ace68f5267 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Wed, 13 Feb 2008 20:19:03 +0000 Subject: about dialog changes git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@242 90c681e8-e032-0410-971d-27865f9a5e38 --- src/ui/aboutdialog.cpp | 75 ++++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 72 insertions(+), 3 deletions(-) (limited to 'src/ui/aboutdialog.cpp') diff --git a/src/ui/aboutdialog.cpp b/src/ui/aboutdialog.cpp index a8b80e6cd..849197f9b 100644 --- a/src/ui/aboutdialog.cpp +++ b/src/ui/aboutdialog.cpp @@ -19,11 +19,23 @@ ***************************************************************************/ -#include "aboutdialog.h" - #include #include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include "version.h" + +#include "aboutdialog.h" + static QString getstringFromResource(const QString& res_file) { QString ret_string; @@ -44,7 +56,7 @@ AboutDialog::AboutDialog(QWidget* parent, Qt::WFlags fl) setupUi(this); setAttribute(Qt::WA_QuitOnClose, FALSE); licenseTextEdit->setPlainText(getstringFromResource(":COPYING")); - aboutTextEdit->setHtml(getstringFromResource(tr(":/html/about_en.html"))); + aboutTextEdit->setHtml(loadAbout()); authorsTextEdit->setPlainText(getstringFromResource(tr(":/html/authors_en.txt"))); thanksToTextEdit->setPlainText(getstringFromResource(tr(":/html/thanks_en.txt"))); } @@ -58,6 +70,63 @@ void AboutDialog::accept() QDialog::accept(); } +QString AboutDialog::loadAbout() +{ + QString text; + text.append(""); + text.append(""); + text.append(""); + text.append("

"+tr("Qt-based Multimedia Player (Qmmp)")+"

"); + text.append("

"+tr("Version:")+" "+ QMMP_STR_VERSION "

"); + text.append("

"+getstringFromResource(tr(":txt/description_en.txt"))+"

"); + text.append("
"+tr("Input plugins:")+"
"); + text.append("
    "); + foreach(DecoderFactory *fact, *Decoder::decoderFactories()) + { + text.append("
  • "); + text.append(fact->properties().name); + text.append("
  • "); + } + text.append("
"); + text.append("
"+tr("Output plugins:")+"
"); + text.append("
    "); + foreach(OutputFactory *fact, *Output::outputFactories()) + { + text.append("
  • "); + text.append(fact->properties().name); + text.append("
  • "); + } + text.append("
"); + text.append("
"+tr("Visual plugins:")+"
"); + text.append("
    "); + foreach(VisualFactory *fact, *Visual::visualFactories()) + { + text.append("
  • "); + text.append(fact->properties().name); + text.append("
  • "); + } + text.append("
"); + text.append("
"+tr("Effect plugins:")+"
"); + text.append("
    "); + foreach(EffectFactory *fact, *Effect::effectFactories()) + { + text.append("
  • "); + text.append(fact->properties().name); + text.append("
  • "); + } + text.append("
"); + text.append("
"+tr("General plugins:")+"
"); + text.append("
    "); + foreach(GeneralFactory *fact, *General::generalFactories()) + { + text.append("
  • "); + text.append(fact->properties().name); + text.append("
  • "); + } + text.append("
"); + + return text; +} -- cgit v1.2.3-13-gbd6f