⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 clips_menu_config.c

📁 Zoran V966 DVD 解码 Soc芯片的源程序
💻 C
📖 第 1 页 / 共 4 页
字号:
	(MS_CHOICE_DATA*)&RepeatABModeValueTable,
	CIDX_8,
	CIDX_8,
	CIDX_6,
	BMP_BG_3,
	mpfMutatorNull
};
#endif // D_GUI_TOOLKIT_ADD_REPEATAB

/***************************************************************************************
*	Descriptor 	: 	oRippingButtonDescriptor
*
*	Purpose	 	:	Descriptor of a toolkit button that allows the user to set  start/stop
*					ripping CDDA. The audio has to be started before starting ripping.
 ****************************************************************************************/
#ifdef D_GUI_TOOLKIT_ADD_RIPPING

static CONST OSD_TEXT oRippingText = {
	OSDR_GetFormUniStr_OsdMessage,
	S_RIPPING
};

static CONST MS_DESCRIPTOR_BUTTON oRippingButtonDescriptor =
{// MS_DESCRIPTOR
	{
		{
			sizeof(MSO_BUTTON),
			MS_NAV_TO_ALGINED_Y,
			MS_ATTR_FOCUSABLE | MS_ATTR_OSD_LAYER_0 | MS_ATTR_RADIO_BUTTON,
			{
				0,//decided by it's parent vscrolllist
				0,//decided by it's parent vscrolllist
				0,//decided by it's parent vscrolllist
				CHOICE_HEIGHT
			},
			_BtnRippingOperation,
			OBUTTON_FillOSDSeg,
			mpParamNull
		},
		(MS_X_Y_ALIGN *)&oButtonTextXYAlign,
		(MS_COLOR_SET *)&oButtonTextColorSet,
		(MS_BITMAP_SET *)&oButtonBitmapSet,
		(OSD_TEXT *)	&oRippingText,
		FONT_0,
		NULL,
		NULL
	},
	MS_OP_NONE
};
#endif // D_GUI_TOOLKIT_ADD_RIPPING

/***************************************************************************************
*	Descriptor 	: 	oIntroButtonDescriptor
*
*	Purpose	 	:	Descriptor of a toolkit button that toggles the intro mode.
 ****************************************************************************************/
#ifdef D_GUI_TOOLKIT_ADD_INTRO
static CONST OSD_TEXT oIntroText = {
	OSDR_GetFormUniStr_OsdMessage,
	S_MUSIC_INTRO
};
CONST MS_COLOR_SET oBtnIntroTextColorSet =
{
	CIDX_8,
	CIDX_8,
	CIDX_3,
	CIDX_8
};
static CONST MS_DESCRIPTOR_BUTTON oIntroButtonDescriptor =
{// MS_DESCRIPTOR
	{
		{
			sizeof(MSO_BUTTON),
			MS_NAV_TO_ALGINED_Y,
			MS_ATTR_FOCUSABLE | MS_ATTR_OSD_LAYER_0 | MS_ATTR_RADIO_BUTTON,
			{
				0,//decided by it's parent vscrolllist
				0,//decided by it's parent vscrolllist
				0,//decided by it's parent vscrolllist
				CHOICE_HEIGHT
			},
			_BtnIntroOperation,
			_BtnIntroFillOSDSeg,
			mpParamNull
		},
		(MS_X_Y_ALIGN *)&oButtonTextXYAlign,
		(MS_COLOR_SET *)&oBtnIntroTextColorSet,
		(MS_BITMAP_SET *)&oButtonBitmapSet,
		(OSD_TEXT *)	&oIntroText,
		FONT_0,
		NULL,
		NULL
	},
	MS_OP_NONE
};
#endif // D_GUI_TOOLKIT_ADD_INTRO

/***************************************************************************************
*	Descriptor 	: 	oProgramButtonDescriptor
*
*	Purpose	 	:	Descriptor of a toolkit button that adds selected items to a
*					program list.
 ****************************************************************************************/
