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

extern RCST Betty_Mainmenu;
extern RCST Betty_Tastentest;
extern RCST Betty_Lichtein;
extern RCST Betty_Lichtaus;
extern RCST Betty_ADCsee;
extern RCST Betty_Appfinder;
extern RCST Betty_Batterie;
extern RCST Betty_Uhrzeit;

extern void Betty_Tastentest_OnKey (RCST *self, word *aKey);
extern void Betty_Lichtein_OnKey (RCST *self, word *aKey);
extern void Betty_Lichtaus_OnKey (RCST *self, word *aKey);
extern void Betty_ADCsee_OnKey (RCST *self, word *aKey);
extern void Betty_Appfinder_OnKey (RCST *self, word *aKey);
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);

RCST* Betty_Mainmenu_focussed;

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

const char Betty_Tastentest_static[] = "Tastentest";

RCST Betty_Tastentest =
{ /* l-t-r-b */ { 20, 20, 100, 40},
  /* davor  */  0,
  /* danach */  &Betty_Lichtein,
  /* Owner  */  &Betty_Mainmenu,
  /* Members*/  0,
  /* Flags  */  canFocus | center,
  /* *Data  */  (void*) &Betty_Tastentest_static,
  /* OnKey  */  Betty_Tastentest_OnKey,
  /* OnEvent*/  0,
  /* Draw   */  ButtonDrawProc
};

const char Betty_Lichtein_static[] = "Licht ein";

RCST Betty_Lichtein =
{ /* l-t-r-b */ { 20, 42, 100, 62},
  /* davor  */  &Betty_Tastentest,
  /* danach */  &Betty_Lichtaus,
  /* Owner  */  &Betty_Mainmenu,
  /* Members*/  0,
  /* Flags  */  canFocus | center,
  /* *Data  */  (void*) &Betty_Lichtein_static,
  /* OnKey  */  Betty_Lichtein_OnKey,
  /* OnEvent*/  0,
  /* Draw   */  ButtonDrawProc
};

const char Betty_Lichtaus_static[] = "Licht aus";

RCST Betty_Lichtaus =
{ /* l-t-r-b */ { 20, 64, 100, 84},
  /* davor  */  &Betty_Lichtein,
  /* danach */  &Betty_ADCsee,
  /* Owner  */  &Betty_Mainmenu,
  /* Members*/  0,
  /* Flags  */  canFocus | center,
  /* *Data  */  (void*) &Betty_Lichtaus_static,
  /* OnKey  */  Betty_Lichtaus_OnKey,
  /* OnEvent*/  0,
  /* Draw   */  ButtonDrawProc
};

const char Betty_ADCsee_static[] = "ADC Moni";

RCST Betty_ADCsee =
{ /* l-t-r-b */ { 20, 86, 100, 106},
  /* davor  */  &Betty_Lichtaus,
  /* danach */  &Betty_Appfinder,
  /* Owner  */  &Betty_Mainmenu,
  /* Members*/  0,
  /* Flags  */  canFocus | center,
  /* *Data  */  (void*) &Betty_ADCsee_static,
  /* OnKey  */  Betty_ADCsee_OnKey,
  /* OnEvent*/  0,
  /* Draw   */  ButtonDrawProc
};

const char Betty_Appfinder_static[] = "App Finder";

RCST Betty_Appfinder =
{ /* l-t-r-b */ { 20, 108, 100, 128},
  /* davor  */  &Betty_ADCsee,
  /* danach */  &Betty_Batterie,
  /* Owner  */  &Betty_Mainmenu,
  /* Members*/  0,
  /* Flags  */  canFocus | center,
  /* *Data  */  (void*) &Betty_Appfinder_static,
  /* OnKey  */  Betty_Appfinder_OnKey,
  /* OnEvent*/  0,
  /* Draw   */  ButtonDrawProc
};


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


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

