VivoQuant 6.5.0
Loading...
Searching...
No Matches
Node Class Referenceabstract

Description

Base class of all nodes.

Public Member Functions

virtual QWidget * widget ()=0
 The widget placed in the parent's grid, and the label beside it (null: no label cell).
int span ()
 Columns taken in the parent's grid.
virtual bool hasValue ()
 Fields and data containers have a value; layout containers don't.
void setValue (Variant &value)
 Sets the value; value must already be validated with validateValue().
virtual ContainerNode * asLayoutContainer ()
 A layout container, whose named descendants share this node's scope.
void setObjectNames (string prefix)
void finishSetup ()
 Applies tooltip and read-only from the spec; called once after construction.
virtual QJsonObject describe ()

Protected Member Functions

void applyReadOnly (bool readOnly)
 Updates widgets for the effective read-only state.
QObject * context ()
 Context object for signal connections: destroyed with the node, which disconnects them.

Member Function Documentation

◆ describe()

virtual QJsonObject describe ( )
virtual

The node's current state as JSON, for the TESTPANEL test log: type, name, effective read-only state, object name and tooltip, plus what the node type adds (label, value, editor settings, children). The parent adds the grid position.

Reimplemented in ContainerNode.

◆ setObjectNames()

void setObjectNames ( string prefix)
inline

Gives widgets object names <prefix><name>, recursively, so scripts can find them with VQ.getWidget().