Menu system broken
Dependencies: ANSITermMenuSystem
Fork of menuSystemMbed by
InitializeMenus.cpp@8:6ddb8c26387a, 2013-05-04 (annotated)
- Committer:
- Rybowonder
- Date:
- Sat May 04 17:37:57 2013 +0000
- Revision:
- 8:6ddb8c26387a
- Parent:
- 5:92389cf2106d
For Mitchener
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 | 5:92389cf2106d | 10 | pageMenu[HOME].setMenuItem(0, RECORDSET, "Rec Options", 2, 1); |
Rybowonder | 4:1178a1905490 | 11 | pageMenu[HOME].setMenuItem(1, PLAYBACK, "Playback", 2, 2); |
Rybowonder | 5:92389cf2106d | 12 | pageMenu[HOME].setMenuItem(2, SCREENSET, "Contrast", 2, 3); |
mbedDevLondon | 0:a5ece7312edc | 13 | pageMenu[HOME].setMaxItems(3); |
Rybowonder | 5:92389cf2106d | 14 | pageMenu[HOME].setTitle("HOME "); |
mbedDevLondon | 0:a5ece7312edc | 15 | |
Rybowonder | 8:6ddb8c26387a | 16 | // pageMenu[RECORDSET].setMenuItem(0, RECSETOUT, "Output", 2, 1); |
Rybowonder | 8:6ddb8c26387a | 17 | pageMenu[RECORDSET].setMenuItem(0, RECSETIN, "Input", 2, 1); |
Rybowonder | 5:92389cf2106d | 18 | pageMenu[RECORDSET].setMenuItem(1, RECSETFILTERS, "Filter", 2, 2); |
Rybowonder | 8:6ddb8c26387a | 19 | // pageMenu[RECORDSET].setMenuItem(2, RECSETSAMPFRQ, "Samp Rate", 2, 3); |
Rybowonder | 5:92389cf2106d | 20 | // pageMenu[RECORDSET].setMenuItem(4, RECSETAGC, "AGC", 2, 5); |
Rybowonder | 8:6ddb8c26387a | 21 | pageMenu[RECORDSET].setMaxItems(2); |
Rybowonder | 5:92389cf2106d | 22 | pageMenu[RECORDSET].setTitle("REC OPTIONS "); |
Rybowonder | 5:92389cf2106d | 23 | |
mbedDevLondon | 0:a5ece7312edc | 24 | |
Rybowonder | 5:92389cf2106d | 25 | // pageMenu[OUTPUT].setMenuItem(0, LINE, "Line", 2, 1); |
Rybowonder | 8:6ddb8c26387a | 26 | // pageMenu[OUTPUT].setMenuItem(0, HEADPHONES, "1) Internal", 2, 2); |
Rybowonder | 8:6ddb8c26387a | 27 | // pageMenu[OUTPUT].setMenuItem(1, SPEAKERS, "2) External", 2, 3); |
Rybowonder | 8:6ddb8c26387a | 28 | // pageMenu[OUTPUT].setMaxItems(2); |
Rybowonder | 8:6ddb8c26387a | 29 | // pageMenu[OUTPUT].setTitle("OUTPUT "); |
Rybowonder | 8:6ddb8c26387a | 30 | // pageMenu[OUTPUT].setselectstatus(); |
mbedDevLondon | 0:a5ece7312edc | 31 | |
Rybowonder | 8:6ddb8c26387a | 32 | |
Rybowonder | 4:1178a1905490 | 33 | pageMenu[INPUT].setMenuItem(0, INMIC, "Mic", 2, 1); |
Rybowonder | 4:1178a1905490 | 34 | pageMenu[INPUT].setMenuItem(1, INLINE, "Line", 2, 2); |
Rybowonder | 4:1178a1905490 | 35 | pageMenu[INPUT].setMaxItems(2); |
Rybowonder | 4:1178a1905490 | 36 | pageMenu[INPUT].setTitle("INPUT "); |
Rybowonder | 4:1178a1905490 | 37 | pageMenu[INPUT].setselectstatus(); |
Rybowonder | 8:6ddb8c26387a | 38 | |
Rybowonder | 5:92389cf2106d | 39 | pageMenu[FILTER].setMenuItem(0, FILTER1, "1) On", 2, 1); |
Rybowonder | 5:92389cf2106d | 40 | pageMenu[FILTER].setMenuItem(1, FILTER2, "2) Off", 2, 2); |
Rybowonder | 5:92389cf2106d | 41 | // pageMenu[FILTER].setMenuItem(2, FILTER3, "Band Pass", 2, 3); |
Rybowonder | 5:92389cf2106d | 42 | // pageMenu[FILTER].setMenuItem(3, FILTERNONE, "None", 2, 4); |
Rybowonder | 5:92389cf2106d | 43 | pageMenu[FILTER].setMaxItems(2); |
Rybowonder | 5:92389cf2106d | 44 | pageMenu[FILTER].setTitle("FILTER "); |
Rybowonder | 4:1178a1905490 | 45 | pageMenu[FILTER].setselectstatus(); |
Rybowonder | 8:6ddb8c26387a | 46 | |
Rybowonder | 8:6ddb8c26387a | 47 | /* |
Rybowonder | 5:92389cf2106d | 48 | pageMenu[SAMPRATE].setMenuItem(0, SPEED1, "1) 44.1k", 2, 1); |
Rybowonder | 5:92389cf2106d | 49 | pageMenu[SAMPRATE].setMenuItem(1, SPEED2, "2) 48k", 2, 2); |
Rybowonder | 4:1178a1905490 | 50 | pageMenu[SAMPRATE].setMaxItems(2); |
Rybowonder | 5:92389cf2106d | 51 | pageMenu[SAMPRATE].setTitle("SAMPRATE "); |
Rybowonder | 4:1178a1905490 | 52 | pageMenu[SAMPRATE].setselectstatus(); |
Rybowonder | 8:6ddb8c26387a | 53 | */ |
Rybowonder | 3:bdf42b6c15f4 | 54 | |
Rybowonder | 5:92389cf2106d | 55 | /* |
Rybowonder | 4:1178a1905490 | 56 | pageMenu[AGC].setMenuItem(0, AGCON, "ON", 2, 1); |
Rybowonder | 4:1178a1905490 | 57 | pageMenu[AGC].setMenuItem(1, AGCOFF, "OFF", 2, 2); |
Rybowonder | 4:1178a1905490 | 58 | pageMenu[AGC].setMaxItems(2); |
Rybowonder | 4:1178a1905490 | 59 | pageMenu[AGC].setTitle("AGC "); |
Rybowonder | 4:1178a1905490 | 60 | pageMenu[AGC].setselectstatus(); |
Rybowonder | 5:92389cf2106d | 61 | */ |
Rybowonder | 3:bdf42b6c15f4 | 62 | |
Rybowonder | 8:6ddb8c26387a | 63 | pageMenu[PLAYBACK].setMenuItem(0, PLAYTRACK, "Play ", 2, 1); |
Rybowonder | 8:6ddb8c26387a | 64 | pageMenu[PLAYBACK].setMenuItem(1, DELETETRACK, "Delete ", 2, 2); |
Rybowonder | 4:1178a1905490 | 65 | pageMenu[PLAYBACK].setMaxItems(2); |
Rybowonder | 4:1178a1905490 | 66 | pageMenu[PLAYBACK].setTitle("PLAYBACK "); |
Rybowonder | 3:bdf42b6c15f4 | 67 | |
Rybowonder | 8:6ddb8c26387a | 68 | pageMenu[PLAY].setMenuItem(0, P_TRACKFILE1, "FILE 1", 2, 1); |
Rybowonder | 8:6ddb8c26387a | 69 | pageMenu[PLAY].setMenuItem(1, P_TRACKFILE2, "FILE 2", 2, 2); |
Rybowonder | 8:6ddb8c26387a | 70 | pageMenu[PLAY].setMenuItem(2, P_TRACKFILE3, "FILE 3", 2, 3); |
Rybowonder | 8:6ddb8c26387a | 71 | pageMenu[PLAY].setMaxItems(3); |
Rybowonder | 8:6ddb8c26387a | 72 | pageMenu[PLAY].setTitle("PLAY TRACK "); |
Rybowonder | 3:bdf42b6c15f4 | 73 | |
Rybowonder | 8:6ddb8c26387a | 74 | pageMenu[DELETESCR].setMenuItem(0, D_TRACKFILE1, "FILE 1", 2, 1); |
Rybowonder | 8:6ddb8c26387a | 75 | pageMenu[DELETESCR].setMenuItem(1, D_TRACKFILE2, "FILE 2", 2, 2); |
Rybowonder | 8:6ddb8c26387a | 76 | pageMenu[DELETESCR].setMenuItem(2, D_TRACKFILE3, "FILE 3", 2, 3); |
Rybowonder | 8:6ddb8c26387a | 77 | pageMenu[DELETESCR].setMaxItems(3); |
Rybowonder | 8:6ddb8c26387a | 78 | pageMenu[DELETESCR].setTitle("DELETE TRACK "); |
Rybowonder | 3:bdf42b6c15f4 | 79 | |
Rybowonder | 4:1178a1905490 | 80 | pageMenu[SCREENSET].setMenuItem(0, CONTRAST, "Contrast", 2, 1); |
Rybowonder | 3:bdf42b6c15f4 | 81 | pageMenu[SCREENSET].setMaxItems(1); |
Rybowonder | 3:bdf42b6c15f4 | 82 | |
Rybowonder | 4:1178a1905490 | 83 | pageMenu[CONTRAST].setMenuItem(0, CONTRASTUP, "Contrast UP", 2, 1); |
Rybowonder | 4:1178a1905490 | 84 | pageMenu[CONTRAST].setMenuItem(1, CONTRASTDOWN , "Contrast DOWN", 2, 2); |
Rybowonder | 3:bdf42b6c15f4 | 85 | pageMenu[CONTRAST].setMaxItems(2); |
Rybowonder | 3:bdf42b6c15f4 | 86 | |
Rybowonder | 3:bdf42b6c15f4 | 87 | // pageMenu[PLAYSCR].setMenuItem(0, CONTRASTUP, "Increase Contrast", 5, 2); |
Rybowonder | 3:bdf42b6c15f4 | 88 | // pageMenu[PLAYSCR].setMenuItem(1, CONTRASTDOWN , "Decrease Contrast", 5, 3); |
Rybowonder | 3:bdf42b6c15f4 | 89 | // pageMenu[PLAYSCR].setMaxItems(2); |
Rybowonder | 3:bdf42b6c15f4 | 90 | |
Rybowonder | 4:1178a1905490 | 91 | pageMenu[WARNINGSCR].setMenuItem(0, DELETENO, "Delete Track", 2, 1); |
Rybowonder | 4:1178a1905490 | 92 | pageMenu[WARNINGSCR].setMenuItem(1, DELETEYES , "DO NOT Delete", 2, 2); |
Rybowonder | 3:bdf42b6c15f4 | 93 | pageMenu[WARNINGSCR].setMaxItems(2); |
Rybowonder | 3:bdf42b6c15f4 | 94 | |
Rybowonder | 3:bdf42b6c15f4 | 95 | |
mbedDevLondon | 0:a5ece7312edc | 96 | } |