History

Remove Window.customPrompt() from JavaScript API

David Rowe committed 8 years ago

Commit d842e531 parent c8bb26a5 files · +0 −62Browse files

Showing the changes to interface/src/scripting/WindowScriptingInterface.h (1 of 5 files). Show all

Unified · Split

interface/src/scripting/WindowScriptingInterface.h+0−20
@@ -22,17 +22,6 @@ · 21 unmodified lines
22 22
23#include <DependencyManager.h>23#include <DependencyManager.h>
24 24
25class CustomPromptResult {
26public:
27 QVariant value;
28};
29
30Q_DECLARE_METATYPE(CustomPromptResult);
31
32QScriptValue CustomPromptResultToScriptValue(QScriptEngine* engine, const CustomPromptResult& result);
33void CustomPromptResultFromScriptValue(const QScriptValue& object, CustomPromptResult& result);
34
35
36/**jsdoc25/**jsdoc
37 * The Window API provides various facilities not covered elsewhere: window dimensions, window focus, normal or entity camera26 * 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 /**jsdoc134 /**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.browseDir136 * @function Window.browseDir