PeterBLITZ / m2tklib

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

quick key #114

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
1) define new format option "q": Element does not have a quick key with "q0" 
(default). An element can have q1 to q8.
2) Only one quick key per dialog allowed
3) Pin can be assigned to M2_KEY_Q1 ..  M2_KEY_Q8
4) Algorithm: Event M2_KEY_Qx is pressed
Search for an element with has "qx" as format option. Send select msg to this 
element.

Original issue reported on code.google.com by olikr...@gmail.com on 2 Jul 2013 at 8:50

GoogleCodeExporter commented 8 years ago
uint8_t m2_el_fmfmt_opt_get_val_any_by_element(m2_rom_void_p element, uint8_t 
c, uint8_t default_value); /* m2elfnfmt.c */

void m2_nav_dfs(m2_nav_p nav, m2_dfs_fnptr cb)

m2_rom_void_p m2_quick_key_result_element = NULL;
uint8_t m2_quick_key_search_value;

/* callback procedure for the DFS algorithm */
uint8_t m2_find_quick_key(m2_nav_p nav)
{
  uint8_t element_quick_key = m2_el_fmfmt_opt_get_val_any_by_element(m2_nav_get_current_element(nav), 'q', 0);
  if ( element_quick_key == m2_quick_key_search_value )
  {
     m2_quick_key_result_element = m2_nav_get_current_element(nav);
  }

  return 1;
}

Original comment by olikr...@gmail.com on 2 Jul 2013 at 9:12

GoogleCodeExporter commented 8 years ago
key defs added

Original comment by olikr...@gmail.com on 2 Jul 2013 at 9:12

GoogleCodeExporter commented 8 years ago
implement "M2_QUICKKEY_BUTTON" and "M2_QUICKKEY_ROOT" 

Original comment by olikr...@gmail.com on 3 Jul 2013 at 5:20

GoogleCodeExporter commented 8 years ago

Original comment by olikr...@gmail.com on 3 Jul 2013 at 7:29

GoogleCodeExporter commented 8 years ago
implemented
todo:
documentation

Original comment by olikr...@gmail.com on 3 Jul 2013 at 10:22

GoogleCodeExporter commented 8 years ago
todo
check QuickKey with nlc and u8glib
add QuickKey example to release creation script

Original comment by olikr...@gmail.com on 4 Jul 2013 at 8:35

GoogleCodeExporter commented 8 years ago
see issue 120
extend to 6 quick keys

Original comment by olikr...@gmail.com on 18 Oct 2013 at 6:10

GoogleCodeExporter commented 8 years ago
--> expanded to 6 quick keys
todo
check QuickKey with nlc and u8glib
add QuickKey example to release creation script

Original comment by olikr...@gmail.com on 31 Oct 2013 at 4:53

GoogleCodeExporter commented 8 years ago
Expand quick keys to 6 is done

todo
check QuickKey with nlc and u8glib
add QuickKey example to release creation script

Original comment by olikr...@gmail.com on 2 Nov 2013 at 6:11

GoogleCodeExporter commented 8 years ago
example now ok for u8glib

todo
- create GLCD example
- check lc and nlc examples

Original comment by olikr...@gmail.com on 3 Nov 2013 at 6:46

GoogleCodeExporter commented 8 years ago
Added QuickKey example for GLCD 
Updated create release script 

todo
- check lc and nlc examples

Original comment by olikr...@gmail.com on 3 Nov 2013 at 7:16

GoogleCodeExporter commented 8 years ago
examples ok, 
create_release scripts are updated

Original comment by olikr...@gmail.com on 4 Nov 2013 at 5:32