Changeset View
Changeset View
Standalone View
Standalone View
src/SpectacleDBusAdapter.cpp
Show All 27 Lines | 27 | { | |||
---|---|---|---|---|---|
28 | setAutoRelaySignals(false); | 28 | setAutoRelaySignals(false); | ||
29 | } | 29 | } | ||
30 | 30 | | |||
31 | inline SpectacleCore *SpectacleDBusAdapter::parent() const | 31 | inline SpectacleCore *SpectacleDBusAdapter::parent() const | ||
32 | { | 32 | { | ||
33 | return static_cast<SpectacleCore *>(QObject::parent()); | 33 | return static_cast<SpectacleCore *>(QObject::parent()); | ||
34 | } | 34 | } | ||
35 | 35 | | |||
36 | Q_NOREPLY void SpectacleDBusAdapter::StartAgent() | 36 | void SpectacleDBusAdapter::FullScreen(bool includeMousePointer) | ||
37 | { | | |||
38 | parent()->dbusStartAgent(); | | |||
39 | } | | |||
40 | | ||||
41 | Q_NOREPLY void SpectacleDBusAdapter::FullScreen(bool includeMousePointer) | | |||
42 | { | 37 | { | ||
43 | parent()->takeNewScreenshot(Spectacle::CaptureMode::AllScreens, 0, includeMousePointer, true); | 38 | parent()->takeNewScreenshot(Spectacle::CaptureMode::AllScreens, 0, includeMousePointer, true); | ||
44 | } | 39 | } | ||
45 | 40 | | |||
46 | Q_NOREPLY void SpectacleDBusAdapter::CurrentScreen(bool includeMousePointer) | 41 | void SpectacleDBusAdapter::CurrentScreen(bool includeMousePointer) | ||
47 | { | 42 | { | ||
48 | parent()->takeNewScreenshot(Spectacle::CaptureMode::CurrentScreen, 0, includeMousePointer, true); | 43 | parent()->takeNewScreenshot(Spectacle::CaptureMode::CurrentScreen, 0, includeMousePointer, true); | ||
49 | } | 44 | } | ||
50 | 45 | | |||
51 | Q_NOREPLY void SpectacleDBusAdapter::ActiveWindow(bool includeWindowDecorations, bool includeMousePointer) | 46 | void SpectacleDBusAdapter::ActiveWindow(bool includeWindowDecorations, bool includeMousePointer) | ||
52 | { | 47 | { | ||
53 | parent()->takeNewScreenshot(Spectacle::CaptureMode::ActiveWindow, 0, includeMousePointer, includeWindowDecorations); | 48 | parent()->takeNewScreenshot(Spectacle::CaptureMode::ActiveWindow, 0, includeMousePointer, includeWindowDecorations); | ||
54 | } | 49 | } | ||
55 | 50 | | |||
56 | Q_NOREPLY void SpectacleDBusAdapter::WindowUnderCursor(bool includeWindowDecorations, bool includeMousePointer) | 51 | void SpectacleDBusAdapter::WindowUnderCursor(bool includeWindowDecorations, bool includeMousePointer) | ||
57 | { | 52 | { | ||
58 | parent()->takeNewScreenshot(Spectacle::CaptureMode::WindowUnderCursor, 0, includeMousePointer, includeWindowDecorations); | 53 | parent()->takeNewScreenshot(Spectacle::CaptureMode::WindowUnderCursor, 0, includeMousePointer, includeWindowDecorations); | ||
59 | } | 54 | } | ||
60 | 55 | | |||
61 | Q_NOREPLY void SpectacleDBusAdapter::RectangularRegion(bool includeMousePointer) | 56 | void SpectacleDBusAdapter::RectangularRegion(bool includeMousePointer) | ||
62 | { | 57 | { | ||
63 | parent()->takeNewScreenshot(Spectacle::CaptureMode::RectangularRegion, 0, includeMousePointer, false); | 58 | parent()->takeNewScreenshot(Spectacle::CaptureMode::RectangularRegion, 0, includeMousePointer, false); | ||
64 | } | 59 | } |