13#ifndef ML_EDIT_OBJECT_H
14#define ML_EDIT_OBJECT_H
96 static const char* AutoUpdateModeNames[];
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
@ AutoUpdateModeDoNothing
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
Engine(int numInputImages=0, int numOutputImages=0)
Constructor.
#define ML_MODULE_CLASS_HEADER(className)