#include "main.h"
#include "login.h"
#include "msinterface.h"
+#include "elam.h"
QString choseLanguage(bool warn)
{
QMessageBox mb;
mb.setIconPixmap(QPixmap(":/icon.png"));
mb.setWindowTitle(tr("About MagicSmoke"));
- mb.setText(tr( "<h3>MagicSmoke %3</h3>"
+ mb.setText(tr( "<h3>MagicSmoke %1</h3>"
"© Konrad Rosenbaum, 2007-2011<br>"
"© Peter Keller, 2007-2008<br>"
"protected under the GNU GPL v.3 or at your option any newer<p>"
- "See also the <a href=\"%4\">MagicSmoke Homepage</a>.<p>"
+ "See also the <a href=\"%2\">MagicSmoke Homepage</a>.<p>"
"This version was compiled from repository '%1' revision '%2'.")
- .arg(MSInterface::staticVersionInfo(WOb::VersionRootURL)) // %1
- .arg(MInterface::staticVersionInfo(WOb::VersionNumber)) //%2
.arg(MSInterface::staticVersionInfo(WOb::VersionHR)) //%3
.arg(HOMEPAGE_BASEURL) //%4
);
mb.exec();
}
+void MApplication::versionDlg()
+{
+ QMessageBox mb;
+ mb.setIconPixmap(QPixmap(":/icon.png"));
+ mb.setWindowTitle(tr("MagicSmoke Version Information"));
+ mb.setText(tr( "<h3>MagicSmoke Version %3</h3>"
+ "<table>"
+ "<tr><td>Repository:<td>%1</tr>"
+ "<tr><td>Revision:<td>%2</tr>"
+ "<tr><td>Modification State:<td>%4</tr>"
+ "<tr><td>Commit Time:<td>%5</tr>"
+ "<tr><td>Committer:<td>%6</tr>"
+ "</table><p>\n"
+ "<h3>Libraries</h3>\n<table>"
+ "<tr><td>WOC:<td>%7<br/>%8</tr>"
+ "<tr><td>PACK Library:<td>%9<br/>%10</tr>"
+ "<tr><td>Qt:<td>%11</tr>"
+ "<tr><td>ELAM:<td>%12</tr>"
+ "<tr><td>Time Zone Library:<td>%13</tr>"
+ "<tr><td>Time Zone Data:<td>%14</tr>"
+ "</table>"
+ )
+ .arg(htmlize(MSInterface::staticVersionInfo(WOb::VersionRootURL))) // %1
+ .arg(htmlize(MSInterface::staticVersionInfo(WOb::VersionNumber))) //%2
+ .arg(htmlize(MSInterface::staticVersionInfo(WOb::VersionHR))) //%3
+ .arg(MSInterface::staticVersionInfo(WOb::VersionLocallyModified)) //%4
+ .arg(htmlize(MSInterface::staticVersionInfo(WOb::VersionTime))) //%5
+ .arg(htmlize(MSInterface::staticVersionInfo(WOb::VersionAuthor))) //&6
+ .arg(htmlize(MSInterface::staticWocVersionInfo(WOb::VersionRootURL))) //%7
+ .arg(htmlize(MSInterface::staticWocVersionInfo(WOb::VersionNumber)))
+ .arg(htmlize(WInterface::staticLibraryVersionInfo(WOb::VersionRootURL))) //%0
+ .arg(htmlize(WInterface::staticLibraryVersionInfo(WOb::VersionNumber)))
+ .arg(htmlize(QT_VERSION_STR)) //%11
+ .arg(htmlize(ELAM::versionInfo())) //%12
+ .arg("??") //%13
+ .arg("??") //%14
+ );
+ mb.setStandardButtons(QMessageBox::Ok);
+ mb.exec();
+}
+
+
static QList<QPair<QString,QString> > helpUrl;
static void initHelpUrl()
m->addSeparator();
m->addAction("About &MagicSmoke",qApp,SLOT(aboutMS()));
m->addAction("About &Qt",qApp,SLOT(aboutQt()));
+ m->addAction("&Version Info",qApp,SLOT(versionDlg()));
return m;
}