on 1.x, I see this code on ModuleWidget.hpp:
/** Overriding these is deprecated. Use Module::dataToJson() and dataFromJson() instead */ virtual json_t* toJson(); virtual void fromJson(json_t* rootJ);
Even if they still work, I suppose they will be removed at some time.
How would you serialize/deserialize so “data” that is regarding the “GUI” part? For example, I use to serialize/deserialize “drag amounts” on the gui part, and once I init plug (with resetAction()) also init the zoom settings.
Now, do I really need to move all the “gui” settings on the module itself? Wasn’t good that separation?
Or is there any way to access to ModuleWidget from Module?