diff options
author | Pixel <pixel@nobis-crew.org> | 2009-12-20 16:51:53 +0100 |
---|---|---|
committer | Pixel <pixel@nobis-crew.org> | 2009-12-20 16:51:53 +0100 |
commit | f2d8c3a51f11bd63547d0b6de9c16f297a17001f (patch) | |
tree | 82631fbbcc6ebfd948aa30d0799b7eacd6e311d6 | |
parent | 0a82bfbeffd17236ce8a63251a95f05effd9ec91 (diff) |
Adding load and save stubs.
-rw-r--r-- | dalos.lua | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -423,6 +423,12 @@ dalosp.canvas = { } dalosp.menu = { + action_load = function (self) + end, + + action_save = function(self) + end, + action_exit = function (self) return iup.CLOSE end, @@ -465,6 +471,10 @@ dalosp.menu = { end, create = function (canvas, tab) + local item_load = iup.item { title = "Load" } + item_load.action = dalosp.menu.action_load + local item_save = iup.item { title = "Save" } + item_save.action = dalosp.menu.action_save local item_exit = iup.item { title = "Exit" } item_exit.action = dalosp.menu.action_exit local item_about = iup.item { title = "About" } @@ -494,7 +504,7 @@ dalosp.menu = { table.insert(south_menu, item) end end - local menu_file = iup.submenu { iup.menu { item_exit }, title = "File" } + local menu_file = iup.submenu { iup.menu { item_load, item_save, iup.separator {}, item_exit }, title = "File" } local menu_add = iup.submenu { iup.menu(add_menu), title = "Add" } local menu_cross = iup.submenu { iup.menu { iup.submenu { iup.menu(north_menu), title = "North" }, |