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.h (1 of 7 files). Show all

Unified · Split

interface/src/scripting/WindowScriptingInterface.h+2−1
@@ -54,12 +54,13 @@ public slots: · 53 unmodified lines
5454 QScriptValue browse(const QString& title = "", const QString& directory = "", const QString& nameFilter = "");
5555 QScriptValue save(const QString& title = "", const QString& directory = "", const QString& nameFilter = "");
5656 void copyToClipboard(const QString& text);
57+ void takeSnapshot(bool notify);
5758
5859 signals:
5960 void domainChanged(const QString& domainHostname);
6061 void svoImportRequested(const QString& url);
6162 void domainConnectionRefused(const QString& reasonMessage, int reasonCode);
62− void snapshotTaken(const QString& path);
63+ void snapshotTaken(const QString& path, bool notify);
6364
6465 private slots:
6566 WebWindowClass* doCreateWebWindow(const QString& title, const QString& url, int width, int height);