summaryrefslogtreecommitdiffstats
path: root/src/gui/aboutDialog.cpp
diff options
context:
space:
mode:
authorSebastian2010-05-12 19:42:27 +0200
committerSebastian2010-05-12 19:42:27 +0200
commitce3329047d378a14006ce74ec273ac59e3375303 (patch)
tree782430f270b4c7aca1b35d5b7813518e3797c555 /src/gui/aboutDialog.cpp
downloadpvs-ce3329047d378a14006ce74ec273ac59e3375303.tar.gz
pvs-ce3329047d378a14006ce74ec273ac59e3375303.tar.xz
pvs-ce3329047d378a14006ce74ec273ac59e3375303.zip
initial import of latest svn version
Diffstat (limited to 'src/gui/aboutDialog.cpp')
-rw-r--r--src/gui/aboutDialog.cpp58
1 files changed, 58 insertions, 0 deletions
diff --git a/src/gui/aboutDialog.cpp b/src/gui/aboutDialog.cpp
new file mode 100644
index 0000000..a52f70b
--- /dev/null
+++ b/src/gui/aboutDialog.cpp
@@ -0,0 +1,58 @@
+/*
+ # Copyright (c) 2009, 2010 - OpenSLX Project, Computer Center University of
+ # Freiburg
+ #
+ # This program is free software distributed under the GPL version 2.
+ # See http://openslx.org/COPYING
+ #
+ # If you have any feedback please consult http://openslx.org/feedback and
+ # send your suggestions, praise, or complaints to feedback@openslx.org
+ #
+ # General information about OpenSLX can be found at http://openslx.org/
+ # -----------------------------------------------------------------------------
+ # aboutDialog.cpp
+ # - shows about dialog
+ # -----------------------------------------------------------------------------
+ */
+
+#include "aboutDialog.h"
+#include "src/version.h"
+
+AboutDialog::AboutDialog(QWidget *parent) :
+ QDialog(parent)
+{
+ setupUi(this);
+
+ // set version
+ QString version = tr("Version: ") + (VERSION_STRING);
+ label_version->setText(version);
+
+ // read authors and write to textEdit
+ QString authors = "";
+ QFile f1(":/AUTHORS");
+ if (f1.open(QIODevice::ReadOnly | QIODevice::Text))
+ {
+ QTextStream in(&f1);
+ authors = in.readAll();
+ f1.close();
+ }
+ plainTextEdit_authors->insertPlainText(authors);
+ plainTextEdit_authors->moveCursor(QTextCursor::Start);
+
+ // read translation and write to textEdit
+ QString translation = "";
+ QFile f2(":/TRANSLATION");
+ if (f2.open(QIODevice::ReadOnly | QIODevice::Text))
+ {
+ QTextStream in(&f2);
+ translation = in.readAll();
+ f2.close();
+ }
+ plainTextEdit_translation->insertPlainText(translation);
+ plainTextEdit_translation->moveCursor(QTextCursor::Start);
+
+}
+
+AboutDialog::~AboutDialog()
+{
+}