Showing the changes to interface/src/scripting/WindowScriptingInterface.h (1 of 238 files). Show all
Unified · Split
| @@ -20,7 +20,6 @@ class WindowScriptingInterface : public QObject { · 19 unmodified lines | ||
| 20 | 20 | Q_OBJECT |
| 21 | 21 | Q_PROPERTY(int innerWidth READ getInnerWidth) |
| 22 | 22 | Q_PROPERTY(int innerHeight READ getInnerHeight) |
| 23 | − WindowScriptingInterface() { }; | |
| 24 | 23 | public: |
| 25 | 24 | static WindowScriptingInterface* getInstance(); |
| 26 | 25 | int getInnerWidth(); |
| @@ -29,16 +28,23 @@ public: · 2 unmodified lines | ||
| 29 | 28 | public slots: |
| 30 | 29 | QScriptValue alert(const QString& message = ""); |
| 31 | 30 | QScriptValue confirm(const QString& message = ""); |
| 31 | + QScriptValue form(const QString& title, QScriptValue array); | |
| 32 | 32 | QScriptValue prompt(const QString& message = "", const QString& defaultText = ""); |
| 33 | 33 | QScriptValue browse(const QString& title = "", const QString& directory = "", const QString& nameFilter = ""); |
| 34 | 34 | QScriptValue save(const QString& title = "", const QString& directory = "", const QString& nameFilter = ""); |
| 35 | + QScriptValue s3Browse(const QString& nameFilter = ""); | |
| 35 | 36 | |
| 36 | 37 | private slots: |
| 37 | 38 | QScriptValue showAlert(const QString& message); |
| 38 | 39 | QScriptValue showConfirm(const QString& message); |
| 40 | + QScriptValue showForm(const QString& title, QScriptValue form); | |
| 39 | 41 | QScriptValue showPrompt(const QString& message, const QString& defaultText); |
| 40 | 42 | QScriptValue showBrowse(const QString& title, const QString& directory, const QString& nameFilter, |
| 41 | 43 | QFileDialog::AcceptMode acceptMode = QFileDialog::AcceptOpen); |
| 44 | + QScriptValue showS3Browse(const QString& nameFilter); | |
| 45 | + | |
| 46 | +private: | |
| 47 | + WindowScriptingInterface(); | |
| 42 | 48 | }; |
| 43 | 49 | |
| 44 | 50 | #endif // hifi_WindowScriptingInterface_h |