| 15 |
* * |
* * |
| 16 |
***************************************************************************/ |
***************************************************************************/ |
| 17 |
|
|
| 18 |
|
#ifndef _MENU_H_ |
| 19 |
|
#define _MENU_H_ |
| 20 |
|
|
| 21 |
#define MAX_MENUITEM_LENGTH 50 |
#define MAX_MENUITEM_LENGTH 50 |
| 22 |
#define MAX_MENUITEMS 30 |
#define MAX_MENUITEMS 30 |
| 23 |
#define MAX_MENUNAME_LENGTH 20 |
#define MAX_MENUNAME_LENGTH 256 |
| 24 |
#define MAX_MENUACTION_LENGTH 20 |
#define MAX_MENUACTION_LENGTH 20 |
| 25 |
#define MAX_MENUTITLE_LENGTH 50 |
#define MAX_MENUTITLE_LENGTH 50 |
| 26 |
#define MAX_MENUS 256 |
#define MAX_MENUS 256 |
| 39 |
|
|
| 40 |
struct _menu_title |
struct _menu_title |
| 41 |
{ |
{ |
| 42 |
int row, col; |
int row, col, show; |
| 43 |
char text[MAX_MENUTITLE_LENGTH]; |
char text[MAX_MENUTITLE_LENGTH]; |
| 44 |
}; |
}; |
| 45 |
typedef struct _menu_title MENU_TITLE; |
typedef struct _menu_title MENU_TITLE; |
| 46 |
|
|
| 47 |
struct _menu_screen |
struct _menu_screen |
| 48 |
{ |
{ |
| 49 |
int row, col; |
int row, col, show; |
| 50 |
char filename[256]; |
char filename[256]; |
| 51 |
}; |
}; |
| 52 |
typedef struct _menu_screen MENU_SCREEN; |
typedef struct _menu_screen MENU_SCREEN; |
| 72 |
|
|
| 73 |
extern MENU_SET bbs_menu; |
extern MENU_SET bbs_menu; |
| 74 |
|
|
| 75 |
const char *menu_control (MENU_SET * p_menu_set, int key); |
extern int menu_control (MENU_SET * p_menu_set, int key); |
| 76 |
|
|
| 77 |
|
extern int display_menu (MENU * p_menu); |
| 78 |
|
|
| 79 |
int display_menu (MENU * p_menu); |
extern MENU *get_menu (MENU_SET * p_menu_set, const char *menu_name); |
| 80 |
|
|
| 81 |
MENU *get_menu (MENU_SET * p_menu_set, const char *menu_name); |
#endif //_MENU_H_ |