print, about/splashscreen, load/save;
plugins:
* questionnaire
* automation
* validity check (diff to reference file)
file format:
image chunk (jpg/png )
data chunk (point name, pos)
optional: data chunk for each plugin
-> change to plugin: load/save methods with access to file
api: readChunk(name) / writeChunk(name):
chunk {
identifier: name;
data: ……
}
chunk names have to be unique (= writeChunk returns false, if the chunk name has already been used)
-> writeChunk(name) changes name to pluginname+name, rendering the name unique as long as it’s unique within the plugin.
printing :
QGraphicsScene scene;
scene.addItem(…
…
QPrinter printer(QPrinter::HighResolution);
printer.setPageSize(QPrinter::A4);QPainter painter(&printer);
scene.render(&painter);