package com.tcl.factory.view;

import android.view.KeyEvent;
 
import com.tcl.factory.bsp.TVDefine;
 
 
 

public class ParamSettingSound extends SubMenu{
	public static  String MenuInfos_ParamSettingSound[][]={
	{"Sound mode",""},
	{"Balance",""},
	{"Auto audio",""},
	{"Sound Scene",""},
	{"Sys_audio",""},	//atv  av
	};

	public ParamSettingSound()
	{
		menuInfos=MenuInfos_ParamSettingSound;
		menuLabel = "Main\\Param Setting\\Sound";
		super.setTAG();
		updateMenuInfos();
	}

	public void KeyEvent(int keyCode,int pos)
	{
		switch(keyCode)
		{
		case KeyEvent.KEYCODE_DPAD_LEFT:
		case KeyEvent.KEYCODE_DPAD_RIGHT:
		{
			switch(pos)
			{
			case 0: super.ValueHandler(TVDefine.AudioMode, keyCode);    break;
			case 1: super.ValueHandler(TVDefine.AudioBalance, keyCode); break;
			case 2: super.StatusHandler(TVDefine.AudioSmartVolume);     break;
			case 3: super.ValueHandler(TVDefine.AudioScene, keyCode);   break;
			case 4: super.ValueHandler(TVDefine.AudioFormat, keyCode);  break;		
			}
		}
		break;
		default:
			break;
		}
	}
  
 
   
	 

	/* (non-Javadoc)
	 * Factory
	 */
	@Override
	public void updateMenuInfos() 
	{
		// TODO Auto-generated method stub
		super.updateValueInfo(TVDefine.AudioMode, 0);
		super.updateValueInfo(TVDefine.AudioBalance, 1);
		super.updateStatusInfo(TVDefine.AudioSmartVolume, 2);
		super.updateValueInfo(TVDefine.AudioScene, 3);
		super.updateValueInfo(TVDefine.AudioFormat, 4);
	}

	/* (non-Javadoc)
	 * Factory
	 */
	@Override
	public void enterSubMenu(int pos) 
	{
		// TODO Auto-generated method stub
		super.enterSubMenu(pos);
	}
}