Manage hiding and disabling of widgets, actions, operators, and views that are in the VivoQuant UI.
More...
#include <VisibilityManager.h>
|
| 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 visible.
|
| |
|
void | reset () |
| | Resets the non-permanent changes made by the visibility manager.
|
| |
Manage hiding and disabling of widgets, actions, operators, and views that are in the VivoQuant UI.
◆ setDataMenuOptionEnabled()
| 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.
- Parameters
-
| 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. |
◆ setEnabled()
| void setEnabled |
( |
QObject * |
object, |
|
|
bool |
enabled, |
|
|
bool |
perm = false |
|
) |
| |
Sets whether an object (a widget or an action) is enabled.
- Parameters
-
| widget | The object. See ScriptMaster::getWidget and ScriptMaster::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. |
◆ setOperatorEnabled()
| void setOperatorEnabled |
( |
string |
opStr, |
|
|
bool |
en, |
|
|
bool |
perm = false |
|
) |
| |
Sets whether an operator is visible.
- Parameters
-
| name | 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. |
◆ setOperatorVisible()
| void setOperatorVisible |
( |
string |
opStr, |
|
|
bool |
vis, |
|
|
bool |
perm = false |
|
) |
| |
Sets whether an operator is visible.
- Parameters
-
| name | 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. |
◆ setViewEnabled()
| void setViewEnabled |
( |
string |
view, |
|
|
bool |
enabled, |
|
|
bool |
perm = false |
|
) |
| |
Sets whether a view is enabled.
- Parameters
-
| 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. |
◆ setVisible()
| void setVisible |
( |
QObject * |
object, |
|
|
bool |
visible, |
|
|
bool |
perm = false |
|
) |
| |
Sets an object's visibility.
- Parameters
-
| obj | The object. See ScriptMaster::getWidget and ScriptMaster::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. |