§
   ¶3/^ù˜‘ã                   ó€   — d Z ddlZddlZddlZddlZddlmZ d„ Zd„ Z G d„ de	¦  «        Z
 G d„ d	e¦  «        Zd
„ ZdS )aÐ  Pages over the Home sections (the media detail, the genre page) belong to the section they were opened in:
Window(Home).Property(milionar.<page>.owner) = its menu item, and the skin shows the page only while the menu shows that
section (gen_cinema.OVERLAYS). A trip to the menu or another section keeps the page where it was.

A page opens at once and fills while the user watches (Loading): never a click without an answer, never the content of
the previous page.é    N)ÚProgressc                  ó*   — t          j        d¦  «        S )zVThe section the Home menu shows (its menu item id); '' while another window is active.z%Container(9000).ListItem.Property(id))ÚxbmcÚgetInfoLabel© ó    ú\/Users/chudy/Library/Application Support/Kodi/addons/plugin.video.milionar/wcs/skin/pages.pyÚ	menu_itemr
      s   € åÔÐDÑEÔEÐEr   c                 ó²   — t          j        d¦  «        }|                     | dz   ¦  «        dk    o'|                     | dz   ¦  «        t          ¦   «         k    S )zkThe page with the Window(Home) property prefix `prefix` (milionar.genre.) is open in the section on screen.é'  ÚactiveÚtrueÚowner)ÚxbmcguiÚWindowÚgetPropertyr
   )ÚprefixÚhomes     r	   Úherer      sT   € åŒ>˜%Ñ Ô €DØ×Ò˜F XÑ-Ñ.Ô.°&Ò8Ðn¸T×=MÒ=MÈfÐW^ÑN^Ñ=_Ô=_ÕclÑcnÔcnÒ=nÐnr   c                   ó   — e Zd ZdZdS )ÚStaleug   A newer load of the same page (another title, another filter, ZpÄ›t) took over: this one stops quietly.N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   r	   r   r      s   € € € € € ØqÐqÐqÐqr   r   c                   ó6   — e Zd ZdZd„ Zd„ Zd„ Zd„ Zd„ Zd„ Z	dS )	ÚLoadingaä  A load of a page that is already on screen. <prefix>loading holds the id of the newest load: while it is set
    and the page has no row yet the skin draws Kodi's spinner where the rows will be (gen_cinema.LOADING_SPINNER), and
    Kodi's background progress names the step from the first moment. A newer load (or cancel) replaces the id, so
    every later step of this one raises Stale and it never writes over the page (a step reported from a worker thread
    only stops showing).c                 óø   — ||c| _         | _        t          j        ¦   «         j        d d…         | _        t          |¦  «        | _        t          j	        d¦  «        | _
        t          j        ¦   «         | _        d S )Né   r   )r   ÚmessageÚuuidÚuuid4ÚhexÚidr   Úprogressr   r   r   Ú	threadingÚ	get_identÚthread)Úselfr   Úheadingr    s       r	   Ú__init__zLoading.__init__'   s_   € Ø$*¨GÐ!ˆŒ�T”\Ý”*‘,”,Ô" 3 B 3Ô'ˆŒÝ  Ñ)Ô)ˆŒÝ”N 5Ñ)Ô)ˆŒ	ÝÔ)Ñ+Ô+ˆŒˆˆr   c                 óX   — | j                              | j        dz   ¦  «        | j        k    S ©NÚloading)r   r   r   r$   ©r)   s    r	   ÚcurrentzLoading.current.   s&   € ØŒy×$Ò$ T¤[°9Ñ%<Ñ=Ô=ÀÄÒHÐHr   c                 óJ   — |                       ¦   «         st          ¦   «         ‚d S ©N)r0   r   r/   s    r	   ÚcheckzLoading.check1   s%   € Ø�|Š|‰~Œ~ð 	Ý‘'”'ˆMð	ð 	r   c                 óÊ   — t          j        ¦   «         | j        k    r|                      ¦   «          n|                      ¦   «         sd S | j                             ||¦  «         d S r2   )r&   r'   r(   r3   r0   r%   Úupdate)r)   Úpercentr    s      r	   r5   zLoading.update5   sZ   € ÝÔÑ Ô  D¤KÒ/Ð/Ø�JŠJ‰LŒLˆLˆLØ—’‘”ð 	ØˆFØŒ×Ò˜W gÑ.Ô.Ð.Ð.Ð.r   c                 ó–   — | j                              | j        dz   | j        ¦  «         | j                             d| j        ¦  «         | S )Nr.   r   )r   ÚsetPropertyr   r$   r%   r5   r    r/   s    r	   Ú	__enter__zLoading.__enter__<   sB   € ØŒ	×Ò˜dœk¨IÑ5°t´wÑ?Ô?Ð?ØŒ×Ò˜Q ¤Ñ-Ô-Ð-Øˆr   c                 ó²   — | j                              ¦   «          |                      ¦   «         r"| j                             | j        dz   ¦  «         |t          u S r-   )r%   Úcloser0   r   ÚclearPropertyr   r   )r)   Úexc_typeÚ_excÚ_tbs       r	   Ú__exit__zLoading.__exit__A   sN   € ØŒ×ÒÑÔÐØ�<Š<‰>Œ>ð 	=ØŒI×#Ò# D¤K°)Ñ$;Ñ<Ô<Ð<Ø�5Ð Ð r   N)
r   r   r   r   r+   r0   r3   r5   r9   r@   r   r   r	   r   r       s{   € € € € € ðð ð,ð ,ð ,ðIð Ið Iðð ð ð/ð /ð /ðð ð ð
!ð !ð !ð !ð !r   r   c                 óZ   — t          j        d¦  «                             | dz   ¦  «         dS )zELeaving the page: a load still running for it stops at its next step.r   r.   N)r   r   r<   )r   s    r	   ÚcancelrB   H   s+   € å„N�5ÑÔ×'Ò'¨°Ñ(:Ñ;Ô;Ð;Ð;Ð;r   )r   r&   r!   r   r   Úwcs.genres.progressr   r
   r   Ú	Exceptionr   Úobjectr   rB   r   r   r	   ú<module>rF      sä   ððð ð Ð Ð Ð Ø €€€à €€€Ø €€€à (Ð (Ð (Ð (Ð (Ð (ðFð Fð Fð
oð oð oðrð rð rð rð rˆIñ rô rð rð%!ð %!ð %!ð %!ð %!ˆfñ %!ô %!ð %!ðP<ð <ð <ð <ð <r   