#-*- coding: utf-8 -*-
from django.db import models

USOS_INFO = {    
   "Jogos"     : [2],   
   "Blu-Ray"   : [1],
   "HDTV"      : [2],    
   "TV Aberta" : [3],
   "TV a cabo" : [3], 
   "DVD"       : [3],       
}

USOS_PESOS = { key : peso[0] for (key,peso) in  USOS_INFO.items() }

RESOLUCAO_PESOS ={
   'Normal'  : 3, 
   'HD'      : 2, 
   'Full HD' : 1,               
}

USOS_CHOICES = [
   ( "DVD",       "DVD",       "img/dvd_icon.png"),
   ( "Blu-Ray",   "Blu-Ray",  "img/blu-ray_icon.png"),
   ( "HDTV",      "HDTV",      "img/HD_icon.png"),
   ( "TV Aberta", "TV Aberta", "img/tva_con.png" ),
   ( "TV a cabo", "TV a cabo", "img/tvc_icon.png" ),
   ( "Jogos",     "Jogos",     "img/jogos2_icon.png" ),
]

APARELHOS_INFO = {
 "Blu-Ray"      : ["HDMI",       "img/blu-ray_icon.png" ], 
 "DVD"          : ["Conexão AV", "img/dvd_icon.png" ],
 "Playstation"  : ["Conexão AV", "img/play_icon.png" ], 
 "Xbox"         : ["Conexão AV", "img/xbox_icon.png" ],
 "Wii U"        : ["HDMI",       "img/wii_icon.png" ], 
 "PC/Notebook"  : ["RGB",        "img/pc_icon.png" ],
 "TV a cabo"    : ["Conexão AV", "img/tvc_icon.png" ],
 "TV a cabo HD" : ["HDMI",       "img/HD_icon.png" ],
}

APARELHOS_CHOICES = ( (key, info[1]) for (key,info) in APARELHOS_INFO.items() )
