Menu system broken
Dependencies: ANSITermMenuSystem
Fork of menuSystemMbed by
InitializeMenus.cpp@4:1178a1905490, 2013-04-16 (annotated)
- Committer:
- Rybowonder
- Date:
- Tue Apr 16 18:42:03 2013 +0000
- Revision:
- 4:1178a1905490
- Parent:
- 3:bdf42b6c15f4
- Child:
- 5:92389cf2106d
Before ConstantDisplay
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
mbedDevLondon | 0:a5ece7312edc | 1 | |
mbedDevLondon | 0:a5ece7312edc | 2 | |
mbedDevLondon | 0:a5ece7312edc | 3 | #include "menuIDs.h" |
mbedDevLondon | 0:a5ece7312edc | 4 | #include "MainMenu.h" |
mbedDevLondon | 0:a5ece7312edc | 5 | |
Rybowonder | 4:1178a1905490 | 6 | extern MainMenu pageMenu[MAXPAGES]; |
mbedDevLondon | 0:a5ece7312edc | 7 | |
mbedDevLondon | 0:a5ece7312edc | 8 | void initializeMenuSystem() |
mbedDevLondon | 0:a5ece7312edc | 9 | { |
Rybowonder | 4:1178a1905490 | 10 | pageMenu[HOME].setMenuItem(0, RECORDSET, "Record Settings", 2, 1); |
Rybowonder | 4:1178a1905490 | 11 | pageMenu[HOME].setMenuItem(1, PLAYBACK, "Playback", 2, 2); |
Rybowonder | 4:1178a1905490 | 12 | pageMenu[HOME].setMenuItem(2, SCREENSET, "Screen Settings", 2, 3); |
mbedDevLondon | 0:a5ece7312edc | 13 | pageMenu[HOME].setMaxItems(3); |
Rybowonder | 4:1178a1905490 | 14 | pageMenu[HOME].setTitle("HOME "); |
mbedDevLondon | 0:a5ece7312edc | 15 | |
Rybowonder | 4:1178a1905490 | 16 | pageMenu[RECORDSET].setMenuItem(0, RECSETOUT, "Output", 2, 1); |
Rybowonder | 4:1178a1905490 | 17 | pageMenu[RECORDSET].setMenuItem(1, RECSETIN, "Input", 2, 2); |
Rybowonder | 4:1178a1905490 | 18 | pageMenu[RECORDSET].setMenuItem(2, RECSETFILTERS, "Filters", 2, 3); |
Rybowonder | 4:1178a1905490 | 19 | pageMenu[RECORDSET].setMenuItem(3, RECSETSAMPFRQ, "Sampling Freq", 2, 4); |
Rybowonder | 4:1178a1905490 | 20 | pageMenu[RECORDSET].setMenuItem(4, RECSETAGC, "AGC", 2, 5); |
mbedDevLondon | 0:a5ece7312edc | 21 | pageMenu[RECORDSET].setMaxItems(5); |
Rybowonder | 4:1178a1905490 | 22 | pageMenu[RECORDSET].setTitle("RECORD OPT "); |
mbedDevLondon | 0:a5ece7312edc | 23 | |
Rybowonder | 4:1178a1905490 | 24 | pageMenu[OUTPUT].setMenuItem(0, LINE, "Line", 2, 1); |
Rybowonder | 4:1178a1905490 | 25 | pageMenu[OUTPUT].setMenuItem(1, HEADPHONES, "Headphones", 2, 2); |
Rybowonder | 4:1178a1905490 | 26 | pageMenu[OUTPUT].setMenuItem(2, SPEAKERS, "Speakers", 2, 3); |
mbedDevLondon | 0:a5ece7312edc | 27 | pageMenu[OUTPUT].setMaxItems(3); |
Rybowonder | 4:1178a1905490 | 28 | pageMenu[OUTPUT].setTitle("OUTPUT "); |
Rybowonder | 4:1178a1905490 | 29 | pageMenu[OUTPUT].setselectstatus(); |
mbedDevLondon | 0:a5ece7312edc | 30 | |
Rybowonder | 4:1178a1905490 | 31 | pageMenu[INPUT].setMenuItem(0, INMIC, "Mic", 2, 1); |
Rybowonder | 4:1178a1905490 | 32 | pageMenu[INPUT].setMenuItem(1, INLINE, "Line", 2, 2); |
Rybowonder | 4:1178a1905490 | 33 | pageMenu[INPUT].setMaxItems(2); |
Rybowonder | 4:1178a1905490 | 34 | pageMenu[INPUT].setTitle("INPUT "); |
Rybowonder | 4:1178a1905490 | 35 | pageMenu[INPUT].setselectstatus(); |
mbedDevLondon | 0:a5ece7312edc | 36 | |
Rybowonder | 4:1178a1905490 | 37 | pageMenu[FILTER].setMenuItem(0, FILTER1, "Low Pass", 2, 1); |
Rybowonder | 4:1178a1905490 | 38 | pageMenu[FILTER].setMenuItem(1, FILTER2, "High Pass", 2, 2); |
Rybowonder | 4:1178a1905490 | 39 | pageMenu[FILTER].setMenuItem(2, FILTER3, "Band Pass", 2, 3); |
Rybowonder | 4:1178a1905490 | 40 | pageMenu[FILTER].setMenuItem(3, FILTERNONE, "None", 2, 4); |
Rybowonder | 4:1178a1905490 | 41 | pageMenu[FILTER].setMaxItems(4); |
Rybowonder | 4:1178a1905490 | 42 | pageMenu[FILTER].setTitle("FILTER "); |
Rybowonder | 4:1178a1905490 | 43 | pageMenu[FILTER].setselectstatus(); |
Rybowonder | 3:bdf42b6c15f4 | 44 | |
Rybowonder | 4:1178a1905490 | 45 | pageMenu[SAMPRATE].setMenuItem(0, SPEED1, "ON", 2, 1); |
Rybowonder | 4:1178a1905490 | 46 | pageMenu[SAMPRATE].setMenuItem(1, SPEED2, "OFF", 2, 2); |
Rybowonder | 4:1178a1905490 | 47 | pageMenu[SAMPRATE].setMaxItems(2); |
Rybowonder | 4:1178a1905490 | 48 | pageMenu[SAMPRATE].setTitle("SAMPRATE "); |
Rybowonder | 4:1178a1905490 | 49 | pageMenu[SAMPRATE].setselectstatus(); |
Rybowonder | 3:bdf42b6c15f4 | 50 | |
Rybowonder | 4:1178a1905490 | 51 | pageMenu[AGC].setMenuItem(0, AGCON, "ON", 2, 1); |
Rybowonder | 4:1178a1905490 | 52 | pageMenu[AGC].setMenuItem(1, AGCOFF, "OFF", 2, 2); |
Rybowonder | 4:1178a1905490 | 53 | pageMenu[AGC].setMaxItems(2); |
Rybowonder | 4:1178a1905490 | 54 | pageMenu[AGC].setTitle("AGC "); |
Rybowonder | 4:1178a1905490 | 55 | pageMenu[AGC].setselectstatus(); |
Rybowonder | 3:bdf42b6c15f4 | 56 | |
Rybowonder | 4:1178a1905490 | 57 | pageMenu[PLAYBACK].setMenuItem(0, PLAYTRACK, "Play Tracks", 2, 1); |
Rybowonder | 4:1178a1905490 | 58 | pageMenu[PLAYBACK].setMenuItem(1, DELETETRACK, "Delete Tracks", 2, 2); |
Rybowonder | 4:1178a1905490 | 59 | pageMenu[PLAYBACK].setMaxItems(2); |
Rybowonder | 4:1178a1905490 | 60 | pageMenu[PLAYBACK].setTitle("PLAYBACK "); |
Rybowonder | 3:bdf42b6c15f4 | 61 | |
Rybowonder | 4:1178a1905490 | 62 | pageMenu[PLAY].setMenuItem(0, EX_PLAYTRACK, "Example track", 2, 1); |
Rybowonder | 3:bdf42b6c15f4 | 63 | pageMenu[PLAY].setMaxItems(1); |
Rybowonder | 3:bdf42b6c15f4 | 64 | |
Rybowonder | 4:1178a1905490 | 65 | pageMenu[DELETESCR].setMenuItem(0, EX_DELETETRACK, "Example track", 2, 1); |
Rybowonder | 3:bdf42b6c15f4 | 66 | pageMenu[DELETESCR].setMaxItems(1); |
Rybowonder | 3:bdf42b6c15f4 | 67 | |
Rybowonder | 4:1178a1905490 | 68 | pageMenu[SCREENSET].setMenuItem(0, CONTRAST, "Contrast", 2, 1); |
Rybowonder | 3:bdf42b6c15f4 | 69 | pageMenu[SCREENSET].setMaxItems(1); |
Rybowonder | 3:bdf42b6c15f4 | 70 | |
Rybowonder | 4:1178a1905490 | 71 | pageMenu[CONTRAST].setMenuItem(0, CONTRASTUP, "Contrast UP", 2, 1); |
Rybowonder | 4:1178a1905490 | 72 | pageMenu[CONTRAST].setMenuItem(1, CONTRASTDOWN , "Contrast DOWN", 2, 2); |
Rybowonder | 3:bdf42b6c15f4 | 73 | pageMenu[CONTRAST].setMaxItems(2); |
Rybowonder | 3:bdf42b6c15f4 | 74 | |
Rybowonder | 3:bdf42b6c15f4 | 75 | // pageMenu[PLAYSCR].setMenuItem(0, CONTRASTUP, "Increase Contrast", 5, 2); |
Rybowonder | 3:bdf42b6c15f4 | 76 | // pageMenu[PLAYSCR].setMenuItem(1, CONTRASTDOWN , "Decrease Contrast", 5, 3); |
Rybowonder | 3:bdf42b6c15f4 | 77 | // pageMenu[PLAYSCR].setMaxItems(2); |
Rybowonder | 3:bdf42b6c15f4 | 78 | |
Rybowonder | 4:1178a1905490 | 79 | pageMenu[WARNINGSCR].setMenuItem(0, DELETENO, "Delete Track", 2, 1); |
Rybowonder | 4:1178a1905490 | 80 | pageMenu[WARNINGSCR].setMenuItem(1, DELETEYES , "DO NOT Delete", 2, 2); |
Rybowonder | 3:bdf42b6c15f4 | 81 | pageMenu[WARNINGSCR].setMaxItems(2); |
Rybowonder | 3:bdf42b6c15f4 | 82 | |
Rybowonder | 3:bdf42b6c15f4 | 83 | // pageMenu[RECORDSCR].setMenuItem(0, CONTRASTUP, "Increase Contrast", 5, 2); |
Rybowonder | 3:bdf42b6c15f4 | 84 | // pageMenu[RECORDSCR].setMenuItem(1, CONTRASTDOWN , "Decrease Contrast", 5, 3); |
Rybowonder | 3:bdf42b6c15f4 | 85 | // pageMenu[RECORDSCR].setMaxItems(2); |
Rybowonder | 3:bdf42b6c15f4 | 86 | |
mbedDevLondon | 0:a5ece7312edc | 87 | } |