History

Snapshot button plus script

Minor change to allow snapshots to not notify (though the old way with CTRL+S still does). Added button to do it, saves them to disk. The plan is for us to add UI to share (or not) the snapshot. That's why we are not going through the notifications. Also, the script makes sure to hide/unhide hud and overlays. Next we will upload the pick to AWS via data-web (if you are logged in), and _then_ make the share UI.

David Kelly committed 10 years ago

Commit 1d7cdff1 parent 17a5fa07 files · +196 −11Browse files

Showing the changes to interface/src/scripting/WindowScriptingInterface.cpp (1 of 7 files). Show all

Unified · Split

interface/src/scripting/WindowScriptingInterface.cpp+7−0
@@ -199,3 +199,10 @@ void WindowScriptingInterface::copyToClipboard(const QString& text) { · 198 unmodified lines
199199 qDebug() << "Copying";
200200 QApplication::clipboard()->setText(text);
201201 }
202+
203+void WindowScriptingInterface::takeSnapshot(bool notify) {
204+ // only evil-doers call takeSnapshot from a random thread
205+ qApp->postLambdaEvent([&] {
206+ qApp->takeSnapshot(notify);
207+ });
208+}