| 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 |
#define MAX_MENUITEM_LENGTH 50
|
| 19 |
#define MAX_MENUITEMS 30
|
| 20 |
|
| 21 |
struct _menuitem {
|
| 22 |
int col, row;
|
| 23 |
char key;
|
| 24 |
char text[MAX_MENUITEM_LENGTH];
|
| 25 |
};
|
| 26 |
typedef struct _menuitem MENUITEM;
|
| 27 |
|
| 28 |
struct _menu {
|
| 29 |
MENUITEM items[MAX_MENUITEMS];
|
| 30 |
int item_count, item_cur_pos;
|
| 31 |
};
|
| 32 |
typedef struct _menu MENU;
|
| 33 |
|
| 34 |
extern MENU bbs_main_menu;
|