mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-10-01 01:26:01 -04:00
Add links to docs in the Help menu (#3274)
* Fix #3266 and Fix #3197 * Add documentation links to Help menu * Added offline documentation (PDF) for Getting Started Guide and User Guide
This commit is contained in:
parent
05c11d1b7c
commit
9728df2a48
@ -39,6 +39,8 @@ if(APPLE)
|
|||||||
install(FILES macosx/keepassxc.icns DESTINATION ${DATA_INSTALL_DIR})
|
install(FILES macosx/keepassxc.icns DESTINATION ${DATA_INSTALL_DIR})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
install(DIRECTORY docs/ DESTINATION ${DATA_INSTALL_DIR}/docs FILES_MATCHING PATTERN "*.pdf")
|
||||||
|
|
||||||
install(DIRECTORY wizard/ DESTINATION ${DATA_INSTALL_DIR}/wizard FILES_MATCHING PATTERN "*.png")
|
install(DIRECTORY wizard/ DESTINATION ${DATA_INSTALL_DIR}/wizard FILES_MATCHING PATTERN "*.png")
|
||||||
|
|
||||||
install(DIRECTORY icons/application/ DESTINATION ${DATA_INSTALL_DIR}/icons/application
|
install(DIRECTORY icons/application/ DESTINATION ${DATA_INSTALL_DIR}/icons/application
|
||||||
|
BIN
share/docs/KeePassXC_GettingStarted.pdf
Normal file
BIN
share/docs/KeePassXC_GettingStarted.pdf
Normal file
Binary file not shown.
BIN
share/docs/KeePassXC_UserGuide.pdf
Normal file
BIN
share/docs/KeePassXC_UserGuide.pdf
Normal file
Binary file not shown.
@ -59,6 +59,13 @@
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QLabel" name="label">
|
||||||
|
<property name="text">
|
||||||
|
<string>Browsers installed as snaps are currently not supported.</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QLabel" name="extensionLabel"/>
|
<widget class="QLabel" name="extensionLabel"/>
|
||||||
</item>
|
</item>
|
||||||
|
@ -397,6 +397,10 @@ MainWindow::MainWindow()
|
|||||||
connect(m_ui->actionAbout, SIGNAL(triggered()), SLOT(showAboutDialog()));
|
connect(m_ui->actionAbout, SIGNAL(triggered()), SLOT(showAboutDialog()));
|
||||||
connect(m_ui->actionDonate, SIGNAL(triggered()), SLOT(openDonateUrl()));
|
connect(m_ui->actionDonate, SIGNAL(triggered()), SLOT(openDonateUrl()));
|
||||||
connect(m_ui->actionBugReport, SIGNAL(triggered()), SLOT(openBugReportUrl()));
|
connect(m_ui->actionBugReport, SIGNAL(triggered()), SLOT(openBugReportUrl()));
|
||||||
|
connect(m_ui->actionGettingStarted, SIGNAL(triggered()), SLOT(openGettingStartedGuide()));
|
||||||
|
connect(m_ui->actionUserGuide, SIGNAL(triggered()), SLOT(openUserGuide()));
|
||||||
|
connect(m_ui->actionOnlineHelp, SIGNAL(triggered()), SLOT(openOnlineHelp()));
|
||||||
|
|
||||||
|
|
||||||
#ifdef Q_OS_MACOS
|
#ifdef Q_OS_MACOS
|
||||||
setUnifiedTitleAndToolBarOnMac(true);
|
setUnifiedTitleAndToolBarOnMac(true);
|
||||||
@ -758,16 +762,35 @@ void MainWindow::showUpdateCheckDialog()
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void MainWindow::customOpenUrl(QString url)
|
||||||
|
{
|
||||||
|
QDesktopServices::openUrl(QUrl(url));
|
||||||
|
}
|
||||||
|
|
||||||
void MainWindow::openDonateUrl()
|
void MainWindow::openDonateUrl()
|
||||||
{
|
{
|
||||||
QDesktopServices::openUrl(QUrl("https://keepassxc.org/donate"));
|
customOpenUrl("https://keepassxc.org/donate");
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainWindow::openBugReportUrl()
|
void MainWindow::openBugReportUrl()
|
||||||
{
|
{
|
||||||
QDesktopServices::openUrl(QUrl("https://github.com/keepassxreboot/keepassxc/issues"));
|
customOpenUrl("https://github.com/keepassxreboot/keepassxc/issues");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void MainWindow::openGettingStartedGuide()
|
||||||
|
{
|
||||||
|
customOpenUrl(filePath()->dataPath("docs/KeePassXC_GettingStarted.pdf"));
|
||||||
|
}
|
||||||
|
|
||||||
|
void MainWindow::openUserGuide()
|
||||||
|
{
|
||||||
|
customOpenUrl(filePath()->dataPath("docs/KeePassXC_UserGuide.pdf"));
|
||||||
|
}
|
||||||
|
|
||||||
|
void MainWindow::openOnlineHelp()
|
||||||
|
{
|
||||||
|
customOpenUrl("https://keepassxc.org/docs/");
|
||||||
|
}
|
||||||
void MainWindow::switchToDatabases()
|
void MainWindow::switchToDatabases()
|
||||||
{
|
{
|
||||||
if (m_ui->tabWidget->currentIndex() == -1) {
|
if (m_ui->tabWidget->currentIndex() == -1) {
|
||||||
|
@ -91,6 +91,9 @@ private slots:
|
|||||||
void hasUpdateAvailable(bool hasUpdate, const QString& version, bool isManuallyRequested);
|
void hasUpdateAvailable(bool hasUpdate, const QString& version, bool isManuallyRequested);
|
||||||
void openDonateUrl();
|
void openDonateUrl();
|
||||||
void openBugReportUrl();
|
void openBugReportUrl();
|
||||||
|
void openGettingStartedGuide();
|
||||||
|
void openUserGuide();
|
||||||
|
void openOnlineHelp();
|
||||||
void switchToDatabases();
|
void switchToDatabases();
|
||||||
void switchToSettings(bool enabled);
|
void switchToSettings(bool enabled);
|
||||||
void switchToPasswordGen(bool enabled);
|
void switchToPasswordGen(bool enabled);
|
||||||
@ -132,6 +135,7 @@ private:
|
|||||||
bool saveLastDatabases();
|
bool saveLastDatabases();
|
||||||
void updateTrayIcon();
|
void updateTrayIcon();
|
||||||
bool isTrayIconEnabled() const;
|
bool isTrayIconEnabled() const;
|
||||||
|
void customOpenUrl(QString url);
|
||||||
|
|
||||||
static QStringList kdbxFilesFromUrls(const QList<QUrl>& urls);
|
static QStringList kdbxFilesFromUrls(const QList<QUrl>& urls);
|
||||||
void dragEnterEvent(QDragEnterEvent* event) override;
|
void dragEnterEvent(QDragEnterEvent* event) override;
|
||||||
|
@ -224,6 +224,11 @@
|
|||||||
<string>&Help</string>
|
<string>&Help</string>
|
||||||
</property>
|
</property>
|
||||||
<addaction name="actionAbout"/>
|
<addaction name="actionAbout"/>
|
||||||
|
<addaction name="separator"/>
|
||||||
|
<addaction name="actionGettingStarted"/>
|
||||||
|
<addaction name="actionUserGuide"/>
|
||||||
|
<addaction name="actionOnlineHelp"/>
|
||||||
|
<addaction name="separator"/>
|
||||||
<addaction name="actionCheckForUpdates"/>
|
<addaction name="actionCheckForUpdates"/>
|
||||||
<addaction name="actionDonate"/>
|
<addaction name="actionDonate"/>
|
||||||
<addaction name="actionBugReport"/>
|
<addaction name="actionBugReport"/>
|
||||||
@ -355,7 +360,7 @@
|
|||||||
</action>
|
</action>
|
||||||
<action name="actionCheckForUpdates">
|
<action name="actionCheckForUpdates">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Check for Updates...</string>
|
<string>&Check for Updates...</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="menuRole">
|
<property name="menuRole">
|
||||||
<enum>QAction::ApplicationSpecificRole</enum>
|
<enum>QAction::ApplicationSpecificRole</enum>
|
||||||
@ -547,7 +552,7 @@
|
|||||||
<bool>true</bool>
|
<bool>true</bool>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Password Generator</string>
|
<string>&Password Generator</string>
|
||||||
</property>
|
</property>
|
||||||
</action>
|
</action>
|
||||||
<action name="actionEntryAutoType">
|
<action name="actionEntryAutoType">
|
||||||
@ -677,9 +682,28 @@
|
|||||||
<string>Report a &bug</string>
|
<string>Report a &bug</string>
|
||||||
</property>
|
</property>
|
||||||
</action>
|
</action>
|
||||||
<action name="actionShare_entry">
|
<action name="actionGettingStarted">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Share entry</string>
|
<string>&Getting Started</string>
|
||||||
|
</property>
|
||||||
|
<property name="toolTip">
|
||||||
|
<string>Open Getting Started Guide PDF</string>
|
||||||
|
</property>
|
||||||
|
</action>
|
||||||
|
<action name="actionOnlineHelp">
|
||||||
|
<property name="text">
|
||||||
|
<string>&Online Help...</string>
|
||||||
|
</property>
|
||||||
|
<property name="toolTip">
|
||||||
|
<string>Go to online documentation (opens browser)</string>
|
||||||
|
</property>
|
||||||
|
</action>
|
||||||
|
<action name="actionUserGuide">
|
||||||
|
<property name="text">
|
||||||
|
<string>&User Guide</string>
|
||||||
|
</property>
|
||||||
|
<property name="toolTip">
|
||||||
|
<string>Open User Guide PDF</string>
|
||||||
</property>
|
</property>
|
||||||
</action>
|
</action>
|
||||||
</widget>
|
</widget>
|
||||||
|
Loading…
Reference in New Issue
Block a user