menu system menus complete
Fork of menuSystemMbed by
InitializeMenus.cpp
- Committer:
- mbedDevLondon
- Date:
- 2013-02-28
- Revision:
- 0:a5ece7312edc
- Child:
- 3:bdf42b6c15f4
File content as of revision 0:a5ece7312edc:
#include "menuIDs.h" #include "MainMenu.h" extern MainMenu pageMenu[12]; void initializeMenuSystem() { pageMenu[HOME].setMenuItem(0, RECORDSET, "Record Settings", 5, 2); pageMenu[HOME].setMenuItem(1, PLAYBACK, "Playback", 5, 3); pageMenu[HOME].setMenuItem(2, SCREENSET, "Screen Settings", 5, 4); pageMenu[HOME].setMaxItems(3); pageMenu[RECORDSET].setMenuItem(0, RECSETOUT, "Output", 5, 2); pageMenu[RECORDSET].setMenuItem(1, RECSETIN, "Input", 5, 3); pageMenu[RECORDSET].setMenuItem(2, RECSETFILTERS, "Filters", 5, 4); pageMenu[RECORDSET].setMenuItem(3, RECSETSAMPFRQ, "Sampling Freq", 5, 5); pageMenu[RECORDSET].setMenuItem(4, RECSETAGC, "AGC", 5, 6); pageMenu[RECORDSET].setMaxItems(5); pageMenu[OUTPUT].setMenuItem(0, LINE, "Line", 5, 2); pageMenu[OUTPUT].setMenuItem(1, HEADPHONES, "Headphones", 5, 3); pageMenu[OUTPUT].setMenuItem(2, SPEAKERS, "Speakers", 5, 4); pageMenu[OUTPUT].setMaxItems(3); pageMenu[INPUT].setMenuItem(0, INMIC, "Mic", 5, 2); pageMenu[INPUT].setMenuItem(1, INLINE, "Line", 5, 3); pageMenu[INPUT].setMaxItems(2); pageMenu[FILTER].setMenuItem(0, FILTER1, "Low Pass", 5, 2); 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); }