: a wrapper around a QAction used for proxy creation. More...
#include <pqProxyAction.h>
Inherits QObject.
Public Member Functions | |
pqProxyAction (QObject *parent, QAction *action) | |
~pqProxyAction () override | |
QAction * | GetAction () |
Returns the underlying QAction. More... | |
bool | IsEnabled () |
Returns true if the action is enabled. More... | |
QString | GetDisplayName () |
Returns the display name, i.e. More... | |
QIcon | GetIcon () |
Returns the icon for this action. More... | |
QString | GetRequirement () |
Returns the first unmet requirement (if any). More... | |
QString | GetProxyName () |
Returns the SMProxy Name. More... | |
QString | GetProxyGroup () |
Returns the SMProxy Group. More... | |
QString | GetDocumentation () |
Returns the short documentation for the SMProxy. More... | |
Static Public Member Functions | |
static QString | GetProxyDocumentation (QAction *) |
Returns the proxy documentation for the given action, if any. More... | |
static vtkSMProxy * | GetProxyPrototype (QAction *) |
Returns the proxy prototype for the given action, if any. More... | |
static QString | GetProxyName (QAction *) |
Returns the proxy name for the given action, if any. More... | |
static QString | GetProxyGroup (QAction *) |
Returns the proxy group for the given action, if any. More... | |
static void | updateActionsState (QList< QAction *> actions) |
Update the state of the given actions. More... | |
: a wrapper around a QAction used for proxy creation.
: pqProxyAction can retrieve SMProxy information from the QAction UserData, and also update the QAction status tip depending on the active output ports.
An action for a proxy is expected to store {proxyGroup, proxyName} under QAction::data()
Definition at line 26 of file pqProxyAction.h.
pqProxyAction::pqProxyAction | ( | QObject * | parent, |
QAction * | action | ||
) |
|
override |
QAction* pqProxyAction::GetAction | ( | ) |
Returns the underlying QAction.
bool pqProxyAction::IsEnabled | ( | ) |
Returns true if the action is enabled.
QString pqProxyAction::GetDisplayName | ( | ) |
Returns the display name, i.e.
the text of the QAction.
QIcon pqProxyAction::GetIcon | ( | ) |
Returns the icon for this action.
QString pqProxyAction::GetRequirement | ( | ) |
Returns the first unmet requirement (if any).
Also update the QAction status.
QString pqProxyAction::GetProxyName | ( | ) |
Returns the SMProxy Name.
QString pqProxyAction::GetProxyGroup | ( | ) |
Returns the SMProxy Group.
QString pqProxyAction::GetDocumentation | ( | ) |
Returns the short documentation for the SMProxy.
|
static |
Returns the proxy documentation for the given action, if any.
|
static |
Returns the proxy prototype for the given action, if any.
|
static |
Returns the proxy name for the given action, if any.
|
static |
Returns the proxy group for the given action, if any.
|
static |
Update the state of the given actions.
This includes: enabled state and status tip (with unmet requirement).