MCPcopy Create free account
hub / github.com/ckaiser/Lightscreen / executeArgument

Method executeArgument

lightscreenwindow.cpp:339–364  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

337}
338
339void LightscreenWindow::executeArgument(const QString &message)
340{
341 if (message == "--wake") {
342 show();
343 os::setForegroundWindow(this);
344 qApp->alert(this, 2000);
345 } else if (message == "--screen") {
346 screenshotAction(Screenshot::WholeScreen);
347 } else if (message == "--area") {
348 screenshotAction(Screenshot::SelectedArea);
349 } else if (message == "--activewindow") {
350 screenshotAction(Screenshot::ActiveWindow);
351 } else if (message == "--pickwindow") {
352 screenshotAction(Screenshot::SelectedWindow);
353 } else if (message == "--folder") {
354 action(OpenScreenshotFolder);
355 } else if (message == "--uploadlast") {
356 uploadLast();
357 } else if (message == "--viewhistory") {
358 showHistoryDialog();
359 } else if (message == "--options") {
360 showOptions();
361 } else if (message == "--quit") {
362 qApp->quit();
363 }
364}
365
366void LightscreenWindow::executeArguments(const QStringList &arguments)
367{

Callers

nothing calls this directly

Calls 1

quitMethod · 0.80

Tested by

no test coverage detected