menubar.h

Go to the documentation of this file.
00001 
00013 /*#*
00014  *#* $Log: menubar.h,v $
00015  *#* Revision 1.17  2006/06/16 16:18:49  batt
00016  *#* Fix doxygen docs.
00017  *#*
00018  *#* Revision 1.16  2005/11/16 18:10:19  bernie
00019  *#* Move top-level headers to cfg/ as in DevLib.
00020  *#*
00021  *#* Revision 1.15  2005/02/17 03:49:21  bernie
00022  *#* Update to new PGM api.
00023  *#*
00024  *#* Revision 1.14  2004/10/31 11:02:15  aleph
00025  *#* Rename functions with correct codying conventions; Simplify version display
00026  *#*
00027  *#* Revision 1.13  2004/09/27 12:05:46  powersoft
00028  *#* Use sel label for toggle menus and remove it
00029  *#*
00030  *#* Revision 1.12  2004/09/27 10:05:33  powersoft
00031  *#* Menu cosmetic fixes
00032  *#*/
00033 #ifndef MWARE_MENUBAR_H
00034 #define MWARE_MENUBAR_H
00035 
00036 #include <appconfig.h>
00037 #include <cfg/compiler.h>
00038 #include <brand.h>
00039 
00041 enum LabelId
00042 {
00043     LABEL_EMPTY,  /* empty label */
00044     LABEL_MUTE,
00045     LABEL_MENU,
00046     LABEL_BACK,
00047     LABEL_OK,
00048     LABEL_CH_1,
00049     LABEL_CH_2,
00050     LABEL_C1PLUS2,
00051     LABEL_UPARROW,
00052     LABEL_DOWNARROW,
00053     LABEL_MINUS,
00054     LABEL_PLUS,
00055     LABEL_SEL,
00056     #if OEM_BRAND == OEM_CLAIRBROS
00057     LABEL_GAIN,
00058     #else
00059     LABEL_LOCK,
00060     #endif
00061     LABEL_UNLOCK,
00062     LABEL_MORE,
00063     LABEL_EDIT,
00064     LABEL_FAST,
00065     LABEL_PREV,
00066     LABEL_NEXT,
00067     LABEL_SLOW,
00068     LABEL_YES,
00069     LABEL_NO,
00070 
00071 
00072     LABEL_CNT
00073 };
00074 
00075 #define UP_ARROW "\x18"
00076 #define DOWN_ARROW  "\x19"
00077 #define RIGHT_ARROW "\xC4\x1A"
00078 #define LEFT_ARROW  "\x10\xC4"
00079 
00080 /* Forward decl */
00081 struct Bitmap;
00082 
00083 typedef struct MenuBar
00084 {
00085     struct Bitmap *bitmap;
00086     const_iptr_t  *labels;
00087     int            num_labels;
00088 } MenuBar;
00089 
00090 void mbar_init(
00091         struct MenuBar *mb,
00092         struct Bitmap *bmp,
00093         const_iptr_t *labels,
00094         int num_labels);
00095 void mbar_draw(const struct MenuBar *mb);
00096 
00097 #endif /* MWARE_MENUBAR_H */