#ifdef D_GUI_TOOLKIT_ADD_PROGRAM
static CONST OSD_TEXT oAddToProgramText = {
	OSDR_GetFormUniStr_OsdMessage,
	S_ADD_TO_PROGRAM
};
static CONST MS_DESCRIPTOR_BUTTON oProgramButtonDescriptor =
{// MS_DESCRIPTOR
	{
		{
			sizeof(MSO_BUTTON),
			MS_NAV_TO_ALGINED_Y,
			MS_ATTR_FOCUSABLE | MS_ATTR_OSD_LAYER_0,
			{
				0,//decided by it's parent vscrolllist
				0,//decided by it's parent vscrolllist
				0,//decided by it's parent vscrolllist
				CHOICE_HEIGHT
			},
			_BtnProgramOperation,
			_BtnProgramFillOSDSeg,
			mpParamNull
		},
		(MS_X_Y_ALIGN *)&oButtonTextXYAlign,
		(MS_COLOR_SET *)&oButtonTextColorSet,
		(MS_BITMAP_SET *)&oButtonBitmapSet,
		(OSD_TEXT *)	&oAddToProgramText,
		FONT_0,
		NULL,
		NULL
	},
	MS_OP_NONE
};
#endif // D_GUI_TOOLKIT_ADD_PROGRAM

/***************************************************************************************
*	Descriptor 	: 	oPlayModeChoiceDescriptor
*
*	Purpose	 	:	Descriptor of a toolkit choice for play back mode.
 ****************************************************************************************/
#ifdef D_GUI_CLIPS_PLAY_MODE
#ifdef D_INTRO_PLAYMODE
#define MAX_PLAYMODE_VALUES		3
#else
#define MAX_PLAYMODE_VALUES		4
#endif

static CONST MS_CHOICE_DATA aPlayModeValueTable[MAX_PLAYMODE_VALUES] =
{
	{PLAYMODE_NORMAL,		S_NORMAL	},
	{PLAYMODE_SHUFFLE,		S_SHUFFLE	},
	{PLAYMODE_RANDOM,		S_RANDOM},
#ifdef D_INTRO_PLAYMODE
	{PLAYMODE_INTRO,		S_MUSIC_INTRO}
#endif
};

static CONST MS_DESCRIPTOR_CHOICE oPlayModeChoiceDescriptor = 
{
	{// MS_DESCRIPTOR
		sizeof(MSO_CHOICE),
		MS_NAV_TO_ALGINED_Y,
		MS_ATTR_FOCUSABLE | MS_ATTR_OSD_LAYER_0,
		{
			0,//decided by it's parent vscrolllist
			0,//decided by it's parent vscrolllist
			0,//decided by it's parent vscrolllist
			CHOICE_HEIGHT
		},
		_PlayModeChoiceOperation,//ChoiceNoExpandingOperation,
		ChoiceFillOSDSeg,
		(UINT8*)&InitChoiceParam
	},
	NULL,
	S_MODE,
	MAX_PLAYMODE_VALUES,
	(MS_CHOICE_DATA*)&aPlayModeValueTable,
	CIDX_8,
	CIDX_8,
	CIDX_6,
	BMP_BG_3,
	_PlayModeChoiceAction
};
#endif//D_GUI_CLIPS_PLAY_MODE

#ifdef D_GUI_CLIPS_EDIT_MODE
/***************************************************************************************
*	Descriptor 	: 	oEditModeButtonDescriptor
*
*	Purpose	 	:	Descriptor of a toolkit button to switch edit mode on/off.
 ****************************************************************************************/
 static CONST OSD_TEXT oEditModeText = {
	OSDR_GetFormUniStr_OsdMessage,
	S_EDIT_MODE
};

