ui: Added help menu actions to show log and data folders
This commit is contained in:
@@ -362,6 +362,16 @@ void QtMainWindow::enterLicense()
|
||||
enterLicenseWindow->load();
|
||||
}
|
||||
|
||||
void QtMainWindow::showDataFolder()
|
||||
{
|
||||
QDesktopServices::openUrl(QUrl(("file:///" + UserPaths::getUserDataPath()).c_str(), QUrl::TolerantMode));
|
||||
}
|
||||
|
||||
void QtMainWindow::showLogFolder()
|
||||
{
|
||||
QDesktopServices::openUrl(QUrl(("file:///" + UserPaths::getLogPath()).c_str(), QUrl::TolerantMode));
|
||||
}
|
||||
|
||||
void QtMainWindow::showStartScreen()
|
||||
{
|
||||
QtStartScreen* startScreen = createWindow<QtStartScreen>();
|
||||
@@ -635,6 +645,11 @@ void QtMainWindow::setupHelpMenu()
|
||||
{
|
||||
menu->addAction(tr("Enter License..."), this, SLOT(enterLicense()));
|
||||
}
|
||||
|
||||
menu->addSeparator();
|
||||
|
||||
menu->addAction(tr("Show Data Folder"), this, SLOT(showDataFolder()));
|
||||
menu->addAction(tr("Show Log Folder"), this, SLOT(showLogFolder()));
|
||||
}
|
||||
|
||||
QtMainWindow::DockWidget* QtMainWindow::getDockWidgetForView(View* view)
|
||||
|
||||
@@ -101,6 +101,9 @@ public slots:
|
||||
void showLicenses();
|
||||
void enterLicense();
|
||||
|
||||
void showDataFolder();
|
||||
void showLogFolder();
|
||||
|
||||
void showStartScreen();
|
||||
void hideStartScreen();
|
||||
|
||||
|
||||
@@ -71,7 +71,7 @@ void QtProjectWizzardContentSelect::populateWindow(QGridLayout* layout)
|
||||
m_solutionDescription.push_back("Create a new Coati project by defining what files will be indexed.");
|
||||
m_solutionDescription.push_back("Create a project from an existing Compilation Database. Compilation Databases can be created from "
|
||||
"Make and CMake projects. Have a look at the "
|
||||
"<a href=\"https://staging.coati.io/documentation/#CreateAProjectFromCompilationDatabase\">"
|
||||
"<a href=\"https://coati.io/documentation/#CreateAProjectFromCompilationDatabase\">"
|
||||
"documentation</a> to find out more.");
|
||||
|
||||
m_buttons = new QButtonGroup(this);
|
||||
|
||||
Reference in New Issue
Block a user