Still missing the warning and diabling of dynamic checkbox when the static mesh is selected.
Showing the changes to interface/src/scripting/WindowScriptingInterface.h (1 of 7 files). Show all
Unified · Split
| @@ -18,6 +18,18 @@ · 17 unmodified lines | ||
| 18 | 18 | |
| 19 | 19 | class WebWindowClass; |
| 20 | 20 | |
| 21 | + | |
| 22 | +class CustomPromptResult { | |
| 23 | +public: | |
| 24 | + QVariant value; | |
| 25 | +}; | |
| 26 | + | |
| 27 | +Q_DECLARE_METATYPE(CustomPromptResult); | |
| 28 | + | |
| 29 | +QScriptValue CustomPromptResultToScriptValue(QScriptEngine* engine, const CustomPromptResult& result); | |
| 30 | +void CustomPromptResultFromScriptValue(const QScriptValue& object, CustomPromptResult& result); | |
| 31 | + | |
| 32 | + | |
| 21 | 33 | class WindowScriptingInterface : public QObject, public Dependency { |
| 22 | 34 | Q_OBJECT |
| 23 | 35 | Q_PROPERTY(int innerWidth READ getInnerWidth) |
| @@ -38,6 +50,7 @@ public slots: · 14 unmodified lines | ||
| 38 | 50 | void alert(const QString& message = ""); |
| 39 | 51 | QScriptValue confirm(const QString& message = ""); |
| 40 | 52 | QScriptValue prompt(const QString& message = "", const QString& defaultText = ""); |
| 53 | + CustomPromptResult customPrompt(const QVariant& config); | |
| 41 | 54 | QScriptValue browse(const QString& title = "", const QString& directory = "", const QString& nameFilter = ""); |
| 42 | 55 | QScriptValue save(const QString& title = "", const QString& directory = "", const QString& nameFilter = ""); |
| 43 | 56 | void copyToClipboard(const QString& text); |