Package: vokoscreen Version: 2.0.0-2 Severity: wishlist Tags: patch upstream
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 Hi Volker, Eriberto, thanks for writing and maintaining vokoscreen. One feature I was missing is he possibility to turn off/on the webcam with a keyboard shortcut. So I fired up qtcreator and produced the attached patch; maybe not elegant but seems to work for me :) Maybe this is a feature that could be included in vokoscreen? Cheers, gregor - -- System Information: Debian Release: jessie/sid APT prefers unstable APT policy: (990, 'unstable'), (500, 'experimental'), (500, 'testing'), (500, 'stable'), (500, 'oldstable') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 3.16-rc6-amd64 (SMP w/4 CPU cores) Locale: LANG=C, LC_CTYPE=de_AT.utf8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages vokoscreen depends on: ii libasound2 1.0.28-1 ii libav-tools 10:2.3.1-dmo1 ii libc6 2.19-7 ii libgcc1 1:4.9.1-4 ii libopencv-highgui2.4 2.4.9+dfsg-1 ii libqt4-network 4:4.8.6+git49-gbc62005+dfsg-1 ii libqt4-test 4:4.8.6+git49-gbc62005+dfsg-1 ii libqtcore4 4:4.8.6+git49-gbc62005+dfsg-1 ii libqtgui4 4:4.8.6+git49-gbc62005+dfsg-1 ii libstdc++6 4.9.1-4 ii libx11-6 2:1.6.2-2 ii mkvtoolnix 7.1.0-1 ii pulseaudio-utils 5.0-6 Versions of packages vokoscreen recommends: ii libdc1394-utils 2.2.2-3 vokoscreen suggests no packages. - -- no debconf information -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQJ8BAEBCgBmBQJT4UIJXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXREMUUxMzE2RTkzQTc2MEE4MTA0RDg1RkFC QjNBNjgwMTg2NDlBQTA2AAoJELs6aAGGSaoGzYwQAJ0MbGx/YBhrRG/X49A/Kzcj VmKpWVYUhHOdILOkNZyypvAE6uxNAkp+XDBYa1SPrPDMELzagmhfKlheYm7Lno+S J8VoCTkOPRy/25UpsVP8VRDXimy6qmuTtBg9DfayNZ0b/pv6RO5/40BfzIa8NvY9 b6/DtlqMBign8x2RXo9ChIeJE+mZp4m0/HyWs+McksfhwszIRpjw3qehAS1QPyI8 0xcBbGufJ4lg2Ruvj3VLr3Pl5G4yaKzn5ycMBtpuw2kocBSq5TtECEZasb3GbVJz QwtnbfK5w+CmsW3WEktFLdm/FsJoy8guFDUrZf6Kh0PnBjgMljQFV4aI2NRYVMBl RoZvei6qrPt8jMsoBplvrW8kE4oDlyKwH6Z2W0zNRPkOsGorfy/I8nqpyTSad9an ZMXUQmeAgGSvo8zbanYiKO7BvtkqBhEHnw0PFvQy3ZI/eElyGqhzoaVoHCvKyFnq 22CM9KoDWVNRe1Oik9bDAH2NpXOUGdnRkX20sPe1jqWs8XC5MnlxltrQsaiGs6nM QSSioe0FwlKT4B6OjOeQW9gf42sVzsQfQR0dORvplop9UqOTbOg3plTN8Jy+Vs/3 1wo+DQyPYUy8koUcaxr+QyemzExBvTIwqEtb9nje0+JBSBCtZzCfdFOgLBfC+ilV kZG5ObW/K0YtSFpsikPU =yGy/ -----END PGP SIGNATURE-----
>From dc4d60719e3a0f39fb579fcd1b94dc8616cbb860 Mon Sep 17 00:00:00 2001 From: gregor herrmann <gre...@debian.org> Date: Tue, 5 Aug 2014 22:28:05 +0200 Subject: [PATCH] Add shortcut for turning on/off webcam. --- screencast.cpp | 10 ++++++++++ screencast.h | 2 ++ webcam/QvkWebcamController.cpp | 1 + 3 files changed, 13 insertions(+) diff --git a/screencast.cpp b/screencast.cpp index e0acdd6..5596f60 100644 --- a/screencast.cpp +++ b/screencast.cpp @@ -709,6 +709,10 @@ screencast::screencast() connect( shortcutPause, SIGNAL( activated() ), this, SLOT( ShortcutPause() ) ); shortcutPause->setShortcut( QKeySequence( "Ctrl+Shift+F12" ) ); + shortcutWebcam = new QxtGlobalShortcut( this ); + connect( shortcutWebcam, SIGNAL( activated() ), this, SLOT( ShortcutWebcam() ) ); + shortcutWebcam->setShortcut( QKeySequence( "Ctrl+Shift+F8" ) ); + QvkAlsaWatcher * myAlsaWatcher = new QvkAlsaWatcher(); connect( myAlsaWatcher, SIGNAL( changed( QStringList ) ), this, SLOT( AlsaWatcherEvent( QStringList ) ) ); @@ -1075,6 +1079,12 @@ void screencast::ShortcutPause() } +void screencast::ShortcutWebcam() +{ + webcamCheckBox->webcamClose(); +} + + void screencast::SystemTrayStart( QSystemTrayIcon::ActivationReason reason ) { if ( reason == QSystemTrayIcon::Trigger ) diff --git a/screencast.h b/screencast.h index 5e5c9b0..431e6ee 100644 --- a/screencast.h +++ b/screencast.h @@ -163,6 +163,7 @@ private slots: void ShortcutPause(); void ShortcutMagnifier(); void uncheckMagnifier(); + void ShortcutWebcam(); void send(); @@ -250,6 +251,7 @@ private: QxtGlobalShortcut *shortcutPause; QxtGlobalShortcut *shortcutStart; QxtGlobalShortcut *shortcutStop; + QxtGlobalShortcut *shortcutWebcam; QvkWinInfo *vkWinInfo; WId moveWindowID; diff --git a/webcam/QvkWebcamController.cpp b/webcam/QvkWebcamController.cpp index f2e4e77..045ab18 100644 --- a/webcam/QvkWebcamController.cpp +++ b/webcam/QvkWebcamController.cpp @@ -6,6 +6,7 @@ QvkWebcamController::QvkWebcamController( QWidget * value ) checkBox = new QCheckBox( value ); checkBox->setText( tr( "Webcam" ) ); + checkBox->setToolTip( "CTRL-SHIFT-F8" ); checkBox->show(); connect( checkBox, SIGNAL( clicked() ), SLOT( webcam() ) ); -- 2.0.1