History

Update Clipboard and Menu JSDoc to use JavaScript type names

David Rowe committed 9 years ago

Commit c77a12f1 parent 036ac8d3 files · +48 −48Browse files

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

Unified · Split

interface/src/scripting/MenuScriptingInterface.h+27−27
@@ -55,23 +55,23 @@ public slots: · 54 unmodified lines
5555 /**jsdoc
5656 * Add a new top-level menu.
5757 * @function Menu.addMenu
58− * @param {string} menuName Name that will be displayed for the menu.
59− * @param {string} [grouping] Name of the grouping, if any, to add this menu to.
58+ * @param {String} menuName Name that will be displayed for the menu.
59+ * @param {String} [grouping] Name of the grouping, if any, to add this menu to.
6060 */
6161 void addMenu(const QString& menuName, const QString& grouping = QString());
6262
6363 /**jsdoc
6464 * Remove a top-level menu.
6565 * @function Menu.removeMenu
66− * @param {string} menuName Name of the menu to remove.
66+ * @param {String} menuName Name of the menu to remove.
6767 */
6868 void removeMenu(const QString& menuName);
6969
7070 /**jsdoc
7171 * Check whether a top-level menu exists.
7272 * @function Menu.menuExists
73− * @param {string} menuName Name of the menu to check for existence.
74− * @returns {bool} `true` if the menu exists, otherwise `false`.
73+ * @param {String} menuName Name of the menu to check for existence.
74+ * @returns {Boolean} `true` if the menu exists, otherwise `false`.
7575 */
7676 bool menuExists(const QString& menuName);
7777
@@ -79,16 +79,16 @@ public slots: · 1 unmodified line
7979 * Add a separator with an unclickable label below it.
8080 * The line will be placed at the bottom of the menu.
8181 * @function Menu.addSeparator
82− * @param {string} menuName Name of the menu to add a separator to.
83− * @param {string} separatorName Name of the separator that will be displayed as the label below the separator line.
82+ * @param {String} menuName Name of the menu to add a separator to.
83+ * @param {String} separatorName Name of the separator that will be displayed as the label below the separator line.
8484 */
8585 void addSeparator(const QString& menuName, const QString& separatorName);
8686
8787 /**jsdoc
8888 * Remove a separator from a menu.
8989 * @function Menu.removeSeparator
90− * @param {string} menuName Name of the menu to remove the separator from.
91− * @param {string} separatorName Name of the separator to remove.
90+ * @param {String} menuName Name of the menu to remove the separator from.
91+ * @param {String} separatorName Name of the separator to remove.
9292 */
9393 void removeSeparator(const QString& menuName, const QString& separatorName);
9494
@@ -102,9 +102,9 @@ public slots: · 7 unmodified lines
102102 /**jsdoc
103103 * Add a new menu item to a menu.
104104 * @function Menu.addMenuItem
105− * @param {string} menuName Name of the menu to add a menu item to.
106− * @param {string} menuItem Name of the menu item. This is what will be displayed in the menu.
107− * @param {string} [shortcutKey] A shortcut key that can be used to trigger the menu item.
105+ * @param {String} menuName Name of the menu to add a menu item to.
106+ * @param {String} menuItem Name of the menu item. This is what will be displayed in the menu.
107+ * @param {String} [shortcutKey] A shortcut key that can be used to trigger the menu item.
108108 */
109109 void addMenuItem(const QString& menuName, const QString& menuitem, const QString& shortcutKey);
110110 void addMenuItem(const QString& menuName, const QString& menuitem);
@@ -112,17 +112,17 @@ public slots: · 1 unmodified line
112112 /**jsdoc
113113 * Remove a menu item from a menu.
114114 * @function Menu.removeMenuItem
115− * @param {string} menuName Name of the menu to remove a menu item from.
116− * @param {string} menuItem Name of the menu item to remove.
115+ * @param {String} menuName Name of the menu to remove a menu item from.
116+ * @param {String} menuItem Name of the menu item to remove.
117117 */
118118 void removeMenuItem(const QString& menuName, const QString& menuitem);
119119
120120 /**jsdoc
121121 * Check if a menu item exists.
122122 * @function Menu.menuItemExists
123− * @param {string} menuName Name of the menu that the menu item is in.
124− * @param {string} menuItem Name of the menu item to check for existence of.
125− * @returns {bool} `true` if the menu item exists, otherwise `false`.
123+ * @param {String} menuName Name of the menu that the menu item is in.
124+ * @param {String} menuItem Name of the menu item to check for existence of.
125+ * @returns {Boolean} `true` if the menu item exists, otherwise `false`.
126126 */
127127 bool menuItemExists(const QString& menuName, const QString& menuitem);
128128
@@ -136,23 +136,23 @@ public slots: · 7 unmodified lines
136136 /**jsdoc
137137 * Check whether a checkable menu item is checked.
138138 * @function Menu.isOptionChecked
139− * @param {string} menuOption The name of the menu item.
140− * @returns {bool} `true` if the option is checked, otherwise false.
139+ * @param {String} menuOption The name of the menu item.
140+ * @returns {Boolean} `true` if the option is checked, otherwise false.
141141 */
142142 bool isOptionChecked(const QString& menuOption);
143143
144144 /**jsdoc
145145 * Set a checkable menu item as checked or unchecked.
146146 * @function Menu.setIsOptionChecked
147− * @param {string} menuOption The name of the menu item to modify.
148− * @param {bool} isChecked If `true`, the menu item will be checked, otherwise it will not be checked.
147+ * @param {String} menuOption The name of the menu item to modify.
148+ * @param {Boolean} isChecked If `true`, the menu item will be checked, otherwise it will not be checked.
149149 */
150150 void setIsOptionChecked(const QString& menuOption, bool isChecked);
151151
152152 /**jsdoc
153153 * Trigger the menu item as if the user clicked on it.
154154 * @function Menu.triggerOption
155− * @param {string} menuOption The name of the menu item to trigger.
155+ * @param {String} menuOption The name of the menu item to trigger.
156156 */
157157 void triggerOption(const QString& menuOption);
158158
@@ -160,16 +160,16 @@ public slots: · 1 unmodified line
160160 * Check whether a menu is enabled. If a menu is disabled it is grayed out and unusable.
161161 * Menus are enabled by default.
162162 * @function Menu.isMenuEnabled
163− * @param {string} menuName The name of the menu to check.
164− * @returns {bool} `true` if the menu is enabled, otherwise false.
163+ * @param {String} menuName The name of the menu to check.
164+ * @returns {Boolean} `true` if the menu is enabled, otherwise false.
165165 */
166166 bool isMenuEnabled(const QString& menuName);
167167
168168 /**jsdoc
169169 * Set a menu to be enabled or disabled. If a menu is disabled it is grayed out and unusable.
170170 * @function Menu.setMenuEnabled
171− * @param {string} menuName The name of the menu to modify.
172− * @param {bool} isEnabled Whether the menu will be enabled or not.
171+ * @param {String} menuName The name of the menu to modify.
172+ * @param {Boolean} isEnabled Whether the menu will be enabled or not.
173173 */
174174 void setMenuEnabled(const QString& menuName, bool isEnabled);
175175
@@ -183,7 +183,7 @@ signals: · 7 unmodified lines
183183 /**jsdoc
184184 * Notifies scripts when a menu item is clicked (or triggered by {@link Menu.triggerOption}).
185185 * @function Menu.menuItemEvent
186− * @param {string} menuItem Name of the menu item that was clicked.
186+ * @param {String} menuItem Name of the menu item that was clicked.
187187 * @returns {Signal}
188188 */
189189 void menuItemEvent(const QString& menuItem);