You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

116 lines
4.0 KiB

Copyright (C) 2007-2011 by Ulrich Van Den Hekke
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful.
but WITHOUT ANY WARRANTY; without even the implied warranty of
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <>.
// Xinx header
#include "aboutdialogimpl.h"
#include <core/exceptions.h>
#include <core/version.h>
#include <QFile>
#include <QTextStream>
/* AboutDialogImpl */
* \class AboutDialogImpl
* \brief Implementation of about dialog containts informations as the version, the licence,
* the logo, and authors.
* The implementation containts only a constructor who defines default dialog
* presentation : Windows Style Dialog.
* \intern
* \brief Constructor of The about dialog implementation.
* We defines a default windows flags. The windows can be resize.
* \param parent The parent of the dialog
* \param f Flags to use on Windows. By default, the dialog have a fixed size.
AboutDialogImpl::AboutDialogImpl(QWidget * parent, Qt::WFlags f) : QDialog(parent, f)
QString versionString;
versionString = tr("<b>XINX %1 (Changeset %2 using Qt %3)</b>").arg(VERSION).arg(VERSION_CHANGESET).arg(qVersion());
versionString = tr("<b>XINX %1 (using Qt %2)</b>").arg(VERSION).arg(qVersion());
m_aboutLabel->setText("<b>XINX</b> Is Not only XML<br/>"
"(c) 2006-2016, Ulrich Van Den Hekke<br/>"
"<a href=\"\"></a><br/>"
"<i>This software is cover by the GPL Public Licence v3. <br/>"
"Please read the software licence before use it. <br/><br/>"
"Icon and Logo are under the GPL Public Licence and comes from <br/>"
"K-Desktop Environment, KDevelop.<br/><br/>"
"<b>XINX</b> use internally a modified version of QCodeEdit written <br/>"
"by fullmetalcoder. This software is cover by the <br/>"
"GPL Public Licence too.</i>"
m_authorText->setHtml("Please use <a href=\"\" target=\"_new\"></a> to report bug<br/>"
"<b>Ulrich Van Den Hekke</b><br/>"
"Mail: <a href=\"\"></a><br/>"
"Home page: <a href=\"\" target=\"_new\"></a><br/>"
"Project leader"
m_thanksText->setHtml("<b>Nicolas CARON</b><br/>"
"For ideas and reports and more<br/>"
"<b>Sebastien DESPREZ</b><br/>"
"For ideas and reports and more<br/>"
"<b>Mickael BERTELOOT</b><br/>"
"For ideas and reports and more<br/>"
"<b>Kamal B</b><br/>"
"For ideas and reports and more<br/>"
"<b>Alexandre ROCHER</b><br/>"
"For ideas and reports, some snipets, some scripts and more<br/>"
"<b>Matthieu DUBOUT</b><br/>"
"For ideas, reports, some snipets, and more<br/>"
"<b>Cathy VANDENHEKKE</b><br/>"
"For translations<br/>"
"<b>Luc Briant</b><br/>"
"Home page: <a href=\"\" target=\"_new\"></a><br/>"
"Author of the QCodeEdit editor used by <b>XINX</b><br/>"
"And all people who help me in some ways and i have forgotten to mention"
QFile licenceFile(":/document/licence.html");
if (
QTextStream textStream(&licenceFile);