//set up menu
QAction *connect_action = new QAction(tr("Connect"), this);
disconnect_action = new QAction(tr("Disconnect"), this);
- show_toolbar = new QAction(tr("Show Toolbar"), this);
+ show_toolbar = new QAction(tr("Show toolbar"), this);
show_toolbar->setCheckable(true);
show_toolbar->setChecked(settings.value("show_toolbar", true).toBool());
QAction *pref_action = new QAction(tr("Preferences"), this);
QMessageBox::about(this, tr("About Presence VNC"),
tr("<center><h1>Presence VNC 0.8</h1>\
<p>A touchscreen friendly VNC client</p>\
-<p><a href=\"https://garage.maemo.org/projects/presencevnc/\">https://garage.maemo.org/projects/presencevnc</a></p></center>\
+<p><a href=\"http://presencevnc.garage.maemo.org/\">http://presencevnc.garage.maemo.org/</a></p></center>\
<small><p>©2010 Christian Pulvermacher <pulvermacher@gmx.de><br />\
Based on KRDC, © 2007-2008 Urs Wolfer<br />\
and LibVNCServer, © 2001-2003 Johannes E. Schindelin</p>\
void MainWindow::showConnectDialog()
{
ConnectDialog *connect_dialog = new ConnectDialog(this);
- connect(connect_dialog, SIGNAL(connectToHost(QString, int, int)),
- this, SLOT(connectToHost(QString, int, int)));
+ connect(connect_dialog, SIGNAL(connectToHost(QString, int, int, bool)),
+ this, SLOT(connectToHost(QString, int, int, bool)));
connect_dialog->exec();
}
-void MainWindow::connectToHost(QString url, int quality, int listen_port)
+void MainWindow::connectToHost(QString url, int quality, int listen_port, bool view_only)
{
disconnectFromHost();
vnc_view = new VncView(this, url, RemoteView::Quality(quality), listen_port);
+ vnc_view->setViewOnly(view_only);
connect(vnc_view, SIGNAL(statusChanged(RemoteView::RemoteStatus)),
this, SLOT(statusChanged(RemoteView::RemoteStatus)));