Menu system broken
Dependencies: ANSITermMenuSystem
Fork of menuSystemMbed by
Diff: InitializeMenus.cpp
- Revision:
- 3:bdf42b6c15f4
- Parent:
- 0:a5ece7312edc
- Child:
- 4:1178a1905490
--- a/InitializeMenus.cpp Thu Feb 28 00:42:06 2013 +0000 +++ b/InitializeMenus.cpp Fri Mar 08 17:37:11 2013 +0000 @@ -3,7 +3,7 @@ #include "menuIDs.h" #include "MainMenu.h" -extern MainMenu pageMenu[12]; +extern MainMenu pageMenu[MAXPAGES ]; void initializeMenuSystem() { @@ -32,6 +32,43 @@ pageMenu[FILTER].setMenuItem(1, FILTER2, "High Pass", 5, 3); pageMenu[FILTER].setMenuItem(2, FILTER3, "Band Pass", 5, 4); pageMenu[FILTER].setMenuItem(3, FILTERNONE, "None", 5, 5); - pageMenu[FILTER].setMaxItems(4); - + pageMenu[FILTER].setMaxItems(4); + + pageMenu[SAMPRATE].setMenuItem(0, SPEED1, "ON", 5, 2); + pageMenu[SAMPRATE].setMenuItem(1, SPEED2, "OFF", 5, 3); + pageMenu[SAMPRATE].setMaxItems(2); + + pageMenu[AGC].setMenuItem(0, AGCON, "ON", 5, 2); + pageMenu[AGC].setMenuItem(1, AGCOFF, "OFF", 5, 3); + pageMenu[AGC].setMaxItems(2); + + pageMenu[PLAYBACK].setMenuItem(0, PLAYTRACK, "Play Saved Tracks", 5, 2); + pageMenu[PLAYBACK].setMenuItem(1, DELETETRACK, "Delete Saved Tracks", 5, 3); + pageMenu[PLAYBACK].setMaxItems(2); + + pageMenu[PLAY].setMenuItem(0, EX_PLAYTRACK, "Example track", 5, 2); + pageMenu[PLAY].setMaxItems(1); + + pageMenu[DELETESCR].setMenuItem(0, EX_DELETETRACK, "Example track", 5, 2); + pageMenu[DELETESCR].setMaxItems(1); + + pageMenu[SCREENSET].setMenuItem(0, CONTRAST, "Contrast", 5, 2); + pageMenu[SCREENSET].setMaxItems(1); + + pageMenu[CONTRAST].setMenuItem(0, CONTRASTUP, "Increase Contrast", 5, 2); + pageMenu[CONTRAST].setMenuItem(1, CONTRASTDOWN , "Decrease Contrast", 5, 3); + pageMenu[CONTRAST].setMaxItems(2); + +// pageMenu[PLAYSCR].setMenuItem(0, CONTRASTUP, "Increase Contrast", 5, 2); +// pageMenu[PLAYSCR].setMenuItem(1, CONTRASTDOWN , "Decrease Contrast", 5, 3); +// pageMenu[PLAYSCR].setMaxItems(2); + + pageMenu[WARNINGSCR].setMenuItem(0, DELETENO, "Delete Track", 5, 2); + pageMenu[WARNINGSCR].setMenuItem(1, DELETEYES , "DO NOT Delete", 5, 3); + pageMenu[WARNINGSCR].setMaxItems(2); + +// pageMenu[RECORDSCR].setMenuItem(0, CONTRASTUP, "Increase Contrast", 5, 2); +// pageMenu[RECORDSCR].setMenuItem(1, CONTRASTDOWN , "Decrease Contrast", 5, 3); +// pageMenu[RECORDSCR].setMaxItems(2); + } \ No newline at end of file