/* Menü aus "E:\KEIL_ARM_Projekte\MyBetty\Appfinder.txt" */

extern RCST Appfinder_Mainmenu;
extern RCST Appfinder_Batterie;
extern RCST Appfinder_Uhrzeit;
extern RCST Appfinder_Liste;
extern RCST Appfinder_exit;

extern void Betty_Batterie_OnEvent (RCST *self, word *aEvent);
extern void Betty_Batterie_Draw (RCST* self);
extern void Betty_Uhrzeit_OnEvent (RCST *self, word *aEvent);
extern void Betty_Uhrzeit_Draw (RCST* self);
extern void Appfinder_Liste_OnKey (RCST *self, word *aKey);
extern void Appfinder_Liste_OnEvent (RCST *self, word *aEvent);
extern void Appfinder_Liste_Draw (RCST* self);
extern void Appfinder_exit_OnKey (RCST *self, word *aKey);

RCST* Appfinder_Mainmenu_focussed;

RCST Appfinder_Mainmenu =
{ /* l-t-r-b */ { 0, 0, 127, 159},
  /* davor  */  0,
  /* danach */  0,
  /* Owner  */  0,
  /* Members*/  &Appfinder_Batterie,
  /* Flags  */  opaque,
  /* *Data  */  (void*) &Appfinder_Mainmenu_focussed,
  /* OnKey  */  PanelKeyHandler,
  /* OnEvent*/  PanelEventHandler,
  /* Draw   */  PanelDrawProc
};


RCST Appfinder_Batterie =
{ /* l-t-r-b */ { 1, 1, 31, 14},
  /* davor  */  0,
  /* danach */  &Appfinder_Uhrzeit,
  /* Owner  */  &Appfinder_Mainmenu,
  /* Members*/  0,
  /* Flags  */  0,
  /* *Data  */  0,
  /* OnKey  */  0,
  /* OnEvent*/  Betty_Batterie_OnEvent,
  /* Draw   */  Betty_Batterie_Draw
};


RCST Appfinder_Uhrzeit =
{ /* l-t-r-b */ { 33, 0, 100, 15},
  /* davor  */  &Appfinder_Batterie,
  /* danach */  &Appfinder_Liste,
  /* Owner  */  &Appfinder_Mainmenu,
  /* Members*/  0,
  /* Flags  */  0,
  /* *Data  */  0,
  /* OnKey  */  0,
  /* OnEvent*/  Betty_Uhrzeit_OnEvent,
  /* Draw   */  Betty_Uhrzeit_Draw
};


RCST Appfinder_Liste =
{ /* l-t-r-b */ { 0, 20, 127, 159},
  /* davor  */  &Appfinder_Uhrzeit,
  /* danach */  &Appfinder_exit,
  /* Owner  */  &Appfinder_Mainmenu,
  /* Members*/  0,
  /* Flags  */  opaque | canFocus,
  /* *Data  */  0,
  /* OnKey  */  Appfinder_Liste_OnKey,
  /* OnEvent*/  Appfinder_Liste_OnEvent,
  /* Draw   */  Appfinder_Liste_Draw
};

const char Appfinder_exit_static[] = "esc";

RCST Appfinder_exit =
{ /* l-t-r-b */ { 98, 0, 127, 18},
  /* davor  */  &Appfinder_Liste,
  /* danach */  0,
  /* Owner  */  &Appfinder_Mainmenu,
  /* Members*/  0,
  /* Flags  */  canFocus | center,
  /* *Data  */  (void*) &Appfinder_exit_static,
  /* OnKey  */  Appfinder_exit_OnKey,
  /* OnEvent*/  0,
  /* Draw   */  ButtonDrawProc
};

