Menu system broken

Dependencies:   ANSITermMenuSystem

Fork of menuSystemMbed by Ryan Scott

InitializeMenus.cpp

Committer:
Rybowonder
Date:
2013-04-16
Revision:
4:1178a1905490
Parent:
3:bdf42b6c15f4
Child:
5:92389cf2106d

File content as of revision 4:1178a1905490:



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

extern MainMenu pageMenu[MAXPAGES];

void initializeMenuSystem()
{
    pageMenu[HOME].setMenuItem(0, RECORDSET, "Record Settings", 2, 1);
    pageMenu[HOME].setMenuItem(1, PLAYBACK, "Playback", 2, 2);
    pageMenu[HOME].setMenuItem(2, SCREENSET, "Screen Settings", 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(2, RECSETFILTERS, "Filters", 2, 3);
    pageMenu[RECORDSET].setMenuItem(3, RECSETSAMPFRQ, "Sampling Freq", 2, 4);
    pageMenu[RECORDSET].setMenuItem(4, RECSETAGC, "AGC", 2, 5);
    pageMenu[RECORDSET].setMaxItems(5);
    pageMenu[RECORDSET].setTitle("RECORD OPT ");
    
    pageMenu[OUTPUT].setMenuItem(0, LINE, "Line", 2, 1);
    pageMenu[OUTPUT].setMenuItem(1, HEADPHONES, "Headphones", 2, 2);
    pageMenu[OUTPUT].setMenuItem(2, SPEAKERS, "Speakers", 2, 3);
    pageMenu[OUTPUT].setMaxItems(3);
    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, "Low Pass", 2, 1);
    pageMenu[FILTER].setMenuItem(1, FILTER2, "High Pass", 2, 2);
    pageMenu[FILTER].setMenuItem(2, FILTER3, "Band Pass", 2, 3);
    pageMenu[FILTER].setMenuItem(3, FILTERNONE, "None", 2, 4);
    pageMenu[FILTER].setMaxItems(4);  
    pageMenu[FILTER].setTitle("FILTER          "); 
    pageMenu[FILTER].setselectstatus(); 
    
    pageMenu[SAMPRATE].setMenuItem(0, SPEED1, "ON", 2, 1);
    pageMenu[SAMPRATE].setMenuItem(1, SPEED2, "OFF", 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);  

}