MeVisLab Scripting Reference
MLABFieldListener Class Reference

Inherits QObject.

Public Slots

Scripting access


bool addField (MLABField *f)
 
bool removeField (MLABField *f)
 
QObjectList listenFields ()
 
QString command ()
 

Detailed Description

A listener calling a script when the field changes.

Member Function Documentation

◆ addField

bool MLABFieldListener::addField ( MLABField f)
slot

Adds a field to listen to, returns false if the field is already listened to by this listener.

◆ command

QString MLABFieldListener::command ( )
slot

Returns the name of the attached command (or the inline command string).

◆ listenFields

QObjectList MLABFieldListener::listenFields ( )
slot

Returns the list of fields that this listener is listening to.

◆ removeField

bool MLABFieldListener::removeField ( MLABField f)
slot

Remove the given field from the list of fields to listen to.