Developer Documentation
|
OpenFlipper provides a set of datatypes (Integrated data types ). While the load and save functions automatically generate objects for the loaded data, it is also useful to generate objects of a specific datatype and fill them with custom data. This page describes how a plugin can create a new object.
Your plugin has to implement a part of the Load/Save Interface. So you have to derive from that interface and add the LoadSaveInterface::addEmptyObject signal to your plugin:
To generate the object you can implement the following in one of your functions:
Of course you have to add the includes for the ObjectTypes you want to use to your list of includes. A list of available ObjectTypes can be found here: OpenFlipper Datatypes