DynExp
Highly flexible laboratory automation for dynamically changing experiments.
Loading...
Searching...
No Matches
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 "ui_DynExpAbout.h"
6#include "DynExpAbout.h"
7
9 : QDialog(parent, Qt::Dialog | Qt::WindowTitleHint | Qt::WindowCloseButtonHint),
10 ui(std::make_unique<Ui::DynExpAbout>())
11{
12 ui->setupUi(this);
13
14 setFixedSize(size());
15
16 ui->labelVersion->setText("Version " + QString(DynExp::DynExpVersion));
17 ui->labelCopyright->setText("Copyright (C) 2020-" + QString::number(CompilationYear()) + " " + QString(DYNEXP_AUTHORS));
18 ui->labelContributors->setText("Contributors: " + QString(DYNEXP_CONTRIBUTORS));
19 ui->labelQtVersion->setText("Using Qt " + QString(QT_VERSION_STR)
20 + " under the terms of the GNU General Public License version 3.");
21 ui->labelGSLVersion->setText("Using the GNU Scientific Library " + QString(GSL_VERSION)
22 + " under the terms of the GNU General Public License version 3.");
23 ui->labelgRPCVersion->setText("Using gRPC " + QString(grpc_version_string())
24 + " under the terms of the <a href=\"http://www.apache.org/licenses/LICENSE-2.0\">Apache License, Version 2.0</a>.");
25 ui->labelPythonVersion->setText("Using Python " + QString(PY_VERSION)
26 + " under the terms of the <a href=\"https://docs.python.org/3/license.html#psf-license\">Python Software Foundation License Agreement</a>.");
27 ui->labelpybind11Version->setText("Using pybind11 "
28 + QString::fromStdString(Util::ToStr(Util::VersionType{ PYBIND11_VERSION_MAJOR, PYBIND11_VERSION_MINOR, PYBIND11_VERSION_PATCH }))
29 + " under a <a href=\"https://github.com/pybind/pybind11/blob/master/LICENSE\">BSD-style license</a>.");
30}
31
Implements a dialog to show license information about DynExp.
constexpr int CompilationYear()
Extracts the compilation year from the DATE macro.
DynExpAbout(QWidget *parent)
std::unique_ptr< Ui::DynExpAbout > ui
Definition DynExpAbout.h:26
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:688
Data type describing DynExp's program version in the form Major.Minor.Patch.
Definition Util.h:919
Accumulates include statements to provide a precompiled header.