#include "QtAbout.h" #include #include #include #include #include "QtDeviceScaledPixmap.h" #include "ResourcePaths.h" #include "SqliteIndexStorage.h" #include "Version.h" #include "utilityApp.h" #include "utilityQt.h" QtAbout::QtAbout(QWidget* parent): QtWindow(false, parent) {} QSize QtAbout::sizeHint() const { return QSize(450, 480); } void QtAbout::setupAbout() { setStyleSheet( utility::getStyleSheet(ResourcePaths::getGuiDirectoryPath().concatenate(L"about/about.css")) .c_str()); QVBoxLayout* windowLayout = new QVBoxLayout(); windowLayout->setContentsMargins(10, 10, 10, 0); windowLayout->setSpacing(1); m_content->setLayout(windowLayout); { QtDeviceScaledPixmap sourcetrailLogo(QString::fromStdWString( ResourcePaths::getGuiDirectoryPath().wstr() + L"about/logo_sourcetrail.png")); sourcetrailLogo.scaleToHeight(150); QLabel* sourcetrailLogoLabel = new QLabel(this); sourcetrailLogoLabel->setPixmap(sourcetrailLogo.pixmap()); sourcetrailLogoLabel->resize( static_cast(sourcetrailLogo.width()), static_cast(sourcetrailLogo.height())); windowLayout->addWidget( sourcetrailLogoLabel, 0, Qt::Alignment(Qt::AlignmentFlag::AlignHCenter)); } windowLayout->addSpacing(10); { QLabel* versionLabel = new QLabel( ("Version " + Version::getApplicationVersion().toDisplayString() + " - " + std::string( utility::getApplicationArchitectureType() == APPLICATION_ARCHITECTURE_X86_32 ? "32" : "64") + " bit") .c_str(), this); windowLayout->addWidget(versionLabel, 0, Qt::Alignment(Qt::AlignmentFlag::AlignHCenter)); } { QLabel* dbVersionLabel = new QLabel( "Database Version " + QString::number(SqliteIndexStorage::getStorageVersion()), this); windowLayout->addWidget(dbVersionLabel, 0, Qt::Alignment(Qt::AlignmentFlag::AlignHCenter)); } windowLayout->addStretch(); { QHBoxLayout* layoutHorz1 = new QHBoxLayout(); windowLayout->addLayout(layoutHorz1); layoutHorz1->addStretch(); QLabel* developerLabel = new QLabel( QString::fromStdString("

" "Team:
" "Manuel Dobusch
" "Eberhard Gräther
" "Malte Langkabel
" "Viktoria Pfausler
" "Andreas Stallinger
")); developerLabel->setObjectName(QStringLiteral("small")); layoutHorz1->addWidget(developerLabel); layoutHorz1->addStretch(); } windowLayout->addStretch(); { QLabel* acknowledgementsLabel = new QLabel(QString::fromStdString( "Acknowledgements:
" "Sourcetrail (aka Coati) 0.1 was created in the context of education at " "Salzburg " "University " "of Applied Sciences.
" "Coati Software KG is member of Startup Salzburg.
" "The development of Sourcetrail was funded by aws.")); acknowledgementsLabel->setObjectName(QStringLiteral("small")); acknowledgementsLabel->setWordWrap(true); acknowledgementsLabel->setOpenExternalLinks(true); windowLayout->addWidget(acknowledgementsLabel); windowLayout->addSpacing(10); } { QLabel* webLabel = new QLabel( "Repository: github.com/CoatiSoftware/Sourcetrail", this); webLabel->setObjectName(QStringLiteral("small")); webLabel->setOpenExternalLinks(true); windowLayout->addWidget(webLabel); windowLayout->addSpacing(10); } }