diff options
author | Hanspeter Portner <dev@open-music-kontrollers.ch> | 2018-06-03 15:38:43 +0200 |
---|---|---|
committer | Hanspeter Portner <dev@open-music-kontrollers.ch> | 2018-06-03 15:38:43 +0200 |
commit | 05b10165702a7e87ecf71cc1838829402b9d798c (patch) | |
tree | bbcd6332649f993102db65bdf0c281618261169e /include | |
parent | cb2836a5d2b26c1ac4fd11587501152aebbd9c7a (diff) | |
download | synthpod-05b10165702a7e87ecf71cc1838829402b9d798c.tar.xz |
implement save/restore of graph position.
Diffstat (limited to 'include')
-rw-r--r-- | include/synthpod_private.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/synthpod_private.h b/include/synthpod_private.h index d7a432f1..af4fb8f1 100644 --- a/include/synthpod_private.h +++ b/include/synthpod_private.h @@ -359,6 +359,8 @@ struct _reg_t { reg_item_t module_reinstantiate; reg_item_t node_position_x; reg_item_t node_position_y; + reg_item_t graph_position_x; + reg_item_t graph_position_y; reg_item_t port_refresh; reg_item_t bundle_load; reg_item_t bundle_save; @@ -647,6 +649,8 @@ sp_regs_init(reg_t *regs, LilvWorld *world, LV2_URID_Map *map) _register(®s->synthpod.module_reinstantiate, world, map, SYNTHPOD_PREFIX"moduleReinstantiate"); _register(®s->synthpod.node_position_x, world, map, SYNTHPOD_PREFIX"nodePositionX"); _register(®s->synthpod.node_position_y, world, map, SYNTHPOD_PREFIX"nodePositionY"); + _register(®s->synthpod.graph_position_x, world, map, SYNTHPOD_PREFIX"graphPositionX"); + _register(®s->synthpod.graph_position_y, world, map, SYNTHPOD_PREFIX"graphPositionY"); _register(®s->synthpod.port_refresh, world, map, SYNTHPOD_PREFIX"portRefresh"); _register(®s->synthpod.bundle_load, world, map, SYNTHPOD_PREFIX"bundleLoad"); _register(®s->synthpod.bundle_save, world, map, SYNTHPOD_PREFIX"bundleSave"); @@ -900,6 +904,8 @@ sp_regs_deinit(reg_t *regs) _unregister(®s->synthpod.module_reinstantiate); _unregister(®s->synthpod.node_position_x); _unregister(®s->synthpod.node_position_y); + _unregister(®s->synthpod.graph_position_x); + _unregister(®s->synthpod.graph_position_y); _unregister(®s->synthpod.port_refresh); _unregister(®s->synthpod.bundle_load); _unregister(®s->synthpod.bundle_save); |