DynExp
Highly flexible laboratory automation for dynamically changing experiments.
DynExpAbout.cpp
Go to the documentation of this file.
1 // This file is part of DynExp.
2 
3 #include "stdafx.h"
4 #include "moc_DynExpAbout.cpp"
5 #include "DynExpAbout.h"
6 
7 DynExpAbout::DynExpAbout(QWidget *parent)
8  : QDialog(parent, Qt::Dialog | Qt::WindowTitleHint | Qt::WindowCloseButtonHint)
9 {
10  ui.setupUi(this);
11 
12  setFixedSize(size());
13 
14  ui.labelVersion->setText("Version " + QString(DynExp::DynExpVersion));
15  ui.labelCopyright->setText("Copyright (C) 2020-" + QString::number(CompilationYear()) + " Julian M. Bopp");
16  ui.labelQtVersion->setText("Using Qt " + QString(QT_VERSION_STR)
17  + " under the terms of the GNU General Public License version 3.");
18  ui.labelGSLVersion->setText("Using the GNU Scientific Library " + QString(GSL_VERSION)
19  + " under the terms of the GNU General Public License version 3.");
20  ui.labelgRPCVersion->setText("Using gRPC " + QString(grpc_version_string())
21  + " under the terms of the <a href=\"http://www.apache.org/licenses/LICENSE-2.0\">Apache License, Version 2.0</a>.");
22  ui.labelPythonVersion->setText("Using Python " + QString(PY_VERSION)
23  + " under the terms of the <a href=\"https://docs.python.org/3/license.html#psf-license\">Python Software Foundation License Agreement</a>.");
24  ui.labelpybind11Version->setText("Using pybind11 "
25  + QString::fromStdString(Util::ToStr(Util::VersionType{ PYBIND11_VERSION_MAJOR, PYBIND11_VERSION_MINOR, PYBIND11_VERSION_PATCH }))
26  + " under a <a href=\"https://github.com/pybind/pybind11/blob/master/LICENSE\">BSD-style license</a>.");
27 }
28 
30 {
31 }
Implements a dialog to show license information about DynExp.
constexpr int CompilationYear()
Extracts the compilation year from the DATE macro.
Ui::DynExpAbout ui
Definition: DynExpAbout.h:22
DynExpAbout(QWidget *parent)
Definition: DynExpAbout.cpp:7
constexpr auto DynExpVersion
DynExp's version string
std::string ToStr(const T &Value, int Precision=-1)
Converts a (numeric) value of type T to a std::string using operator<< of std::stringstream.
Definition: Util.h:625
Data type describing DynExp's program version in the form Major.Minor.Patch.
Definition: Util.h:859
Accumulates include statements to provide a precompiled header.