From 05c2bc6ae73a85d221161f09ef1ac939830a567c Mon Sep 17 00:00:00 2001 From: Jeremy Fleischman Date: Fri, 14 Dec 2018 22:03:13 -0800 Subject: [PATCH] Added a `gui --selection` option to print out the geometry of the selection. Fixes #425. --- data/dbus/org.flameshot.Flameshot.xml | 3 +++ src/core/controller.cpp | 8 +++--- src/core/controller.h | 4 +-- src/core/flameshotdbusadapter.cpp | 6 +++-- src/core/flameshotdbusadapter.h | 4 +-- src/main.cpp | 30 +++++++++++++++------ src/utils/dbusutils.cpp | 39 +++++++++++++++++++++++++-- src/utils/dbusutils.h | 4 ++- src/widgets/capture/capturewidget.cpp | 2 +- src/widgets/capture/capturewidget.h | 2 +- 10 files changed, 80 insertions(+), 22 deletions(-) diff --git a/data/dbus/org.flameshot.Flameshot.xml b/data/dbus/org.flameshot.Flameshot.xml index 219b563f..3a3beedc 100644 --- a/data/dbus/org.flameshot.Flameshot.xml +++ b/data/dbus/org.flameshot.Flameshot.xml @@ -95,12 +95,14 @@ captureTaken: @id: identificator of the call. @rawImage: raw image in PNG format. + @selection: QRect selection geometry. Successful capture signal returning the image. --> +