Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members

UIMenu.h

00001 
00006 #ifndef UIMENU_H
00007 #define UIMENU_H
00008 
00009 #include <ncurses.h>
00010 
00011 class Menu {
00012      public:
00016          enum MenuStatus {
00018              START = 1,
00020              STOP = 0,
00022              NOSTAT = -1
00023          };
00024 
00029          Menu();         
00030 
00034          ~Menu(); 
00035 
00040         void setMenuTitle(char * title);
00041         
00049                 int setMenuList(char *list[], MenuStatus stat[],int size);
00050 
00060                 void printMenu(WINDOW * menuWin);
00061 
00067         MenuStatus getMenuStatus(int itemNumber);
00068 
00075                 int setMenuStatus(int itemNumber, MenuStatus stat);
00076                 
00081                 void setMenuName(char * name);
00082 
00087                 char * getMenuName();
00088         
00094                 int getMenuSize();
00095 
00096    private:     
00098        char *menuName;
00099 
00101        char *menuTitle;
00102 
00104        char *menuList[9];
00105 
00107        MenuStatus status[9];
00108 
00110        int menuSize;
00111 };
00112 
00113 #endif //UIMENU_H

Generated on Sat Mar 26 00:07:04 2005 for CS498EmbeddedSystemsProgramming by doxygen 1.3.6