<?php

class FreeTvConfig
{
	const VOD_MOVIE_PAGE_SUPPORTED = true;
	const VOD_FAVORITES_SUPPORTED  = true;
	const TV_FAVORITES_SUPPORTED   = true;
	const CHANNEL_LIST_URL      = '';
	const ALL_CHANNEL_GROUP_CAPTION     = 'Все каналы';
	const ALL_CHANNEL_GROUP_ICON_PATH   = 'plugin_file://icons/all.png';
	const FAV_CHANNEL_GROUP_CAPTION     = 'Избранное';
	const FAV_CHANNEL_GROUP_ICON_PATH   = 'plugin_file://icons/fav.png';
	const FAV_MOVIES_CATEGORY_CAPTION   = 'Избранное';
	const FAV_MOVIES_CATEGORY_ICON_PATH = 'plugin_file://icons/fav_films.png';
	const SEARCH_MOVIES_CATEGORY_CAPTION   = 'Поиск';
	const SEARCH_MOVIES_CATEGORY_ICON_PATH = 'plugin_file://icons/search.png';
	const HISTORY_MOVIES_CATEGORY_CAPTION   = 'История';
	const HISTORY_MOVIES_CATEGORY_ICON_PATH = 'plugin_file://icons/history.png';

	public static function show_warning_mediateka_not_available()
	{
		return
			ActionFactory::show_message_dialog('В данный момент фильмотека недоступна!', array('Пожалуйста, наберитесь терпения и подождите,', 'автор уже ищет решение.', '', 'Спасибо за понимание!',''));
	}

	///////////////////////////////////////////////////////////////////////
	// Folder views.

	public static function GET_TV_GROUP_LIST_FOLDER_VIEWS()
	{
		return array(
			array
			(
				PluginRegularFolderView::async_icon_loading => false,

				PluginRegularFolderView::view_params => array
				(
					ViewParams::num_cols => 4,
					ViewParams::num_rows => 3,
					ViewParams::paint_details => false,
					ViewParams::paint_sandwich => true,
					ViewParams::sandwich_base => 'gui_skin://special_icons/sandwich_base.aai',
					ViewParams::sandwich_mask => 'cut_icon://{name=sandwich_mask}',
					ViewParams::sandwich_cover => 'cut_icon://{name=sandwich_cover}',
					ViewParams::sandwich_width => 245,
					ViewParams::sandwich_height => 140,
					ViewParams::sandwich_icon_upscale_enabled => true,
					ViewParams::sandwich_icon_keep_aspect_ratio => true,
				),

				PluginRegularFolderView::base_view_item_params => array
				(
					ViewItemParams::item_paint_icon => true,
					ViewItemParams::item_layout => HALIGN_CENTER,
					ViewItemParams::icon_valign => VALIGN_CENTER,
					ViewItemParams::item_paint_caption => false,
					ViewItemParams::icon_scale_factor => 1.25,
					ViewItemParams::icon_sel_scale_factor => 1.5,
				),

				PluginRegularFolderView::not_loaded_view_item_params => array (),
			),

			array
			(
				PluginRegularFolderView::async_icon_loading => false,

				PluginRegularFolderView::view_params => array
				(
					ViewParams::num_cols => 5,
					ViewParams::num_rows => 3,
					ViewParams::paint_details => false,
					ViewParams::paint_sandwich => true,
					ViewParams::sandwich_base => 'gui_skin://special_icons/sandwich_base.aai',
					ViewParams::sandwich_mask => 'cut_icon://{name=sandwich_mask}',
					ViewParams::sandwich_cover => 'cut_icon://{name=sandwich_cover}',
					ViewParams::sandwich_width => 235,
					ViewParams::sandwich_height => 150,
					ViewParams::sandwich_icon_upscale_enabled => true,
					ViewParams::sandwich_icon_keep_aspect_ratio => false,
				),

				PluginRegularFolderView::base_view_item_params => array
				(
					ViewItemParams::item_paint_icon => true,
					ViewItemParams::item_layout => HALIGN_CENTER,
					ViewItemParams::icon_valign => VALIGN_CENTER,
					ViewItemParams::item_paint_caption => false,
					ViewItemParams::icon_scale_factor => 1.25,
					ViewItemParams::icon_sel_scale_factor => 1.4,
				),

				PluginRegularFolderView::not_loaded_view_item_params => array (),
			),

			array
			(
				PluginRegularFolderView::async_icon_loading => false,

				PluginRegularFolderView::view_params => array
				(
					ViewParams::num_cols => 6,
					ViewParams::num_rows => 4,
					ViewParams::paint_details => false,
					ViewParams::paint_sandwich => true,
					ViewParams::sandwich_base => 'gui_skin://special_icons/sandwich_base.aai',
					ViewParams::sandwich_mask => 'cut_icon://{name=sandwich_mask}',
					ViewParams::sandwich_cover => 'cut_icon://{name=sandwich_cover}',
					ViewParams::sandwich_width => 200,
					ViewParams::sandwich_height => 120,
					ViewParams::sandwich_icon_upscale_enabled => true,
					ViewParams::sandwich_icon_keep_aspect_ratio => false,
				),

				PluginRegularFolderView::base_view_item_params => array
				(
					ViewItemParams::item_paint_icon => true,
					ViewItemParams::item_layout => HALIGN_CENTER,
					ViewItemParams::icon_valign => VALIGN_CENTER,
					ViewItemParams::item_paint_caption => false,
					ViewItemParams::icon_scale_factor => 1.25,
					ViewItemParams::icon_sel_scale_factor => 1.4,
				),

				PluginRegularFolderView::not_loaded_view_item_params => array (),
			),


		);
	}

