Definition at line 11 of file UIMenu.h.
Public Types | |
| enum | MenuStatus { START = 1, STOP = 0, NOSTAT = -1 } |
| enumeration for the menuStatus More... | |
Public Member Functions | |
| Menu () | |
| Constructor for a menu intializes the menuSize to zero. | |
| ~Menu () | |
| Destructor for a menu. | |
| void | setMenuTitle (char *title) |
| sets up the menuTitle | |
| int | setMenuList (char *list[], MenuStatus stat[], int size) |
| sets up the remaining values of the menu | |
| void | printMenu (WINDOW *menuWin) |
| prints out the menu format: title: entry 1 status entry 2 status entry 3 status ... | |
| MenuStatus | getMenuStatus (int itemNumber) |
| gives the menuStatus of the cooresponding menu item | |
| int | setMenuStatus (int itemNumber, MenuStatus stat) |
| sets the menuStatus of the cooresponding menu item | |
| void | setMenuName (char *name) |
| sets up the name for the menu | |
| char * | getMenuName () |
| returns the menu name | |
| int | getMenuSize () |
| returns the menu size this is important to find out how to position it on the screen | |
Private Attributes | |
| char * | menuName |
| the menu name | |
| char * | menuTitle |
| the menu title | |
| char * | menuList [9] |
| the complete Menu list maxlength 10 | |
| MenuStatus | status [9] |
| the complete list of the status of each menu item | |
| int | menuSize |
| size of the menu | |
|
|
enumeration for the menuStatus
|
|
|
returns the menu name
|
|
|
returns the menu size this is important to find out how to position it on the screen
|
|
|
gives the menuStatus of the cooresponding menu item
|
|
|
prints out the menu format: title: entry 1 status entry 2 status entry 3 status ... just tell it which window to write it to
|
|
||||||||||||||||
|
sets up the remaining values of the menu
|
|
|
sets up the name for the menu
|
|
||||||||||||
|
sets the menuStatus of the cooresponding menu item
|
|
|
sets up the menuTitle
|
1.3.6