/[LeafOK_CVS]/lbbs/include/menu.h
ViewVC logotype

Diff of /lbbs/include/menu.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.2 by sysadm, Sat Mar 19 08:23:17 2005 UTC Revision 1.3 by sysadm, Sat Mar 19 13:34:20 2005 UTC
# Line 18  Line 18 
18  #define MAX_MENUITEM_LENGTH             50  #define MAX_MENUITEM_LENGTH             50
19  #define MAX_MENUITEMS                   30  #define MAX_MENUITEMS                   30
20  #define MAX_MENUNAME_LENGTH             20  #define MAX_MENUNAME_LENGTH             20
21  #define MAX_MENUACTION_LENGTH   20  #define MAX_MENUACTION_LENGTH           20
22  #define MAX_MENUTITLE_LENGTH    50  #define MAX_MENUTITLE_LENGTH            50
23  #define MAX_MENUS                               256  #define MAX_MENUS                       256
24    #define MAX_MENU_DEPTH                  50
25    
26  struct _menu_item {  struct _menu_item {
27          int col, row;          int row, col, r_row, r_col;
28          char action[MAX_MENUACTION_LENGTH];          char action[MAX_MENUACTION_LENGTH];
29          int priv;          int submenu;
30            int priv, display;
31          char name[MAX_MENUNAME_LENGTH];          char name[MAX_MENUNAME_LENGTH];
32          char text[MAX_MENUITEM_LENGTH];          char text[MAX_MENUITEM_LENGTH];
33  };  };
34  typedef struct _menu_item MENU_ITEM;  typedef struct _menu_item MENU_ITEM;
35    
36  struct _menu_title {  struct _menu_title {
37          int col, row;          int row, col;
38          char text[MAX_MENUTITLE_LENGTH];          char text[MAX_MENUTITLE_LENGTH];
39  };  };
40  typedef struct _menu_title MENU_TITLE;  typedef struct _menu_title MENU_TITLE;
41    
42  struct _menu_screen {  struct _menu_screen {
43          int col, row;          int row, col;
44          char filename[256];          char filename[256];
45  };  };
46  typedef struct _menu_screen MENU_SCREEN;  typedef struct _menu_screen MENU_SCREEN;
# Line 47  struct _menu { Line 49  struct _menu {
49          char name[MAX_MENUNAME_LENGTH];          char name[MAX_MENUNAME_LENGTH];
50          MENU_TITLE title;          MENU_TITLE title;
51          MENU_SCREEN screen;          MENU_SCREEN screen;
52          MENU_ITEM items[MAX_MENUITEMS];          MENU_ITEM *items[MAX_MENUITEMS];
53          int item_count, item_cur_pos;          int item_count, item_cur_pos;
54  };  };
55  typedef struct _menu MENU;  typedef struct _menu MENU;
56    
57  struct _menu_set {  struct _menu_set {
58          MENU *p_menu[MAX_MENUS];          MENU *p_menu[MAX_MENUS];
59            MENU *p_menu_select[MAX_MENU_DEPTH];
60          int menu_count;          int menu_count;
61            int menu_select_depth;
62  };  };
63  typedef struct _menu_set MENU_SET;  typedef struct _menu_set MENU_SET;
64                    


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

webmaster@leafok.com
ViewVC Help
Powered by ViewVC 1.3.0-beta1