Showing the changes to interface/src/scripting/WindowScriptingInterface.h (1 of 3 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,14 +28,19 @@ public: · 2 unmodified lines | ||
| 29 | 28 | public slots: |
| 30 | 29 | QScriptValue alert(const QString& message = ""); |
| 31 | 30 | QScriptValue confirm(const QString& message = ""); |
| 31 | + QScriptValue arrayEdit(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 | |
| 35 | 35 | private slots: |
| 36 | 36 | QScriptValue showAlert(const QString& message); |
| 37 | 37 | QScriptValue showConfirm(const QString& message); |
| 38 | + QScriptValue showArrayEdit(const QString& title, QScriptValue array); | |
| 38 | 39 | QScriptValue showPrompt(const QString& message, const QString& defaultText); |
| 39 | 40 | QScriptValue showBrowse(const QString& title, const QString& directory, const QString& nameFilter); |
| 41 | + | |
| 42 | +private: | |
| 43 | + WindowScriptingInterface(); | |
| 40 | 44 | }; |
| 41 | 45 | |
| 42 | 46 | #endif // hifi_WindowScriptingInterface_h |