Showing the changes to interface/src/scripting/MenuScriptingInterface.h (1 of 220 files). Show all
Unified · Split
| @@ -17,7 +17,7 @@ · 16 unmodified lines | ||
| 17 | 17 | |
| 18 | 18 | class MenuItemProperties; |
| 19 | 19 | |
| 20 | −/**jsdoc | |
| 20 | +/*@jsdoc | |
| 21 | 21 | * The <code>Menu</code> API provides access to the menu that is displayed at the top of the window on a user's desktop and in |
| 22 | 22 | * the tablet when the "MENU" button is pressed. |
| 23 | 23 | * |
| @@ -57,7 +57,7 @@ private slots: · 33 unmodified lines | ||
| 57 | 57 | void menuItemTriggered(); |
| 58 | 58 | |
| 59 | 59 | public slots: |
| 60 | − /**jsdoc | |
| 60 | + /*@jsdoc | |
| 61 | 61 | * Adds a new top-level menu. |
| 62 | 62 | * @function Menu.addMenu |
| 63 | 63 | * @param {string} menuName - Name that will be displayed for the menu. Nested menus can be specified using the |
| @@ -73,7 +73,7 @@ public slots: · 9 unmodified lines | ||
| 73 | 73 | */ |
| 74 | 74 | void addMenu(const QString& menuName, const QString& grouping = QString()); |
| 75 | 75 | |
| 76 | − /**jsdoc | |
| 76 | + /*@jsdoc | |
| 77 | 77 | * Removes a top-level menu. |
| 78 | 78 | * @function Menu.removeMenu |
| 79 | 79 | * @param {string} menuName - Name of the menu to remove. |
| @@ -83,7 +83,7 @@ public slots: · 3 unmodified lines | ||
| 83 | 83 | */ |
| 84 | 84 | void removeMenu(const QString& menuName); |
| 85 | 85 | |
| 86 | − /**jsdoc | |
| 86 | + /*@jsdoc | |
| 87 | 87 | * Checks whether a top-level menu exists. |
| 88 | 88 | * @function Menu.menuExists |
| 89 | 89 | * @param {string} menuName - Name of the menu to check exists. |
| @@ -95,7 +95,7 @@ public slots: · 5 unmodified lines | ||
| 95 | 95 | */ |
| 96 | 96 | bool menuExists(const QString& menuName); |
| 97 | 97 | |
| 98 | − /**jsdoc | |
| 98 | + /*@jsdoc | |
| 99 | 99 | * Adds a separator with an unclickable label below it. The separator will be placed at the bottom of the menu. To add a |
| 100 | 100 | * separator at a specific point in the menu, use {@link Menu.addMenuItem} with {@link Menu.MenuItemProperties} instead. |
| 101 | 101 | * @function Menu.addSeparator |
| @@ -106,7 +106,7 @@ public slots: · 4 unmodified lines | ||
| 106 | 106 | */ |
| 107 | 107 | void addSeparator(const QString& menuName, const QString& separatorName); |
| 108 | 108 | |
| 109 | − /**jsdoc | |
| 109 | + /*@jsdoc | |
| 110 | 110 | * Removes a separator from a menu. |
| 111 | 111 | * @function Menu.removeSeparator |
| 112 | 112 | * @param {string} menuName - Name of the menu to remove the separator from. |
| @@ -116,7 +116,7 @@ public slots: · 3 unmodified lines | ||
| 116 | 116 | */ |
| 117 | 117 | void removeSeparator(const QString& menuName, const QString& separatorName); |
| 118 | 118 | |
| 119 | − /**jsdoc | |
| 119 | + /*@jsdoc | |
| 120 | 120 | * Adds a new menu item to a menu. The menu item is specified using {@link Menu.MenuItemProperties}. |
| 121 | 121 | * @function Menu.addMenuItem |
| 122 | 122 | * @param {Menu.MenuItemProperties} properties - Properties of the menu item to create. |
| @@ -130,7 +130,7 @@ public slots: · 7 unmodified lines | ||
| 130 | 130 | */ |
| 131 | 131 | void addMenuItem(const MenuItemProperties& properties); |
| 132 | 132 | |
| 133 | − /**jsdoc | |
| 133 | + /*@jsdoc | |
| 134 | 134 | * Adds a new menu item to a menu. The new item is added at the end of the menu. |
| 135 | 135 | * @function Menu.addMenuItem |
| 136 | 136 | * @variation 0 |
| @@ -143,7 +143,7 @@ public slots: · 6 unmodified lines | ||
| 143 | 143 | void addMenuItem(const QString& menuName, const QString& menuitem, const QString& shortcutKey); |
| 144 | 144 | void addMenuItem(const QString& menuName, const QString& menuitem); |
| 145 | 145 | |
| 146 | − /**jsdoc | |
| 146 | + /*@jsdoc | |
| 147 | 147 | * Removes a menu item from a menu. |
| 148 | 148 | * @function Menu.removeMenuItem |
| 149 | 149 | * @param {string} menuName - Name of the menu to remove a menu item from. |
| @@ -153,7 +153,7 @@ public slots: · 3 unmodified lines | ||
| 153 | 153 | */ |
| 154 | 154 | void removeMenuItem(const QString& menuName, const QString& menuitem); |
| 155 | 155 | |
| 156 | − /**jsdoc | |
| 156 | + /*@jsdoc | |
| 157 | 157 | * Checks whether a menu item exists. |
| 158 | 158 | * @function Menu.menuItemExists |
| 159 | 159 | * @param {string} menuName - Name of the menu that the menu item is in. |
| @@ -166,7 +166,7 @@ public slots: · 6 unmodified lines | ||
| 166 | 166 | */ |
| 167 | 167 | bool menuItemExists(const QString& menuName, const QString& menuitem); |
| 168 | 168 | |
| 169 | − /**jsdoc | |
| 169 | + /*@jsdoc | |
| 170 | 170 | * Checks whether a checkable menu item is checked. |
| 171 | 171 | * @function Menu.isOptionChecked |
| 172 | 172 | * @param {string} menuOption - The name of the menu item. |
| @@ -176,7 +176,7 @@ public slots: · 3 unmodified lines | ||
| 176 | 176 | */ |
| 177 | 177 | bool isOptionChecked(const QString& menuOption); |
| 178 | 178 | |
| 179 | − /**jsdoc | |
| 179 | + /*@jsdoc | |
| 180 | 180 | * Sets a checkable menu item as checked or unchecked. |
| 181 | 181 | * @function Menu.setIsOptionChecked |
| 182 | 182 | * @param {string} menuOption - The name of the menu item to modify. |
| @@ -187,7 +187,7 @@ public slots: · 4 unmodified lines | ||
| 187 | 187 | */ |
| 188 | 188 | void setIsOptionChecked(const QString& menuOption, bool isChecked); |
| 189 | 189 | |
| 190 | − /**jsdoc | |
| 190 | + /*@jsdoc | |
| 191 | 191 | * Triggers a menu item as if the user clicked on it. |
| 192 | 192 | * @function Menu.triggerOption |
| 193 | 193 | * @param {string} menuOption - The name of the menu item to trigger. |
| @@ -196,7 +196,7 @@ public slots: · 2 unmodified lines | ||
| 196 | 196 | */ |
| 197 | 197 | void triggerOption(const QString& menuOption); |
| 198 | 198 | |
| 199 | − /**jsdoc | |
| 199 | + /*@jsdoc | |
| 200 | 200 | * Checks whether a menu or menu item is enabled. If disabled, the item is grayed out and unusable. |
| 201 | 201 | * Menus are enabled by default. |
| 202 | 202 | * @function Menu.isMenuEnabled |
| @@ -207,7 +207,7 @@ public slots: · 4 unmodified lines | ||
| 207 | 207 | */ |
| 208 | 208 | bool isMenuEnabled(const QString& menuName); |
| 209 | 209 | |
| 210 | − /**jsdoc | |
| 210 | + /*@jsdoc | |
| 211 | 211 | * Sets a menu or menu item to be enabled or disabled. If disabled, the item is grayed out and unusable. |
| 212 | 212 | * @function Menu.setMenuEnabled |
| 213 | 213 | * @param {string} menuName - The name of the menu or menu item to modify. |
| @@ -219,7 +219,7 @@ public slots: · 5 unmodified lines | ||
| 219 | 219 | void setMenuEnabled(const QString& menuName, bool isEnabled); |
| 220 | 220 | |
| 221 | 221 | signals: |
| 222 | − /**jsdoc | |
| 222 | + /*@jsdoc | |
| 223 | 223 | * Triggered when a menu item is clicked or triggered by {@link Menu.triggerOption}. |
| 224 | 224 | * @function Menu.menuItemEvent |
| 225 | 225 | * @param {string} menuItem - Name of the menu item that was clicked or triggered. |