diff --git a/bin/app/data/gui/startscreen/patreon_icon.png b/bin/app/data/gui/startscreen/patreon_icon.png deleted file mode 100644 index 997704fd..00000000 Binary files a/bin/app/data/gui/startscreen/patreon_icon.png and /dev/null differ diff --git a/cmake/licenses.cmake b/cmake/licenses.cmake index 696db62f..afdac693 100644 --- a/cmake/licenses.cmake +++ b/cmake/licenses.cmake @@ -21,7 +21,7 @@ function(AddLicense softwareName softwareVersion softwareURL licenseFile) endfunction(AddLicense) ReadLicense(${CMAKE_SOURCE_DIR}/LICENSE.txt Sourcetrail_license) -set(LICENSE_APP "LicenseInfo(\"Sourcetrail\", \"${VERSION_STRING}\", \"https://www.sourcetrail.com\", Sourcetrail_license)") +set(LICENSE_APP "LicenseInfo(\"Sourcetrail\", \"${VERSION_STRING}\", \"https://github.com/CoatiSoftware/Sourcetrail\", Sourcetrail_license)") AddLicense("Boost" "1.68" "http://www.boost.org" "${LICENSEFOLDER}/license_boost.txt") AddLicense("catch" "2.5.0" "https://github.com/catchorg/Catch2" "${LICENSEFOLDER}/license_catch.txt") diff --git a/src/lib/app/Application.cpp b/src/lib/app/Application.cpp index b5d05d3b..9ad3adac 100644 --- a/src/lib/app/Application.cpp +++ b/src/lib/app/Application.cpp @@ -510,8 +510,7 @@ bool Application::checkSharedMemory() L"There was an error accessing shared memory on your computer: " + error + L"\n\n" "Project indexing is not possible. Please restart your computer or try running " - "Sourcetrail as admin. If the " - "issue persists contact mail@sourcetrail.com"); + "Sourcetrail as admin."); return false; } diff --git a/src/lib_gui/qt/project_wizard/content/QtProjectWizardContentPreferences.cpp b/src/lib_gui/qt/project_wizard/content/QtProjectWizardContentPreferences.cpp index 70aee685..c7f2bdc2 100644 --- a/src/lib_gui/qt/project_wizard/content/QtProjectWizardContentPreferences.cpp +++ b/src/lib_gui/qt/project_wizard/content/QtProjectWizardContentPreferences.cpp @@ -374,7 +374,9 @@ void QtProjectWizardContentPreferences::populate(QGridLayout* layout, int& row) "
Provide the location of the jvm library inside the installation of your " + javaVersionString + " runtime environment (for information on how to set this take a look at " - "" + "" "Finding Java Runtime Library Location or use the auto detection below)
") .c_str(), layout, diff --git a/src/lib_gui/qt/project_wizard/content/QtProjectWizardContentSelect.cpp b/src/lib_gui/qt/project_wizard/content/QtProjectWizardContentSelect.cpp index 8a1240f9..b79b2e81 100644 --- a/src/lib_gui/qt/project_wizard/content/QtProjectWizardContentSelect.cpp +++ b/src/lib_gui/qt/project_wizard/content/QtProjectWizardContentSelect.cpp @@ -100,13 +100,15 @@ void QtProjectWizardContentSelect::populate(QGridLayout* layout, int& row) "Create a Source Group from an existing Compilation Database file (compile_commands.json). " "It can be exported from CMakeCreate a new Source Group from an existing Visual Studio Solution file.
" "Note: Requires a running Visual Studio instance with the " - "Sourcetrail " - "Visual Studio Extension installed.
"; + "Sourcetrail Visual Studio Extension installed."; m_sourceGroupTypeDescriptions[SOURCE_GROUP_CXX_CODEBLOCKS] = "Create a new Source Group from an existing Code::Blocks project file.
" "Note: A \".cbp\" file will also get generated by the Qt Creator if a "
@@ -157,7 +159,8 @@ void QtProjectWizardContentSelect::populate(QGridLayout* layout, int& row)
connect(
m_languages,
static_cast
"
"
"
"They define where MacOS framework containers (.framework) are found "
- "(See "
- "Finding System Header Locations or use the auto detection below).");
+ "(See "
+ "Finding System Header Locations or use the auto detection below)."));
m_pathDetector = utility::getCxxFrameworkPathDetector();
m_makePathsRelativeToProjectFileLocation = false;
diff --git a/src/lib_gui/qt/project_wizard/content/paths/QtProjectWizardContentPathsHeaderSearchGlobal.cpp b/src/lib_gui/qt/project_wizard/content/paths/QtProjectWizardContentPathsHeaderSearchGlobal.cpp
index c2439767..4a936cff 100644
--- a/src/lib_gui/qt/project_wizard/content/paths/QtProjectWizardContentPathsHeaderSearchGlobal.cpp
+++ b/src/lib_gui/qt/project_wizard/content/paths/QtProjectWizardContentPathsHeaderSearchGlobal.cpp
@@ -16,14 +16,16 @@ QtProjectWizardContentPathsHeaderSearchGlobal::QtProjectWizardContentPathsHeader
true)
{
setTitleString(QStringLiteral("Global Include Paths"));
- setHelpString(
+ setHelpString(QString::fromStdString(
"The Global Include Paths will be used in all your projects in addition to the project "
"specific Include Paths. "
"These paths are usually passed to the compiler with the '-isystem' flag.
"
"
"
"Use them to add system header paths (See "
- "Finding System Header Locations or use the auto detection below).");
+ "href=\"" +
+ utility::getDocumentationLink() +
+ "/#FindingSystemHeaderLocations\">"
+ "Finding System Header Locations or use the auto detection below)."));
m_pathDetector = utility::getCxxHeaderPathDetector();
m_makePathsRelativeToProjectFileLocation = false;
@@ -79,7 +81,8 @@ bool QtProjectWizardContentPathsHeaderSearchGlobal::check()
"Your Global Include Paths contain other paths that hold C/C++ compiler headers, "
"probably those of your local C/C++ compiler. They are possibly in conflict with the "
"compiler headers of "
- "Sourcetrail's C/C++ indexer. This can lead to compatibility errors during indexing. Do "
+ "Sourcetrail's C/C++ indexer. This can lead to compatibility errors during indexing. "
+ "Do "
"you want to remove "
"these paths?");
msgBox.setDetailedText(compilerHeaderPaths);
diff --git a/src/lib_gui/qt/window/QtAbout.cpp b/src/lib_gui/qt/window/QtAbout.cpp
index c02d19a2..13e31c8c 100644
--- a/src/lib_gui/qt/window/QtAbout.cpp
+++ b/src/lib_gui/qt/window/QtAbout.cpp
@@ -22,7 +22,8 @@ QSize QtAbout::sizeHint() const
void QtAbout::setupAbout()
{
setStyleSheet(
- utility::getStyleSheet(ResourcePaths::getGuiDirectoryPath().concatenate(L"about/about.css")).c_str());
+ utility::getStyleSheet(ResourcePaths::getGuiDirectoryPath().concatenate(L"about/about.css"))
+ .c_str());
QVBoxLayout* windowLayout = new QVBoxLayout();
windowLayout->setContentsMargins(10, 10, 10, 0);
@@ -68,18 +69,7 @@ void QtAbout::setupAbout()
QHBoxLayout* layoutHorz1 = new QHBoxLayout();
windowLayout->addLayout(layoutHorz1);
- QLabel* companyLabel = new QLabel(
- QString::fromStdString("Coati Software KG
"
- "Jakob-Haringer-Straße 1/127
"
- "5020 Salzburg
"
- "Austria
"
- "support@sourcetrail.com
"
- "sourcetrail.com"));
- companyLabel->setOpenExternalLinks(true);
- layoutHorz1->addWidget(companyLabel);
-
- layoutHorz1->addSpacing(120);
+ layoutHorz1->addStretch();
QLabel* developerLabel = new QLabel(
QString::fromStdString("
"
@@ -91,23 +81,41 @@ void QtAbout::setupAbout()
"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);
+ {
+ 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);
+ }
- 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);
+ }
}
diff --git a/src/lib_gui/qt/window/QtMainWindow.cpp b/src/lib_gui/qt/window/QtMainWindow.cpp
index 6a2c70bb..7f5bd999 100644
--- a/src/lib_gui/qt/window/QtMainWindow.cpp
+++ b/src/lib_gui/qt/window/QtMainWindow.cpp
@@ -133,9 +133,9 @@ QtMainWindow::QtMainWindow()
if (utility::getOsType() != OS_MAC)
{
// can only be done once, because resetting the style on the QCoreApplication causes crash
- app->setStyleSheet(
- utility::getStyleSheet(ResourcePaths::getGuiDirectoryPath().concatenate(L"main/scrollbar.css"))
- .c_str());
+ app->setStyleSheet(utility::getStyleSheet(ResourcePaths::getGuiDirectoryPath().concatenate(
+ L"main/scrollbar.css"))
+ .c_str());
}
setupProjectMenu();
@@ -406,7 +406,8 @@ void QtMainWindow::setContentEnabled(bool enabled)
void QtMainWindow::refreshStyle()
{
setStyleSheet(
- utility::getStyleSheet(ResourcePaths::getGuiDirectoryPath().concatenate(L"main/main.css")).c_str());
+ utility::getStyleSheet(ResourcePaths::getGuiDirectoryPath().concatenate(L"main/main.css"))
+ .c_str());
QFont tooltipFont = QToolTip::font();
tooltipFont.setPixelSize(ApplicationSettings::getInstance()->getFontSize());
@@ -508,7 +509,7 @@ void QtMainWindow::openSettings()
void QtMainWindow::showDocumentation()
{
- QDesktopServices::openUrl(QUrl(QStringLiteral("https://sourcetrail.com/documentation/")));
+ QDesktopServices::openUrl(QUrl(QString::fromStdString(utility::getDocumentationLink())));
}
void QtMainWindow::showKeyboardShortcuts()
@@ -543,7 +544,8 @@ void QtMainWindow::showLicenses()
void QtMainWindow::showDataFolder()
{
QDesktopServices::openUrl(QUrl(
- QString::fromStdWString(L"file:///" + UserPaths::getUserDataDirectoryPath().makeCanonical().wstr()),
+ QString::fromStdWString(
+ L"file:///" + UserPaths::getUserDataDirectoryPath().makeCanonical().wstr()),
QUrl::TolerantMode));
}
diff --git a/src/lib_gui/qt/window/QtStartScreen.cpp b/src/lib_gui/qt/window/QtStartScreen.cpp
index 0bfd3a92..46e2086a 100644
--- a/src/lib_gui/qt/window/QtStartScreen.cpp
+++ b/src/lib_gui/qt/window/QtStartScreen.cpp
@@ -91,8 +91,6 @@ QtStartScreen::QtStartScreen(QWidget* parent)
ResourcePaths::getGuiDirectoryPath().concatenate(L"icon/empty_icon.png").wstr()))
, m_githubIcon(QString::fromStdWString(
ResourcePaths::getGuiDirectoryPath().concatenate(L"startscreen/github_icon.png").wstr()))
- , m_patreonIcon(QString::fromStdWString(
- ResourcePaths::getGuiDirectoryPath().concatenate(L"startscreen/patreon_icon.png").wstr()))
{
}
@@ -188,9 +186,9 @@ void QtStartScreen::setupStartScreen()
versionLabel->setObjectName(QStringLiteral("boldLabel"));
col->addWidget(versionLabel);
- col->addSpacing(15);
+ col->addSpacing(20);
- QPushButton* githubButton = new QPushButton(QStringLiteral("Contribute on GitHub"), this);
+ QPushButton* githubButton = new QPushButton(QStringLiteral("View on GitHub"), this);
githubButton->setAttribute(Qt::WA_LayoutUsesWidgetRect); // fixes layouting on Mac
githubButton->setObjectName(QStringLiteral("infoButton"));
githubButton->setIcon(m_githubIcon);
@@ -206,24 +204,6 @@ void QtStartScreen::setupStartScreen()
});
col->addWidget(githubButton);
- col->addSpacing(8);
-
- // QPushButton* patreonButton = new QPushButton("Support on Patreon", this);
- QPushButton* patreonButton = new QPushButton(QStringLiteral("Become a Patron"), this);
- patreonButton->setAttribute(Qt::WA_LayoutUsesWidgetRect); // fixes layouting on Mac
- patreonButton->setObjectName(QStringLiteral("infoButton"));
- patreonButton->setIcon(m_patreonIcon);
- patreonButton->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
- connect(
- patreonButton,
- &QPushButton::clicked,
- []()
- {
- QDesktopServices::openUrl(QUrl(
- QStringLiteral("https://www.patreon.com/sourcetrail"), QUrl::TolerantMode));
- });
- col->addWidget(patreonButton);
-
col->addSpacing(35);
col->addStretch();
diff --git a/src/lib_gui/qt/window/QtStartScreen.h b/src/lib_gui/qt/window/QtStartScreen.h
index ec3a7e73..dbccac0d 100644
--- a/src/lib_gui/qt/window/QtStartScreen.h
+++ b/src/lib_gui/qt/window/QtStartScreen.h
@@ -53,7 +53,6 @@ private:
const QIcon m_javaIcon;
const QIcon m_projectIcon;
const QIcon m_githubIcon;
- const QIcon m_patreonIcon;
};
#endif // QT_START_SCREEN_H
diff --git a/src/lib_gui/utility/utilityApp.cpp b/src/lib_gui/utility/utilityApp.cpp
index 402527c1..a171e398 100644
--- a/src/lib_gui/utility/utilityApp.cpp
+++ b/src/lib_gui/utility/utilityApp.cpp
@@ -26,6 +26,11 @@ std::mutex s_runningProcessesMutex;
std::set