Menu system broken

Dependencies:   ANSITermMenuSystem

Fork of menuSystemMbed by Ryan Scott

InitializeMenus.cpp

Committer:
Rybowonder
Date:
2013-04-21
Revision:
5:92389cf2106d
Parent:
4:1178a1905490
Child:
8:6ddb8c26387a

File content as of revision 5:92389cf2106d:



#include "menuIDs.h"
#include "MainMenu.h"

extern MainMenu pageMenu[MAXPAGES];

void initializeMenuSystem()
{
    pageMenu[HOME].setMenuItem(0, RECORDSET, "Rec Options", 2, 1);
    pageMenu[HOME].setMenuItem(1, PLAYBACK, "Playback", 2, 2);
    pageMenu[HOME].setMenuItem(2, SCREENSET, "Contrast", 2, 3);
    pageMenu[HOME].setMaxItems(3);
    pageMenu[HOME].setTitle("HOME           ");
    
    pageMenu[RECORDSET].setMenuItem(0, RECSETOUT, "Output", 2, 1);
  //  pageMenu[RECORDSET].setMenuItem(1, RECSETIN, "Input", 2, 2);
    pageMenu[RECORDSET].setMenuItem(1, RECSETFILTERS, "Filter", 2, 2);
    pageMenu[RECORDSET].setMenuItem(2, RECSETSAMPFRQ, "Samp Rate", 2, 3);
  //  pageMenu[RECORDSET].setMenuItem(4, RECSETAGC, "AGC", 2, 5);
    pageMenu[RECORDSET].setMaxItems(3);
    pageMenu[RECORDSET].setTitle("REC OPTIONS    ");

    
 //   pageMenu[OUTPUT].setMenuItem(0, LINE, "Line", 2, 1);
    pageMenu[OUTPUT].setMenuItem(0, HEADPHONES, "1) Internal", 2, 2);
    pageMenu[OUTPUT].setMenuItem(1, SPEAKERS, "2) External", 2, 3);
    pageMenu[OUTPUT].setMaxItems(2);
    pageMenu[OUTPUT].setTitle("OUTPUT         ");
    pageMenu[OUTPUT].setselectstatus();
    
 /*   
    pageMenu[INPUT].setMenuItem(0, INMIC, "Mic", 2, 1);
    pageMenu[INPUT].setMenuItem(1, INLINE, "Line", 2, 2);
    pageMenu[INPUT].setMaxItems(2); 
    pageMenu[INPUT].setTitle("INPUT           "); 
    pageMenu[INPUT].setselectstatus();    
*/
    pageMenu[FILTER].setMenuItem(0, FILTER1, "1) On", 2, 1);
    pageMenu[FILTER].setMenuItem(1, FILTER2, "2) Off", 2, 2);
  //  pageMenu[FILTER].setMenuItem(2, FILTER3, "Band Pass", 2, 3);
  //  pageMenu[FILTER].setMenuItem(3, FILTERNONE, "None", 2, 4);
    pageMenu[FILTER].setMaxItems(2);  
    pageMenu[FILTER].setTitle("FILTER         "); 
    pageMenu[FILTER].setselectstatus(); 
    
    pageMenu[SAMPRATE].setMenuItem(0, SPEED1, "1) 44.1k", 2, 1);
    pageMenu[SAMPRATE].setMenuItem(1, SPEED2, "2) 48k", 2, 2);
    pageMenu[SAMPRATE].setMaxItems(2);
    pageMenu[SAMPRATE].setTitle("SAMPRATE       ");  
    pageMenu[SAMPRATE].setselectstatus();
    
/*    
    pageMenu[AGC].setMenuItem(0, AGCON, "ON", 2, 1);
    pageMenu[AGC].setMenuItem(1, AGCOFF, "OFF", 2, 2);
    pageMenu[AGC].setMaxItems(2);
    pageMenu[AGC].setTitle("AGC           ");
    pageMenu[AGC].setselectstatus();   
*/    
    
    pageMenu[PLAYBACK].setMenuItem(0, PLAYTRACK, "Play Tracks", 2, 1);
    pageMenu[PLAYBACK].setMenuItem(1, DELETETRACK, "Delete Tracks", 2, 2);
    pageMenu[PLAYBACK].setMaxItems(2);
    pageMenu[PLAYBACK].setTitle("PLAYBACK      ");   
    
    pageMenu[PLAY].setMenuItem(0, EX_PLAYTRACK, "Example track", 2, 1);
    pageMenu[PLAY].setMaxItems(1); 
    
    pageMenu[DELETESCR].setMenuItem(0, EX_DELETETRACK, "Example track", 2, 1);
    pageMenu[DELETESCR].setMaxItems(1); 
    
    pageMenu[SCREENSET].setMenuItem(0, CONTRAST, "Contrast", 2, 1);
    pageMenu[SCREENSET].setMaxItems(1); 
    
    pageMenu[CONTRAST].setMenuItem(0, CONTRASTUP, "Contrast UP", 2, 1);
    pageMenu[CONTRAST].setMenuItem(1, CONTRASTDOWN , "Contrast DOWN", 2, 2);
    pageMenu[CONTRAST].setMaxItems(2);   
    
//    pageMenu[PLAYSCR].setMenuItem(0, CONTRASTUP, "Increase Contrast", 5, 2);
//    pageMenu[PLAYSCR].setMenuItem(1, CONTRASTDOWN , "Decrease Contrast", 5, 3);
//    pageMenu[PLAYSCR].setMaxItems(2);  
    
    pageMenu[WARNINGSCR].setMenuItem(0, DELETENO, "Delete Track", 2, 1);
    pageMenu[WARNINGSCR].setMenuItem(1, DELETEYES , "DO NOT Delete", 2, 2);
    pageMenu[WARNINGSCR].setMaxItems(2);    
    
//    pageMenu[RECORDSCR].setMenuItem(0, CONTRASTUP, "Increase Contrast", 5, 2);
//    pageMenu[RECORDSCR].setMenuItem(1, CONTRASTDOWN , "Decrease Contrast", 5, 3);
//    pageMenu[RECORDSCR].setMaxItems(2);  

}