|
VivoQuant 6.4.0
|
Manage hiding and disabling of widgets, actions, operators, and views that are in the VivoQuant UI.
Public Member Functions | |
| void | setVisible (QObject *object, bool visible, bool perm=false) |
| Sets an object's visibility. | |
| void | setEnabled (QObject *object, bool enabled, bool perm=false) |
| Sets whether an object (a widget or an action) is enabled. | |
| void | setViewEnabled (string view, bool enabled, bool perm=false) |
| Sets whether a view is enabled. | |
| void | setDataMenuOptionEnabled (string name, bool enabled, bool perm=false) |
| Sets whether an option in the data menu is enabled or disabled. These options are available when you right click on data in the data list. | |
| void | setOperatorVisible (string opStr, bool vis, bool perm=false) |
| Sets whether an operator is visible. | |
| void | setOperatorEnabled (string opStr, bool en, bool perm=false) |
| Sets whether an operator is enabled. | |
| void | reset () |
| Resets the non-permanent changes made by the visibility manager. | |
| void setDataMenuOptionEnabled | ( | string | name, |
| bool | enabled, | ||
| bool | perm = false ) |
Sets whether an option in the data menu is enabled or disabled. These options are available when you right click on data in the data list.
| name | The name of the option as it appears in the menu |
| enabled | Whether the option will be enabled or disabled |
| perm | (optional, default is false) Whether this change will persist after the script ends. |
| void setEnabled | ( | QObject * | object, |
| bool | enabled, | ||
| bool | perm = false ) |
Sets whether an object (a widget or an action) is enabled.
| object | The object. See VQ.getWidget() and VQ.getAction() for how to lookup a QObject by name |
| enabled | Whether the object will be enabled or disabled |
| perm | (optional, default is false) Whether this change will persist after the script ends. |
| void setOperatorEnabled | ( | string | opStr, |
| bool | en, | ||
| bool | perm = false ) |
Sets whether an operator is enabled.
| opStr | The name of the operator, either "Operator" or "View|Operator" (If View is not provided, the operator is assumed to be in the current view) |
| en | Whether the operator will be enabled |
| perm | (optional, default is false) Whether this change will persist after the script ends. |
| void setOperatorVisible | ( | string | opStr, |
| bool | vis, | ||
| bool | perm = false ) |
Sets whether an operator is visible.
| opStr | The name of the operator, either "Operator" or "View|Operator" (If View is not provided, the operator is assumed to be in the current view) |
| vis | Whether the operator will be visible |
| perm | (optional, default is false) Whether this change will persist after the script ends. |
| void setViewEnabled | ( | string | view, |
| bool | enabled, | ||
| bool | perm = false ) |
Sets whether a view is enabled.
| view | The name of the view |
| enabled | Whether the view will be enabled or disabled |
| perm | (optional, default is false) Whether this change will persist after the script ends. |
| void setVisible | ( | QObject * | object, |
| bool | visible, | ||
| bool | perm = false ) |
Sets an object's visibility.
| object | The object. See VQ.getWidget() and VQ.getAction() for how to lookup a QObject by name. |
| visible | The desired visibility of the object |
| perm | (optional, default is false) Whether this change will persist after the script ends. |