PeterBLITZ / m2tklib

Automatically exported from code.google.com/p/m2tklib
0 stars 0 forks source link

add change-root callback procedure #76

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
allow callback procedure which gets called for any root change: cb(old menu, 
new menu)

Original issue reported on code.google.com by olikr...@gmail.com on 30 Jul 2012 at 6:58

GoogleCodeExporter commented 8 years ago
one use case is to add a status line at the top of the display, which the 
current menu title. 

Original comment by olikr...@gmail.com on 1 Aug 2012 at 10:14

GoogleCodeExporter commented 8 years ago

replace
void m2_SetRootWithNextCnt(m2_rom_void_p element, uint8_t next_cnt)
with
void m2_SetRootExtended(m2_rom_void_p element, uint8_t next_cnt, uint8_t 
change_value)

add option 'v' to M2_ROOT, with 'v' defines the change value

new procedure
m2_SetRootChangeCallback(root_cb)
with
void root_cb(m2_rom_void_p old, m2_rom_void_p new, uint8_t change_value)
{
}

Original comment by olikr...@gmail.com on 7 Aug 2012 at 6:57

GoogleCodeExporter commented 8 years ago
todo:
- setcallback procedure
- test

Original comment by olikr...@gmail.com on 7 Aug 2012 at 10:15

GoogleCodeExporter commented 8 years ago

Original comment by olikr...@gmail.com on 7 Aug 2012 at 10:16

GoogleCodeExporter commented 8 years ago
documentation for M2_ROOT 'v' option
added SetRootChangeCallback procedure

todo:
- set...callback documentation
- test

Original comment by olikr...@gmail.com on 8 Aug 2012 at 5:28

GoogleCodeExporter commented 8 years ago
documentation almost done
- refer to bookmark example

Original comment by olikr...@gmail.com on 13 Aug 2012 at 5:24

GoogleCodeExporter commented 8 years ago
Bookmarks example ported to LiquidCrystal and glcd
testing required for both

Original comment by olikr...@gmail.com on 6 Oct 2012 at 11:56

GoogleCodeExporter commented 8 years ago
Bookmark example updated and tested for LiquidCrystal

Original comment by olikr...@gmail.com on 16 Oct 2012 at 8:22

GoogleCodeExporter commented 8 years ago
todo
  test Bookmark with GLCD

Original comment by olikr...@gmail.com on 16 Oct 2012 at 8:25

GoogleCodeExporter commented 8 years ago
GLCD also ok

Original comment by olikr...@gmail.com on 16 Oct 2012 at 8:58