static CONST MS_DESCRIPTOR_BUTTON oEditModeButtonDescriptor =
{// MS_DESCRIPTOR
	{
		{
			sizeof(MSO_BUTTON),
			MS_NAV_TO_ALGINED_Y,
			MS_ATTR_FOCUSABLE | MS_ATTR_OSD_LAYER_0 | MS_ATTR_RADIO_BUTTON,
			{
				0,//decided by it's parent vscrolllist
				0,//decided by it's parent vscrolllist
				0,//decided by it's parent vscrolllist
				CHOICE_HEIGHT
			},
			_EditModeOperation,//OBUTTON_Operation,
			OBUTTON_FillOSDSeg,
			mpParamNull
		},
		(MS_X_Y_ALIGN *)&oButtonTextXYAlign,
		(MS_COLOR_SET *)&oButtonTextColorSet,
		(MS_BITMAP_SET *)&oButtonBitmapSet,
		(OSD_TEXT *)	&oEditModeText,
		FONT_0,
		NULL,
		NULL
	},
	MS_OP_NONE
};
#endif// D_GUI_CLIPS_EDIT_MODE

#ifdef D_GUI_CLIPS_PROGRAM_VIEW
/***************************************************************************************
*	Descriptor 	: 	oViewButtonDescriptor
*
*	Purpose	 	:	Descriptor of a toolkit button to switch 
*						program view and browser view.
 ****************************************************************************************/
 #define	BROWSER_TITLE_INDEX 		0
 #define 	PROGRAM_TITLE_INDEX		1
 static CONST OSD_MESSAGES aViewTitle[] =
{
	S_BROWSER_VIEW,
	S_PROGRAM_VIEW
};

  static CONST OSD_TEXT oViewText = {
	OSDR_GetFormUniStr_OsdMessage,	S_NULL
};

static CONST MS_DESCRIPTOR_BUTTON oViewButtonDescriptor =
{// MS_DESCRIPTOR
	{
		{
			sizeof(MSO_MULTITITLE_BUTTON),
			MS_NAV_TO_ALGINED_Y,
			MS_ATTR_FOCUSABLE | MS_ATTR_OSD_LAYER_0 ,
			{
				0,//decided by it's parent vscrolllist
				0,//decided by it's parent vscrolllist
				0,//decided by it's parent vscrolllist
				CHOICE_HEIGHT
			},
			_ViewButtonOperation,//OBUTTON_Operation,
			OBUTTON_FillOSDSeg,
			mpParamNull
		},
		(MS_X_Y_ALIGN *)&oButtonTextXYAlign,
		(MS_COLOR_SET *)&oButtonTextColorSet,
		(MS_BITMAP_SET *)&oButtonBitmapSet,
		(OSD_TEXT *)	&oViewText,
		FONT_0,
		NULL,
		NULL
	},
	MS_OP_NONE
};
/***************************************************************************************
*	Descriptor 	: 	oAddClearProgramBtnDescriptor
*
*	Purpose	 	:	Descriptor of a toolkit button to add the selected item 
*						to program list.
 ****************************************************************************************/
 #define	ADD_TITLE_INDEX 				0
 #define 	CLEAR_TITLE_INDEX			1
 
 static CONST OSD_MESSAGES aAddClearTitle[] =
{
	S_ADD_TO_PROGRAM,
	S_CLEAR_PROGRAM
};
	
  static CONST OSD_TEXT oAddClearText = {
	OSDR_GetFormUniStr_OsdMessage,	S_NULL
};

static CONST MS_DESCRIPTOR_BUTTON oAddClearProgramBtnDescriptor =
{// MS_DESCRIPTOR
	{
		{
			sizeof(MSO_MULTITITLE_BUTTON),
			MS_NAV_TO_ALGINED_Y,
			MS_ATTR_FOCUSABLE | MS_ATTR_OSD_LAYER_0 ,
			{
				0,//decided by it's parent vscrolllist
				0,//decided by it's parent vscrolllist
				0,//decided by it's parent vscrolllist
				CHOICE_HEIGHT
			},
			_AddClearProgramOperation,//OBUTTON_Operation,
			OBUTTON_FillOSDSeg,
			mpParamNull
		},
		(MS_X_Y_ALIGN *)&oButtonTextXYAlign,
		(MS_COLOR_SET *)&oButtonTextColorSet,
		(MS_BITMAP_SET *)&oButtonBitmapSet,
		(OSD_TEXT *)	&oAddClearText,
		FONT_0,
		NULL,
		NULL
	},
	MS_OP_NONE
};
#endif//D_GUI_CLIPS_PROGRAM_VIEW

