Changeset View
Changeset View
Standalone View
Standalone View
src/Main.cpp
Show First 20 Lines • Show All 73 Lines • ▼ Show 20 Line(s) | 60 | lCmdLineParser.addOptions({ | |||
---|---|---|---|---|---|
74 | {{QStringLiteral("w"), QStringLiteral("onclick")}, i18n("Wait for a click before taking screenshot. Invalidates delay")} | 74 | {{QStringLiteral("w"), QStringLiteral("onclick")}, i18n("Wait for a click before taking screenshot. Invalidates delay")} | ||
75 | }); | 75 | }); | ||
76 | 76 | | |||
77 | lCmdLineParser.process(lApp); | 77 | lCmdLineParser.process(lApp); | ||
78 | aboutData.processCommandLine(&lCmdLineParser); | 78 | aboutData.processCommandLine(&lCmdLineParser); | ||
79 | 79 | | |||
80 | // extract the capture mode | 80 | // extract the capture mode | ||
81 | 81 | | |||
82 | Spectacle::CaptureMode lCaptureMode = Spectacle::CaptureMode::AllScreens; | 82 | Spectacle::CaptureMode lCaptureMode = Spectacle::CaptureMode::EntireScreen; | ||
83 | if (lCmdLineParser.isSet(QStringLiteral("current"))) { | 83 | if (lCmdLineParser.isSet(QStringLiteral("current"))) { | ||
84 | lCaptureMode = Spectacle::CaptureMode::CurrentScreen; | 84 | lCaptureMode = Spectacle::CaptureMode::CurrentScreen; | ||
85 | } else if (lCmdLineParser.isSet(QStringLiteral("activewindow"))) { | 85 | } else if (lCmdLineParser.isSet(QStringLiteral("activewindow"))) { | ||
86 | lCaptureMode = Spectacle::CaptureMode::ActiveWindow; | 86 | lCaptureMode = Spectacle::CaptureMode::ActiveWindow; | ||
87 | } else if (lCmdLineParser.isSet(QStringLiteral("region"))) { | 87 | } else if (lCmdLineParser.isSet(QStringLiteral("region"))) { | ||
88 | lCaptureMode = Spectacle::CaptureMode::RectangularRegion; | 88 | lCaptureMode = Spectacle::CaptureMode::RectangularRegion; | ||
89 | } else if (lCmdLineParser.isSet(QStringLiteral("windowundercursor"))) { | 89 | } else if (lCmdLineParser.isSet(QStringLiteral("windowundercursor"))) { | ||
90 | lCaptureMode = Spectacle::CaptureMode::TransientWithParent; | 90 | lCaptureMode = Spectacle::CaptureMode::TransientWithParent; | ||
▲ Show 20 Lines • Show All 73 Lines • Show Last 20 Lines |