	public static function GET_TV_CHANNEL_LIST_FOLDER_VIEWS()
	{
		return array(
////////////////////////////////
			array
			(
				PluginRegularFolderView::async_icon_loading => true,

				PluginRegularFolderView::view_params => array
				(
			ViewParams::num_cols => 1,
			ViewParams::num_rows => 10,
			ViewParams::paint_icon_selection_box=> true,
			ViewParams::paint_details => true,
			ViewParams::paint_details_box_background => true,
			ViewParams::paint_content_box_background => true,
			ViewParams::paint_scrollbar => true,
			ViewParams::paint_widget => true,
			ViewParams::paint_help_line => true,
			ViewParams::item_detailed_info_font_size => FONT_SIZE_SMALL,
			//ViewParams::background_path=> 'plugin_file://img/channels_bg.png',
			ViewParams::background_order => 0,
			ViewParams::item_detailed_info_text_color => 11,
			ViewParams::item_detailed_info_auto_line_break => true,
			ViewParams::optimize_full_screen_background => true,
			ViewParams::zoom_detailed_icon => true,
			//ViewParams::zoom_detailed_icon => false,
			//ViewParams::detailed_icon_scale_factor => 1.1,

				),

				PluginRegularFolderView::base_view_item_params => array
				(
			ViewItemParams::item_paint_icon => true,
			ViewItemParams::item_layout => HALIGN_LEFT,
			ViewItemParams::icon_valign => VALIGN_CENTER,
			ViewItemParams::icon_width => 50,
			ViewItemParams::icon_height => 50,
			ViewItemParams::icon_dx => 26,
			ViewItemParams::item_caption_font_size => FONT_SIZE_NORMAL,
			ViewItemParams::item_caption_width => 1060,
					ViewItemParams::icon_path => 'plugin_file://icons/channel_unset.png',
				),

				PluginRegularFolderView::not_loaded_view_item_params => array (),
			),
////////////////////////////////////////////////////
			array
			(
				PluginRegularFolderView::async_icon_loading => true,

				PluginRegularFolderView::view_params => array
				(
			ViewParams::num_cols => 2,
			ViewParams::num_rows => 10,
			ViewParams::paint_details => true,
			ViewParams::item_detailed_info_text_color => 11,
			ViewParams::item_detailed_info_auto_line_break => true,
			ViewParams::item_detailed_info_font_size => FONT_SIZE_SMALL,
			ViewParams::zoom_detailed_icon => true,
				),

				PluginRegularFolderView::base_view_item_params => array
				(
					ViewItemParams::item_paint_icon => true,
					ViewItemParams::item_layout => HALIGN_LEFT,
					ViewItemParams::icon_valign => VALIGN_CENTER,
					ViewItemParams::icon_dx => 10,
					ViewItemParams::icon_dy => -5,
					ViewItemParams::icon_width => 84,
					ViewItemParams::icon_height => 48,
					ViewItemParams::item_caption_width => 485,
					ViewItemParams::item_caption_font_size => FONT_SIZE_SMALL,
					ViewItemParams::icon_path => 'plugin_file://icons/channel_unset.png',
				),

				PluginRegularFolderView::not_loaded_view_item_params => array (),
			),
/////////////////////////////////////////////

			array
			(
				PluginRegularFolderView::async_icon_loading => true,

				PluginRegularFolderView::view_params => array
				(
					ViewParams::num_cols => 5,
					ViewParams::num_rows => 4,
					ViewParams::paint_details => false,
					ViewParams::paint_sandwich => true,
					ViewParams::sandwich_base => 'gui_skin://special_icons/sandwich_base.aai',
					ViewParams::sandwich_mask => 'cut_icon://{name=sandwich_mask}',
					ViewParams::sandwich_cover => 'cut_icon://{name=sandwich_cover}',
					ViewParams::sandwich_width => 245,
					ViewParams::sandwich_height => 140,
					ViewParams::sandwich_icon_upscale_enabled => true,
					ViewParams::sandwich_icon_keep_aspect_ratio => true,
				),

				PluginRegularFolderView::base_view_item_params => array
				(
					ViewItemParams::item_paint_icon => true,
					ViewItemParams::item_layout => HALIGN_CENTER,
					ViewItemParams::icon_valign => VALIGN_CENTER,
					ViewItemParams::item_paint_caption => false,
					ViewItemParams::icon_scale_factor => 1.0,
					ViewItemParams::icon_sel_scale_factor => 1.2,
					ViewItemParams::icon_path => 'plugin_file://icons/channel_unset.png'
				),

				PluginRegularFolderView::not_loaded_view_item_params => array (),
			),

			array
			(
				PluginRegularFolderView::async_icon_loading => true,

				PluginRegularFolderView::view_params => array
				(
					ViewParams::num_cols => 4,
					ViewParams::num_rows => 3,
					ViewParams::paint_details => false,
					ViewParams::paint_sandwich => true,
					ViewParams::sandwich_base => 'gui_skin://special_icons/sandwich_base.aai',
					ViewParams::sandwich_mask => 'cut_icon://{name=sandwich_mask}',
					ViewParams::sandwich_cover => 'cut_icon://{name=sandwich_cover}',
					ViewParams::sandwich_width => 245,
					ViewParams::sandwich_height => 140,
					ViewParams::sandwich_icon_upscale_enabled => true,
					ViewParams::sandwich_icon_keep_aspect_ratio => true,
				),

				PluginRegularFolderView::base_view_item_params => array
				(
					ViewItemParams::item_paint_icon => true,
					ViewItemParams::item_layout => HALIGN_CENTER,
					ViewItemParams::icon_valign => VALIGN_CENTER,
					ViewItemParams::item_paint_caption => true,
					ViewItemParams::icon_scale_factor => 1.25,
					ViewItemParams::icon_sel_scale_factor => 1.5,
					ViewItemParams::icon_path => 'plugin_file://icons/channel_unset.png',
				),

				PluginRegularFolderView::not_loaded_view_item_params => array (),
			),

			array
			(
				PluginRegularFolderView::async_icon_loading => true,

				PluginRegularFolderView::view_params => array
				(
					ViewParams::num_cols => 4,
					ViewParams::num_rows => 4,
					ViewParams::paint_details => false,
					ViewParams::paint_sandwich => true,
					ViewParams::sandwich_base => 'gui_skin://special_icons/sandwich_base.aai',
					ViewParams::sandwich_mask => 'cut_icon://{name=sandwich_mask}',
					ViewParams::sandwich_cover => 'cut_icon://{name=sandwich_cover}',
					ViewParams::sandwich_width => 245,
					ViewParams::sandwich_height => 140,
					ViewParams::sandwich_icon_upscale_enabled => true,
					ViewParams::sandwich_icon_keep_aspect_ratio => true,
				),

				PluginRegularFolderView::base_view_item_params => array
				(
					ViewItemParams::item_paint_icon => true,
					ViewItemParams::item_layout => HALIGN_CENTER,
					ViewItemParams::icon_valign => VALIGN_CENTER,
					ViewItemParams::item_paint_caption => false,
					ViewItemParams::icon_scale_factor => 1.0,
					ViewItemParams::icon_sel_scale_factor => 1.2,
					ViewItemParams::icon_path => 'plugin_file://icons/channel_unset.png',
				),

				PluginRegularFolderView::not_loaded_view_item_params => array (),
			),

			array
			(
				PluginRegularFolderView::async_icon_loading => true,

				PluginRegularFolderView::view_params => array
				(
					ViewParams::num_cols => 3,
					ViewParams::num_rows => 3,
					ViewParams::paint_details => false,
					ViewParams::paint_sandwich => true,
					ViewParams::sandwich_base => 'gui_skin://special_icons/sandwich_base.aai',
					ViewParams::sandwich_mask => 'cut_icon://{name=sandwich_mask}',
					ViewParams::sandwich_cover => 'cut_icon://{name=sandwich_cover}',
					ViewParams::sandwich_width => 245,
					ViewParams::sandwich_height => 140,
					ViewParams::sandwich_icon_upscale_enabled => true,
					ViewParams::sandwich_icon_keep_aspect_ratio => true,
				),

				PluginRegularFolderView::base_view_item_params => array
				(
					ViewItemParams::item_paint_icon => true,
					ViewItemParams::item_layout => HALIGN_CENTER,
					ViewItemParams::icon_valign => VALIGN_CENTER,
					ViewItemParams::item_paint_caption => false,
					ViewItemParams::icon_scale_factor => 1.25,
					ViewItemParams::icon_sel_scale_factor => 1.5,
					ViewItemParams::icon_path => 'plugin_file://icons/channel_unset.png',
				),

				PluginRegularFolderView::not_loaded_view_item_params => array (),
			)
		);
	}

