Menu system broken

Dependencies:   ANSITermMenuSystem

Fork of menuSystemMbed by Ryan Scott

InitializeMenus.cpp

Committer:
Rybowonder
Date:
2013-05-04
Revision:
8:6ddb8c26387a
Parent:
5:92389cf2106d

File content as of revision 8:6ddb8c26387a:



#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(0, RECSETIN, "Input", 2, 1);
    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(2);
    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 ", 2, 1);
    pageMenu[PLAYBACK].setMenuItem(1, DELETETRACK, "Delete ", 2, 2);
    pageMenu[PLAYBACK].setMaxItems(2);
    pageMenu[PLAYBACK].setTitle("PLAYBACK      ");   
    
    pageMenu[PLAY].setMenuItem(0, P_TRACKFILE1, "FILE 1", 2, 1);
    pageMenu[PLAY].setMenuItem(1, P_TRACKFILE2, "FILE 2", 2, 2);
    pageMenu[PLAY].setMenuItem(2, P_TRACKFILE3, "FILE 3", 2, 3);
    pageMenu[PLAY].setMaxItems(3); 
    pageMenu[PLAY].setTitle("PLAY TRACK        "); 
    
    pageMenu[DELETESCR].setMenuItem(0, D_TRACKFILE1, "FILE 1", 2, 1);
    pageMenu[DELETESCR].setMenuItem(1, D_TRACKFILE2, "FILE 2", 2, 2);
    pageMenu[DELETESCR].setMenuItem(2, D_TRACKFILE3, "FILE 3", 2, 3);
    pageMenu[DELETESCR].setMaxItems(3); 
    pageMenu[DELETESCR].setTitle("DELETE TRACK      "); 
    
    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);    
    

}