Showing the changes to interface/src/scripting/WindowScriptingInterface.h (1 of 5 files). Show all
Unified · Split
| @@ -22,17 +22,6 @@ · 21 unmodified lines | |||
| 22 | 22 | ||
| 23 | #include <DependencyManager.h> | 23 | #include <DependencyManager.h> |
| 24 | 24 | ||
| 25 | class CustomPromptResult { | ||
| 26 | public: | ||
| 27 | QVariant value; | ||
| 28 | }; | ||
| 29 | |||
| 30 | Q_DECLARE_METATYPE(CustomPromptResult); | ||
| 31 | |||
| 32 | QScriptValue CustomPromptResultToScriptValue(QScriptEngine* engine, const CustomPromptResult& result); | ||
| 33 | void CustomPromptResultFromScriptValue(const QScriptValue& object, CustomPromptResult& result); | ||
| 34 | |||
| 35 | |||
| 36 | /**jsdoc | 25 | /**jsdoc |
| 37 | * The Window API provides various facilities not covered elsewhere: window dimensions, window focus, normal or entity camera | 26 | * The Window API provides various facilities not covered elsewhere: window dimensions, window focus, normal or entity camera |
| 38 | * view, clipboard, announcements, user connections, common dialog boxes, snapshots, file import, domain changes, domain | 27 | * view, clipboard, announcements, user connections, common dialog boxes, snapshots, file import, domain changes, domain |
| @@ -142,15 +131,6 @@ public slots: · 103 unmodified lines | |||
| 142 | */ | 131 | */ |
| 143 | void promptAsync(const QString& message = "", const QString& defaultText = ""); | 132 | void promptAsync(const QString& message = "", const QString& defaultText = ""); |
| 144 | 133 | ||
| 145 | /**jsdoc | ||
| 146 | * Prompt the user for input in a custom, modal dialog. | ||
| 147 | * @deprecated This function is deprecated and will soon be removed. | ||
| 148 | * @function Window.customPrompt | ||
| 149 | * @param {object} config - Configures the modal dialog. | ||
| 150 | * @returns {object} The user's response. | ||
| 151 | */ | ||
| 152 | CustomPromptResult customPrompt(const QVariant& config); | ||
| 153 | |||
| 154 | /**jsdoc | 134 | /**jsdoc |
| 155 | * Prompt the user to choose a directory. Displays a modal dialog that navigates the directory tree. | 135 | * Prompt the user to choose a directory. Displays a modal dialog that navigates the directory tree. |
| 156 | * @function Window.browseDir | 136 | * @function Window.browseDir |