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.
Showing the changes to interface/src/scripting/WindowScriptingInterface.h (1 of 7 files). Show all
Unified · Split
| @@ -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 | ||
| 58 | signals: | 59 | signals: |
| 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 | ||
| 64 | private slots: | 65 | private 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); |