13#ifndef ML_EDIT_OBJECT_H
14#define ML_EDIT_OBJECT_H
35 AutoUpdateModeDoNothing = 0,
96 static const char* AutoUpdateModeNames[];
Field to encapsulate a pointer to an ML base object.
Class representing general ML objects that support import/export via strings (setPersistentState() an...
Field to encapsulate a boolean value.
allows to edit an ml::base-derived object via its XML description.
Base * _outputObject
object behind _fldBaseOutput
void handleNotification(Field *field) override
Handle field notifications.
StringField * _fldStatus
oper status
Base * _inputObject
object behind _fldBaseInput
BaseField * _fldBaseInput
Input connection.
BoolField * _fldAutoLoad
Auto-load input object on notify.
virtual int updateObject(void)
creates a new output object from the editor
virtual void deleteObject(void)
deletes the current output object
BaseField * _fldBaseOutput
Output connection.
NotifyField * _fldDeleteButton
Delete output object.
StringField * _fldObjectString
String representation of object, and thus current editor state.
NotifyField * _fldLoadButton
Load input object to editor.
~EditObject() override
destructor:
NotifyField * _fldUpdateButton
Update output object.
std::string _objectString
current editor string
EnumField * _fldAutoUpdateMode
Auto-update mode. Use anything other than Auto-Delete with care.
@ AutoUpdateModeAutoClear
@ AutoUpdateModeAutoUpdate
virtual int loadObject(void)
loads the input object into editor
BoolField * _fldUpToDate
Indicates whether the current output is consistent with the editor representation.
void activateAttachments() override
resets fldUpToDate, calls handleNotification once after the module is loaded on the network and all f...
Base class for all ML Engines which are derived from Module, which have no inputs or outputs and whic...
Field to encapsulate an enumerated value.
Base class for all fields used in the ML.
Field without value for notifications.
Field to encapsulate a string value.
#define ML_MODULE_CLASS_HEADER(className)
Like ML_CLASS_HEADER for the usage of derived classes from Module.
#define PARSER_EXPORT
Definiert systemspezifische Macros, die f"ur diese DLL gelten sollen.
Target mlrange_cast(Source arg)
Generic version of checked ML casts.