Showing the changes to interface/src/scripting/MenuScriptingInterface.h (1 of 3 files). Show all
Unified · Split
| @@ -55,23 +55,23 @@ public slots: · 54 unmodified lines | ||
| 55 | 55 | /**jsdoc |
| 56 | 56 | * Add a new top-level menu. |
| 57 | 57 | * @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. | |
| 60 | 60 | */ |
| 61 | 61 | void addMenu(const QString& menuName, const QString& grouping = QString()); |
| 62 | 62 | |
| 63 | 63 | /**jsdoc |
| 64 | 64 | * Remove a top-level menu. |
| 65 | 65 | * @function Menu.removeMenu |
| 66 | − * @param {string} menuName Name of the menu to remove. | |
| 66 | + * @param {String} menuName Name of the menu to remove. | |
| 67 | 67 | */ |
| 68 | 68 | void removeMenu(const QString& menuName); |
| 69 | 69 | |
| 70 | 70 | /**jsdoc |
| 71 | 71 | * Check whether a top-level menu exists. |
| 72 | 72 | * @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`. | |
| 75 | 75 | */ |
| 76 | 76 | bool menuExists(const QString& menuName); |
| 77 | 77 | |
| @@ -79,16 +79,16 @@ public slots: · 1 unmodified line | ||
| 79 | 79 | * Add a separator with an unclickable label below it. |
| 80 | 80 | * The line will be placed at the bottom of the menu. |
| 81 | 81 | * @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. | |
| 84 | 84 | */ |
| 85 | 85 | void addSeparator(const QString& menuName, const QString& separatorName); |
| 86 | 86 | |
| 87 | 87 | /**jsdoc |
| 88 | 88 | * Remove a separator from a menu. |
| 89 | 89 | * @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. | |
| 92 | 92 | */ |
| 93 | 93 | void removeSeparator(const QString& menuName, const QString& separatorName); |
| 94 | 94 | |
| @@ -102,9 +102,9 @@ public slots: · 7 unmodified lines | ||
| 102 | 102 | /**jsdoc |
| 103 | 103 | * Add a new menu item to a menu. |
| 104 | 104 | * @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. | |
| 108 | 108 | */ |
| 109 | 109 | void addMenuItem(const QString& menuName, const QString& menuitem, const QString& shortcutKey); |
| 110 | 110 | void addMenuItem(const QString& menuName, const QString& menuitem); |
| @@ -112,17 +112,17 @@ public slots: · 1 unmodified line | ||
| 112 | 112 | /**jsdoc |
| 113 | 113 | * Remove a menu item from a menu. |
| 114 | 114 | * @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. | |
| 117 | 117 | */ |
| 118 | 118 | void removeMenuItem(const QString& menuName, const QString& menuitem); |
| 119 | 119 | |
| 120 | 120 | /**jsdoc |
| 121 | 121 | * Check if a menu item exists. |
| 122 | 122 | * @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`. | |
| 126 | 126 | */ |
| 127 | 127 | bool menuItemExists(const QString& menuName, const QString& menuitem); |
| 128 | 128 | |
| @@ -136,23 +136,23 @@ public slots: · 7 unmodified lines | ||
| 136 | 136 | /**jsdoc |
| 137 | 137 | * Check whether a checkable menu item is checked. |
| 138 | 138 | * @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. | |
| 141 | 141 | */ |
| 142 | 142 | bool isOptionChecked(const QString& menuOption); |
| 143 | 143 | |
| 144 | 144 | /**jsdoc |
| 145 | 145 | * Set a checkable menu item as checked or unchecked. |
| 146 | 146 | * @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. | |
| 149 | 149 | */ |
| 150 | 150 | void setIsOptionChecked(const QString& menuOption, bool isChecked); |
| 151 | 151 | |
| 152 | 152 | /**jsdoc |
| 153 | 153 | * Trigger the menu item as if the user clicked on it. |
| 154 | 154 | * @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. | |
| 156 | 156 | */ |
| 157 | 157 | void triggerOption(const QString& menuOption); |
| 158 | 158 | |
| @@ -160,16 +160,16 @@ public slots: · 1 unmodified line | ||
| 160 | 160 | * Check whether a menu is enabled. If a menu is disabled it is grayed out and unusable. |
| 161 | 161 | * Menus are enabled by default. |
| 162 | 162 | * @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. | |
| 165 | 165 | */ |
| 166 | 166 | bool isMenuEnabled(const QString& menuName); |
| 167 | 167 | |
| 168 | 168 | /**jsdoc |
| 169 | 169 | * Set a menu to be enabled or disabled. If a menu is disabled it is grayed out and unusable. |
| 170 | 170 | * @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. | |
| 173 | 173 | */ |
| 174 | 174 | void setMenuEnabled(const QString& menuName, bool isEnabled); |
| 175 | 175 | |
| @@ -183,7 +183,7 @@ signals: · 7 unmodified lines | ||
| 183 | 183 | /**jsdoc |
| 184 | 184 | * Notifies scripts when a menu item is clicked (or triggered by {@link Menu.triggerOption}). |
| 185 | 185 | * @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. | |
| 187 | 187 | * @returns {Signal} |
| 188 | 188 | */ |
| 189 | 189 | void menuItemEvent(const QString& menuItem); |