Menu system broken
Dependencies: ANSITermMenuSystem
Fork of menuSystemMbed by
InitializeMenus.cpp@3:bdf42b6c15f4, 2013-03-08 (annotated)
- Committer:
- Rybowonder
- Date:
- Fri Mar 08 17:37:11 2013 +0000
- Revision:
- 3:bdf42b6c15f4
- Parent:
- 0:a5ece7312edc
- Child:
- 4:1178a1905490
menus complete
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 | 3:bdf42b6c15f4 | 6 | extern MainMenu pageMenu[MAXPAGES ]; |
mbedDevLondon | 0:a5ece7312edc | 7 | |
mbedDevLondon | 0:a5ece7312edc | 8 | void initializeMenuSystem() |
mbedDevLondon | 0:a5ece7312edc | 9 | { |
mbedDevLondon | 0:a5ece7312edc | 10 | pageMenu[HOME].setMenuItem(0, RECORDSET, "Record Settings", 5, 2); |
mbedDevLondon | 0:a5ece7312edc | 11 | pageMenu[HOME].setMenuItem(1, PLAYBACK, "Playback", 5, 3); |
mbedDevLondon | 0:a5ece7312edc | 12 | pageMenu[HOME].setMenuItem(2, SCREENSET, "Screen Settings", 5, 4); |
mbedDevLondon | 0:a5ece7312edc | 13 | pageMenu[HOME].setMaxItems(3); |
mbedDevLondon | 0:a5ece7312edc | 14 | |
mbedDevLondon | 0:a5ece7312edc | 15 | pageMenu[RECORDSET].setMenuItem(0, RECSETOUT, "Output", 5, 2); |
mbedDevLondon | 0:a5ece7312edc | 16 | pageMenu[RECORDSET].setMenuItem(1, RECSETIN, "Input", 5, 3); |
mbedDevLondon | 0:a5ece7312edc | 17 | pageMenu[RECORDSET].setMenuItem(2, RECSETFILTERS, "Filters", 5, 4); |
mbedDevLondon | 0:a5ece7312edc | 18 | pageMenu[RECORDSET].setMenuItem(3, RECSETSAMPFRQ, "Sampling Freq", 5, 5); |
mbedDevLondon | 0:a5ece7312edc | 19 | pageMenu[RECORDSET].setMenuItem(4, RECSETAGC, "AGC", 5, 6); |
mbedDevLondon | 0:a5ece7312edc | 20 | pageMenu[RECORDSET].setMaxItems(5); |
mbedDevLondon | 0:a5ece7312edc | 21 | |
mbedDevLondon | 0:a5ece7312edc | 22 | pageMenu[OUTPUT].setMenuItem(0, LINE, "Line", 5, 2); |
mbedDevLondon | 0:a5ece7312edc | 23 | pageMenu[OUTPUT].setMenuItem(1, HEADPHONES, "Headphones", 5, 3); |
mbedDevLondon | 0:a5ece7312edc | 24 | pageMenu[OUTPUT].setMenuItem(2, SPEAKERS, "Speakers", 5, 4); |
mbedDevLondon | 0:a5ece7312edc | 25 | pageMenu[OUTPUT].setMaxItems(3); |
mbedDevLondon | 0:a5ece7312edc | 26 | |
mbedDevLondon | 0:a5ece7312edc | 27 | pageMenu[INPUT].setMenuItem(0, INMIC, "Mic", 5, 2); |
mbedDevLondon | 0:a5ece7312edc | 28 | pageMenu[INPUT].setMenuItem(1, INLINE, "Line", 5, 3); |
mbedDevLondon | 0:a5ece7312edc | 29 | pageMenu[INPUT].setMaxItems(2); |
mbedDevLondon | 0:a5ece7312edc | 30 | |
mbedDevLondon | 0:a5ece7312edc | 31 | pageMenu[FILTER].setMenuItem(0, FILTER1, "Low Pass", 5, 2); |
mbedDevLondon | 0:a5ece7312edc | 32 | pageMenu[FILTER].setMenuItem(1, FILTER2, "High Pass", 5, 3); |
mbedDevLondon | 0:a5ece7312edc | 33 | pageMenu[FILTER].setMenuItem(2, FILTER3, "Band Pass", 5, 4); |
mbedDevLondon | 0:a5ece7312edc | 34 | pageMenu[FILTER].setMenuItem(3, FILTERNONE, "None", 5, 5); |
Rybowonder | 3:bdf42b6c15f4 | 35 | pageMenu[FILTER].setMaxItems(4); |
Rybowonder | 3:bdf42b6c15f4 | 36 | |
Rybowonder | 3:bdf42b6c15f4 | 37 | pageMenu[SAMPRATE].setMenuItem(0, SPEED1, "ON", 5, 2); |
Rybowonder | 3:bdf42b6c15f4 | 38 | pageMenu[SAMPRATE].setMenuItem(1, SPEED2, "OFF", 5, 3); |
Rybowonder | 3:bdf42b6c15f4 | 39 | pageMenu[SAMPRATE].setMaxItems(2); |
Rybowonder | 3:bdf42b6c15f4 | 40 | |
Rybowonder | 3:bdf42b6c15f4 | 41 | pageMenu[AGC].setMenuItem(0, AGCON, "ON", 5, 2); |
Rybowonder | 3:bdf42b6c15f4 | 42 | pageMenu[AGC].setMenuItem(1, AGCOFF, "OFF", 5, 3); |
Rybowonder | 3:bdf42b6c15f4 | 43 | pageMenu[AGC].setMaxItems(2); |
Rybowonder | 3:bdf42b6c15f4 | 44 | |
Rybowonder | 3:bdf42b6c15f4 | 45 | pageMenu[PLAYBACK].setMenuItem(0, PLAYTRACK, "Play Saved Tracks", 5, 2); |
Rybowonder | 3:bdf42b6c15f4 | 46 | pageMenu[PLAYBACK].setMenuItem(1, DELETETRACK, "Delete Saved Tracks", 5, 3); |
Rybowonder | 3:bdf42b6c15f4 | 47 | pageMenu[PLAYBACK].setMaxItems(2); |
Rybowonder | 3:bdf42b6c15f4 | 48 | |
Rybowonder | 3:bdf42b6c15f4 | 49 | pageMenu[PLAY].setMenuItem(0, EX_PLAYTRACK, "Example track", 5, 2); |
Rybowonder | 3:bdf42b6c15f4 | 50 | pageMenu[PLAY].setMaxItems(1); |
Rybowonder | 3:bdf42b6c15f4 | 51 | |
Rybowonder | 3:bdf42b6c15f4 | 52 | pageMenu[DELETESCR].setMenuItem(0, EX_DELETETRACK, "Example track", 5, 2); |
Rybowonder | 3:bdf42b6c15f4 | 53 | pageMenu[DELETESCR].setMaxItems(1); |
Rybowonder | 3:bdf42b6c15f4 | 54 | |
Rybowonder | 3:bdf42b6c15f4 | 55 | pageMenu[SCREENSET].setMenuItem(0, CONTRAST, "Contrast", 5, 2); |
Rybowonder | 3:bdf42b6c15f4 | 56 | pageMenu[SCREENSET].setMaxItems(1); |
Rybowonder | 3:bdf42b6c15f4 | 57 | |
Rybowonder | 3:bdf42b6c15f4 | 58 | pageMenu[CONTRAST].setMenuItem(0, CONTRASTUP, "Increase Contrast", 5, 2); |
Rybowonder | 3:bdf42b6c15f4 | 59 | pageMenu[CONTRAST].setMenuItem(1, CONTRASTDOWN , "Decrease Contrast", 5, 3); |
Rybowonder | 3:bdf42b6c15f4 | 60 | pageMenu[CONTRAST].setMaxItems(2); |
Rybowonder | 3:bdf42b6c15f4 | 61 | |
Rybowonder | 3:bdf42b6c15f4 | 62 | // pageMenu[PLAYSCR].setMenuItem(0, CONTRASTUP, "Increase Contrast", 5, 2); |
Rybowonder | 3:bdf42b6c15f4 | 63 | // pageMenu[PLAYSCR].setMenuItem(1, CONTRASTDOWN , "Decrease Contrast", 5, 3); |
Rybowonder | 3:bdf42b6c15f4 | 64 | // pageMenu[PLAYSCR].setMaxItems(2); |
Rybowonder | 3:bdf42b6c15f4 | 65 | |
Rybowonder | 3:bdf42b6c15f4 | 66 | pageMenu[WARNINGSCR].setMenuItem(0, DELETENO, "Delete Track", 5, 2); |
Rybowonder | 3:bdf42b6c15f4 | 67 | pageMenu[WARNINGSCR].setMenuItem(1, DELETEYES , "DO NOT Delete", 5, 3); |
Rybowonder | 3:bdf42b6c15f4 | 68 | pageMenu[WARNINGSCR].setMaxItems(2); |
Rybowonder | 3:bdf42b6c15f4 | 69 | |
Rybowonder | 3:bdf42b6c15f4 | 70 | // pageMenu[RECORDSCR].setMenuItem(0, CONTRASTUP, "Increase Contrast", 5, 2); |
Rybowonder | 3:bdf42b6c15f4 | 71 | // pageMenu[RECORDSCR].setMenuItem(1, CONTRASTDOWN , "Decrease Contrast", 5, 3); |
Rybowonder | 3:bdf42b6c15f4 | 72 | // pageMenu[RECORDSCR].setMaxItems(2); |
Rybowonder | 3:bdf42b6c15f4 | 73 | |
mbedDevLondon | 0:a5ece7312edc | 74 | } |