Add placeholder File → Remote submenu + basic Preferences options

This commit is contained in:
Justin Clift
2016-09-28 13:52:46 +01:00
parent 18dccd162e
commit f537a009a0
6 changed files with 214 additions and 115 deletions

View File

@@ -184,7 +184,7 @@ void MainWindow::init()
// Add keyboard shortcut for "Edit Cell" dock
ui->viewMenu->actions().at(3)->setShortcut(QKeySequence(tr("Ctrl+E")));
// If we're not compiling in SQLCipher, hide it's FAQ link in the help menu
// If we're not compiling in SQLCipher, hide its FAQ link in the help menu
#ifndef ENABLE_SQLCIPHER
ui->actionSqlCipherFaq->setVisible(false);
#endif
@@ -1674,6 +1674,10 @@ void MainWindow::reloadSettings()
// Refresh view
populateStructure();
populateTable();
// Hide or show the File → Remote menu as needed
QAction *remoteMenuAction = ui->menuRemote->menuAction();
remoteMenuAction->setVisible(Settings::getSettingsValue("MainWindow", "remotemenu").toBool());
}
void MainWindow::httpresponse(QNetworkReply *reply)
@@ -2052,6 +2056,16 @@ void MainWindow::on_butSavePlot_clicked()
}
}
void MainWindow::on_actionOpen_Remote_triggered()
{
QDesktopServices::openUrl(QUrl("https://dbhub.io"));
}
void MainWindow::on_actionSave_Remote_triggered()
{
QDesktopServices::openUrl(QUrl("https://dbhub.io"));
}
void MainWindow::on_actionWiki_triggered()
{
QDesktopServices::openUrl(QUrl("https://github.com/sqlitebrowser/sqlitebrowser/wiki"));