	///////////////////////////////////////////////////////////////////////////////////////////////////
	public static function GET_VOD_MOVIE_LIST_FOLDER_VIEWS($bg_idx)
	{
		return array(
			array
			(
				PluginRegularFolderView::async_icon_loading => true,
				PluginRegularFolderView::view_params => array
				(
					ViewParams::num_cols => 5,
					ViewParams::num_rows => 3,
					ViewParams::paint_details => true,
					ViewParams::paint_path_box => false,
					ViewParams::zoom_detailed_icon => true, //мой размер иконок
					//ViewParams::detailed_icon_scale_factor => 2.0,
					ViewParams::paint_item_info_in_details => true,
					//ViewParams::item_detailed_info_font_size => FONT_SIZE_SMALL,
					ViewParams::item_detailed_info_font_size => FONT_SIZE_NORMAL,
					ViewParams::paint_sandwich => true,
					ViewParams::sandwich_base => 'gui_skin://special_icons/sandwich_base.aai',
					ViewParams::sandwich_mask => 'cut_icon://{name=sandwich_mask}',
					ViewParams::sandwich_cover => 'cut_icon://{name=sandwich_cover}',
					//ViewParams::sandwich_icon_upscale_enabled => true,
					//ViewParams::sandwich_icon_keep_aspect_ratio => true,
					ViewParams::paint_item_info_in_details => true,
					ViewParams::item_detailed_info_auto_line_break => true,
					ViewParams::item_detailed_info_title_color => 10,
					ViewParams::item_detailed_info_text_color => 15,
					//ViewParams::background_path=> 'plugin_file://icons/bg4.jpg',
					ViewParams::background_path => empty($bg_idx)? 'plugin_file://icons/bg4.jpg' : 'plugin_file://icons/bg5.jpg',
					ViewParams::background_order => 0,
					ViewParams::background_height => 1080,
					ViewParams::background_width => 1920,
					ViewParams::optimize_full_screen_background => true,
				),

				PluginRegularFolderView::not_loaded_view_item_params => array
				(
					ViewItemParams::item_paint_icon => true,
					ViewItemParams::icon_width => 167,
					ViewItemParams::icon_height => 250,
					ViewItemParams::icon_path => 'plugin_file://icons/mov_unset.png'
				),

				PluginRegularFolderView::base_view_item_params => array
				(
					ViewItemParams::item_paint_icon => true,
					ViewItemParams::icon_sel_scale_factor =>1.1,
					ViewItemParams::icon_path => 'gui_skin://small_icons/movie.aai',
					ViewItemParams::item_layout => HALIGN_LEFT,
					ViewItemParams::icon_valign => VALIGN_CENTER,
					ViewItemParams::icon_dx => 10,
					ViewItemParams::icon_dy => -5,
					ViewItemParams::icon_width => 167,
					ViewItemParams::icon_height => 250,
					ViewItemParams::icon_sel_margin_top => 0,
					ViewItemParams::item_paint_caption => false,
					ViewItemParams::item_caption_width => 1100
				),
			),
			/////////////////////////////////////////////
			array
			(
				PluginRegularFolderView::async_icon_loading => true,
				PluginRegularFolderView::view_params => array
				(
					ViewParams::num_cols => 1,
					ViewParams::num_rows => 15,
					ViewParams::paint_path_box => false,
					ViewParams::paint_details => true,
					ViewParams::zoom_detailed_icon => true,
					ViewParams::detailed_icon_scale_factor => 2.0,
					ViewParams::paint_item_info_in_details => true,
					ViewParams::item_detailed_info_auto_line_break => true,
					ViewParams::item_detailed_info_title_color => 10,
					ViewParams::item_detailed_info_text_color => 15,
					ViewParams::background_order => 0,
					ViewParams::background_height => 1080,
					ViewParams::background_width => 1920,
					ViewParams::paint_item_info_in_details => true,
					ViewParams::paint_sandwich => false,
					ViewParams::sandwich_base => 'gui_skin://special_icons/sandwich_base.aai',
					ViewParams::sandwich_mask => 'cut_icon://{name=sandwich_mask}',
					ViewParams::sandwich_cover => 'cut_icon://{name=sandwich_cover}',
					//ViewParams::item_detailed_info_font_size => FONT_SIZE_SMALL,
					ViewParams::item_detailed_info_font_size => FONT_SIZE_NORMAL,
					ViewParams::sandwich_width => 190,
					ViewParams::sandwich_height => 290,
					//ViewParams::background_path=> 'plugin_file://icons/bg4.jpg',

					ViewParams::background_path => empty($bg_idx)? 'plugin_file://icons/bg4.jpg' : 'plugin_file://icons/bg5.jpg',
					ViewParams::sandwich_icon_upscale_enabled => true,
					ViewParams::sandwich_icon_keep_aspect_ratio => true,
				),
				PluginRegularFolderView::not_loaded_view_item_params => array
				(
					ViewItemParams::item_paint_icon => true,
					ViewItemParams::icon_width => 50,
					ViewItemParams::icon_height => 50,
					ViewItemParams::icon_path => 'plugin_file://icons/mov_unset.png'
				),
				PluginRegularFolderView::base_view_item_params => array
				(
					ViewItemParams::item_paint_icon => true,
					ViewItemParams::icon_sel_scale_factor =>1.2,
					ViewItemParams::icon_path => 'gui_skin://small_icons/movie.aai',
					ViewItemParams::item_layout => HALIGN_LEFT,
					ViewItemParams::icon_valign => VALIGN_CENTER,
					ViewItemParams::icon_dx => 10,
					ViewItemParams::icon_dy => -5,
					ViewItemParams::icon_width => 50,
					ViewItemParams::icon_height => 50,
					ViewItemParams::icon_sel_margin_top => 0,
					ViewItemParams::item_paint_caption => true,
					ViewItemParams::item_caption_width => 1100
				),
			),
		);
	}

////////////////////////////////////////////////////////////////////////////////////////////////////
	public static function GET_VOD_CATEGORY_LIST_FOLDER_VIEWS()
	{
		return array(
			array
			(
				PluginRegularFolderView::async_icon_loading => false,
				PluginRegularFolderView::view_params => array
				(
					ViewParams::num_cols => 1,
								ViewParams::num_rows => 12,
								ViewParams::paint_details => true,
					ViewParams::background_order => 0,
					ViewParams::background_height => 1080,
					ViewParams::background_width => 1920,
					ViewParams::background_path=> 'plugin_file://icons/bg4.jpg',
					ViewParams::optimize_full_screen_background => true,
				),
				PluginRegularFolderView::base_view_item_params => array
				(
								ViewItemParams::item_paint_icon => true,
					ViewItemParams::item_layout => HALIGN_LEFT,
					ViewItemParams::icon_valign => VALIGN_CENTER,
					ViewItemParams::icon_dx => 20,
					ViewItemParams::icon_dy => -5,
					ViewItemParams::icon_width => 50,
								ViewItemParams::icon_height => 55,
					ViewItemParams::item_caption_font_size => FONT_SIZE_NORMAL,
					ViewItemParams::item_caption_width => 1100
				),
						 PluginRegularFolderView::not_loaded_view_item_params => array (),
			),
		);
	}


	public static function GET_TEXT_ONE_COL_VIEWS() {
		return array(
				array (
						PluginRegularFolderView::async_icon_loading => false,
						PluginRegularFolderView::view_params => array
							(
				ViewParams::num_cols => 1,
				ViewParams::num_rows => 12,
				ViewParams::paint_details => true,
				ViewParams::background_order => 0,
				ViewParams::background_height => 1080,
				ViewParams::background_width => 1920,
				ViewParams::optimize_full_screen_background => true
						),
						PluginRegularFolderView::base_view_item_params =>
						array
							(
				ViewItemParams::icon_path => 'missing://',
				ViewItemParams::item_layout => HALIGN_LEFT,
				ViewItemParams::icon_valign => VALIGN_CENTER,
				ViewItemParams::icon_dx => 20,
				ViewItemParams::icon_dy => -5,
				ViewItemParams::item_caption_font_size => FONT_SIZE_NORMAL,
				ViewItemParams::item_caption_width => 1550
						),
						PluginRegularFolderView::not_loaded_view_item_params => array(),
					),
			);
	}

////////////////////////////////////////////////////////////////////////////////////////////////////


}