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

Annotation of /lbbs/include/menu.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (hide annotations)
Sat Mar 19 13:34:20 2005 UTC (21 years ago) by sysadm
Branch: MAIN
Changes since 1.2: +12 -8 lines
Content type: text/x-chdr
*** empty log message ***

1 sysadm 1.1 /***************************************************************************
2     menu.h - description
3     -------------------
4     begin : Wed Mar 16 2004
5     copyright : (C) 2005 by Leaflet
6     email : leaflet@leafok.com
7     ***************************************************************************/
8    
9     /***************************************************************************
10     * *
11     * This program is free software; you can redistribute it and/or modify *
12     * it under the terms of the GNU General Public License as published by *
13     * the Free Software Foundation; either version 2 of the License, or *
14     * (at your option) any later version. *
15     * *
16     ***************************************************************************/
17    
18 sysadm 1.2 #define MAX_MENUITEM_LENGTH 50
19     #define MAX_MENUITEMS 30
20     #define MAX_MENUNAME_LENGTH 20
21 sysadm 1.3 #define MAX_MENUACTION_LENGTH 20
22     #define MAX_MENUTITLE_LENGTH 50
23     #define MAX_MENUS 256
24     #define MAX_MENU_DEPTH 50
25 sysadm 1.1
26 sysadm 1.2 struct _menu_item {
27 sysadm 1.3 int row, col, r_row, r_col;
28 sysadm 1.2 char action[MAX_MENUACTION_LENGTH];
29 sysadm 1.3 int submenu;
30     int priv, display;
31 sysadm 1.2 char name[MAX_MENUNAME_LENGTH];
32 sysadm 1.1 char text[MAX_MENUITEM_LENGTH];
33     };
34 sysadm 1.2 typedef struct _menu_item MENU_ITEM;
35    
36     struct _menu_title {
37 sysadm 1.3 int row, col;
38 sysadm 1.2 char text[MAX_MENUTITLE_LENGTH];
39     };
40     typedef struct _menu_title MENU_TITLE;
41    
42     struct _menu_screen {
43 sysadm 1.3 int row, col;
44 sysadm 1.2 char filename[256];
45     };
46     typedef struct _menu_screen MENU_SCREEN;
47 sysadm 1.1
48     struct _menu {
49 sysadm 1.2 char name[MAX_MENUNAME_LENGTH];
50     MENU_TITLE title;
51     MENU_SCREEN screen;
52 sysadm 1.3 MENU_ITEM *items[MAX_MENUITEMS];
53 sysadm 1.1 int item_count, item_cur_pos;
54     };
55     typedef struct _menu MENU;
56    
57 sysadm 1.2 struct _menu_set {
58     MENU *p_menu[MAX_MENUS];
59 sysadm 1.3 MENU *p_menu_select[MAX_MENU_DEPTH];
60 sysadm 1.2 int menu_count;
61 sysadm 1.3 int menu_select_depth;
62 sysadm 1.2 };
63     typedef struct _menu_set MENU_SET;
64    
65     extern MENU_SET bbs_menu;

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