aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorHanspeter Portner <dev@open-music-kontrollers.ch>2018-06-03 15:38:43 +0200
committerHanspeter Portner <dev@open-music-kontrollers.ch>2018-06-03 15:38:43 +0200
commit05b10165702a7e87ecf71cc1838829402b9d798c (patch)
treebbcd6332649f993102db65bdf0c281618261169e /include
parentcb2836a5d2b26c1ac4fd11587501152aebbd9c7a (diff)
downloadsynthpod-05b10165702a7e87ecf71cc1838829402b9d798c.tar.xz
implement save/restore of graph position.
Diffstat (limited to 'include')
-rw-r--r--include/synthpod_private.h6
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(&regs->synthpod.module_reinstantiate, world, map, SYNTHPOD_PREFIX"moduleReinstantiate");
_register(&regs->synthpod.node_position_x, world, map, SYNTHPOD_PREFIX"nodePositionX");
_register(&regs->synthpod.node_position_y, world, map, SYNTHPOD_PREFIX"nodePositionY");
+ _register(&regs->synthpod.graph_position_x, world, map, SYNTHPOD_PREFIX"graphPositionX");
+ _register(&regs->synthpod.graph_position_y, world, map, SYNTHPOD_PREFIX"graphPositionY");
_register(&regs->synthpod.port_refresh, world, map, SYNTHPOD_PREFIX"portRefresh");
_register(&regs->synthpod.bundle_load, world, map, SYNTHPOD_PREFIX"bundleLoad");
_register(&regs->synthpod.bundle_save, world, map, SYNTHPOD_PREFIX"bundleSave");
@@ -900,6 +904,8 @@ sp_regs_deinit(reg_t *regs)
_unregister(&regs->synthpod.module_reinstantiate);
_unregister(&regs->synthpod.node_position_x);
_unregister(&regs->synthpod.node_position_y);
+ _unregister(&regs->synthpod.graph_position_x);
+ _unregister(&regs->synthpod.graph_position_y);
_unregister(&regs->synthpod.port_refresh);
_unregister(&regs->synthpod.bundle_load);
_unregister(&regs->synthpod.bundle_save);