Menu system broken

Dependencies:   ANSITermMenuSystem

Fork of menuSystemMbed by Ryan Scott

Revision:
0:a5ece7312edc
Child:
3:bdf42b6c15f4
diff -r 000000000000 -r a5ece7312edc InitializeMenus.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/InitializeMenus.cpp	Thu Feb 28 00:38:31 2013 +0000
@@ -0,0 +1,37 @@
+
+
+#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);      
+   
+}
\ No newline at end of file