/***************************************************************************************
*	Descriptor 	: 	oSwitchSACDLayerButtonDescriptor
*
*	Purpose	 	:	Descriptor of a toolkit button to switch edit mode on/off.
 ****************************************************************************************/
#if D_SUPPORT_SACD
static CONST OSD_TEXT oSwitchSACDLayerEditModeText = {
	OSDR_GetFormUniStr_OsdMessage,
	S_SACD_HD_LAYER
};

static CONST MS_DESCRIPTOR_BUTTON oSwitchSACDLayerButtonDescriptor =
{// MS_DESCRIPTOR
	{
		{
			sizeof(MSO_BUTTON),
			MS_NAV_TO_ALGINED_Y,
			MS_ATTR_FOCUSABLE | MS_ATTR_OSD_LAYER_0 | MS_ATTR_RADIO_BUTTON,
			{
				0,//decided by it's parent vscrolllist
				0,//decided by it's parent vscrolllist
				0,//decided by it's parent vscrolllist
				CHOICE_HEIGHT
			},
			_BtnSwitchSACDLayerOperation,//OBUTTON_Operation,
			OBUTTON_FillOSDSeg,
			mpParamNull
		},
		(MS_X_Y_ALIGN *)&oButtonTextXYAlign,
		(MS_COLOR_SET *)&oButtonTextColorSet,
		(MS_BITMAP_SET *)&oButtonBitmapSet,
		(OSD_TEXT *)	&oSwitchSACDLayerEditModeText,
		FONT_0,
		NULL,
		NULL
	},
	MS_OP_MENU_SWITCH_SACD_LAYER
};
#endif// D_SUPPORT_SACD

/***************************************************************************************
*	Descriptor 	: 	oToolKitVListDescriptor
*
*	Purpose	 	:	Descriptor of the list (MSO_VLIST) containing the tools.
 ****************************************************************************************/
static CONST MS_PARAM_VLIST oToolKitListParam = {
	0,	// Total number of items in the list.
	0,	// Index of the first item.
	NBR_MSO_CHOICE_MAX_VISIBLE, // Visible
	0, // offset
	0
};

static CONST MS_DESCRIPTOR_VLIST oToolKitVListDescriptor =
{ // Container descriptor start
	{// Descriptor start
		sizeof(MSO_VLIST),
		MS_NAV_CONTAINER_WRAP_UD | MS_NAV_CONTAINER_GOTO_PREV_FOCUS | MS_NAV_CONTAINER_GOTO_TOP,
		MS_ATTR_CONTAINER | MS_ATTR_FOCUSABLE | MS_ATTR_OSD_LAYER_0 | MS_ATTR_VLIST_OFFSET_FIRSTITEM | MS_ATTR_VLIST_SCROLL_SINGLE_ITEM,
		{
		// This object is resized by it parent, so we don't care defining its position and dimensions
			0,0,0,0
		},
		_ToolkitVlistOperation,
		mpfFillOsdSegNull,
		(UINT8*)&oToolKitListParam
	},// Descriptor end
	maContentsNull,
	mwNbrContentsNull,
};

/***************************************************************************************
*	Descriptor 	: 	oToolKitDescriptor
*
*	Purpose	 	:	Descriptor of the toolkit. The toolkit is a MSO_VSCROLL_LIST object,
*					that contains an MSO_VLIST (descriptor oToolKitVListDescriptor) object
*					within it.
 ****************************************************************************************/
static CONST MS_DESCRIPTOR_VSCROLL_LIST oToolKitDescriptor =
{
	{ // Container descriptor start
		{ // Descriptor start
			sizeof(MSO_VSCROLL_LIST),
			MS_NAV_NULL,
			MS_ATTR_CONTAINER | MS_ATTR_FOCUSABLE | MS_ATTR_OSD_LAYER_1 | MS_ATTR_VSLIST_DISPLAY_BG_BMP | MS_ATTR_VSLIST_SCROLL_ARROW,
			{
				AREA_TOOLKIT_X,
				AREA_TOOLKIT_Y,
				AREA_TOOLKIT_W,
				AREA_TOOLKIT_H

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -