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
54 QScriptValue browse(const QString& title = "", const QString& directory = "", const QString& nameFilter = "");54 QScriptValue browse(const QString& title = "", const QString& directory = "", const QString& nameFilter = "");
55 QScriptValue save(const QString& title = "", const QString& directory = "", const QString& nameFilter = "");55 QScriptValue save(const QString& title = "", const QString& directory = "", const QString& nameFilter = "");
56 void copyToClipboard(const QString& text);56 void copyToClipboard(const QString& text);
57 void takeSnapshot(bool notify);
57 58
58signals:59signals:
59 void domainChanged(const QString& domainHostname);60 void domainChanged(const QString& domainHostname);
60 void svoImportRequested(const QString& url);61 void svoImportRequested(const QString& url);
61 void domainConnectionRefused(const QString& reasonMessage, int reasonCode);62 void domainConnectionRefused(const QString& reasonMessage, int reasonCode);
62 void snapshotTaken(const QString& path);63 void snapshotTaken(const QString& path, bool notify);
63 64
64private slots:65private slots:
65 WebWindowClass* doCreateWebWindow(const QString& title, const QString& url, int width, int height);66 WebWindowClass* doCreateWebWindow(const QString& title, const QString& url, int width, int height);