%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/share/hplip/ui5/__pycache__/
Upload File :
Create Path :
Current File : //usr/share/hplip/ui5/__pycache__/cleandialog.cpython-312.pyc

�

=	f1���ddlZddlZddl�ddlmZmZmZddlmZddl	�ddl
�ddl�ddl�ddl
mZdZdZdZdZd	Zd
ZdZdZdZd	ZdZd
�ZGd�dee�Zy)�N)�*)�device�utils�maint)�cups�)�	Ui_Dialogi�i����s7<ipdyn:JobType>cleaningVerificationPage</ipdyn:JobType>c��y)NT�r��#/usr/share/hplip/ui5/cleandialog.py�truer:s��rc��eZdZd�Zd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d	�Zd
�Zd�Z
d�Zd
�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zdd�Zefd�Zd�Zdd�Zy)�CleanDialogc�@�tj||�|j|�||_t|_d|_d|_d|_d|_	tdtdtdtdtdi|_t|j df|j"dfgt|j$df|j&df|j(dfgt|j*df|j,df|j.df|j0df|j2df|j.df|j4df|j6df|j.df|j(dfg
t|j*df|j,df|j.df|j0df|j2df|j.df|j4df|j6df|j.df|j(dfg
t|j*df|j,df|j.df|j0df|j2df|j.df|j4df|j6df|j.df|j(dfg
t|j*df|j,df|j.df|j0df|j2df|j.df|j4df|j6df|j.df|j(dfg
i|_|j;�t<j?d|j@�y)NFrrr)r)r
)r)!�QDialog�__init__�setupUi�
device_uri�CLEAN_TYPE_INITIAL�
clean_type�abort�	seq_index�step�step_max�CLEAN_TYPE_UNSUPPORTED�CLEAN_TYPE_PCL�CLEAN_TYPE_LIDIL�CLEAN_TYPE_PCL_WITH_PRINTOUT�CLEAN_TYPE_LEDM�	max_steps�
showStartPage�endStartPage�showFrontPanelPage�endFrontPanelPage�close�showLevel1Page�
endLevel1Page�doClean�showLevel2Page�
endLevel2Page�showLevel3Page�
endLevel3Page�seq�initUi�QTimer�
singleShot�nextSequence)�self�parentrs   rrzCleanDialog.__init__@s)������v�&����T��$���,�����
������	���
�-�q�$�q�&��2�Q�%�����'� $� 2� 2�D�9� $� 1� 1�4�8�)�
+�!%�!8�!8�$� ?�!%�!7�!7�� >�!%���T� 2�.�#�!�0�0�$�7�!�/�/��6�!�\�\�4�0�!�0�0�$�7�!�/�/��6�!�\�\�4�0�!�0�0�$�7�!�/�/��6�!�\�\�4�0�!�Z�Z��.�&�%�!�0�0�$�7�!�/�/��6�!�\�\�4�0�!�0�0�$�7�!�/�/��6�!�\�\�4�0�!�0�0�$�7�!�/�/��6�!�\�\�4�0�!�Z�Z��.�(�1�!�0�0�$�7�!�/�/��6�!�\�\�4�0�!�0�0�$�7�!�/�/��6�!�\�\�4�0�!�0�0�$�7�!�/�/��6�!�\�\�4�0�!�Z�Z��.�4�$�!�0�0�$�7�!�/�/��6�!�\�\�4�0�!�0�0�$�7�!�/�/��6�!�\�\�4�0�!�0�0�$�7�!�/�/��6�!�\�\�4�0�!�Z�Z��.�'�iA���H	
���
����!�T�.�.�/rc���|jjj|j�|jjj|j
�|jjj|j�|jjj|j�|jjdtjtfi�tjtjtj�|j r%|jj#|j �|j%t't)dd���y)N�
clean-type�hp_logo�128x128)�CancelButton�clicked�connect�CancelButton_clicked�
NextButton�NextButton_clicked�DeviceComboBox�DeviceUriComboBox_noDevices� DeviceUriComboBox_currentChanged�	setFilter�operator�ne�CLEAN_TYPE_NONE�signal�SIGINT�SIG_DFLr�setInitialDevice�
setWindowIcon�QIcon�load_pixmap�r6s rr2zCleanDialog.initUi�s������!�!�)�)�$�*C�*C�D������'�'��(?�(?�@����7�7�?�?��@`�@`�a����<�<�D�D�T�Ej�Ej�k����%�%�|�h�k�k�?�5S�&T�U��
�
�f�m�m�V�^�^�4��?�?����0�0����A�	
���5��Y�	�!B�C�Drc�$�|j�y�N)r5rPs rrAzCleanDialog.NextButton_clicked�s�����rc��		|j|j|j\}}|�|xjdz
c_�Cd|_g}|�|D]}	|j|���	tj|j�ddj|D�cgc]
}t|���c}��d��	||�|xjdz
c_|jry|jr|j���#t$rYywxYw#|j|�Y��xYwcc}w#t$rY�|wxYw#t$rt|�YywxYw)NrF�(�,�))r1rr�
IndexError�new_page�append�log�debug�__name__�join�repr�AttributeError�Error�
CheckDeviceUIrr))r6r1�params�t�p�xs      rr5zCleanDialog.nextSequence�s9���
�"�h�h�t���7����G���V��{����!�#���!�D�M��A��!��$�A�$������
�$�
��	�	�c�l�l�C�H�H�q�=Q�!�d�1�g�=Q�4R�S�T�
��Q��

�N�N�a��N��}�}���z�z��
�
��K���
��
��$�������>R��!�
��
��
�
��d�#��
�sS�)C>�D
�.+D*�D%�+D*�:D9�>	D
�	D
�
D"�%D*�*	D6�5D6�9E�Ec���|jt�|jj�}|dk(r|j	�y|jj�|j
t�y)Nr)�setCleanButton�BUTTON_NEXTrB�
setDevices�skipPage�updateUi�displayPage�
PAGE_START)r6�num_devicess  rr%zCleanDialog.showStartPage�sX�����K�(��)�)�4�4�6���!���M�M�O�����$�$�&�����$rc��tj|j�|_|jj	dt
�|_d|_tjd|jz�|j|j|_	tj|j�|_
y#t$rt|�YywxYw)Nr9���z
clean-type=%d)r�queryModelByURIr�mq�getrHrrrZr[r$r�Device�devr`rarPs rr&zCleanDialog.endStartPage�s����(�(����9����'�'�+�+�l�O�D�������	�	�/�D�O�O�3�4����t���7��
�	��}�}�T�_�_�5�D�H���	��$���	�s�$B7�7C�
Cc�X�|jt�|jt�yrR)rg�BUTTON_CLEANrl�PAGE_LEVEL_1rPs rr*zCleanDialog.showLevel1Page�s�����L�)�����&rc��yrRrrPs rr+zCleanDialog.endLevel1Page����rc�.�|jt�yrR)rl�PAGE_LEVEL_2rPs rr-zCleanDialog.showLevel2Page��������&rc��yrRrrPs rr.zCleanDialog.endLevel2Pagerzrc�.�|jt�yrR)rl�PAGE_LEVEL_3rPs rr/zCleanDialog.showLevel3Pager}rc��yrRrrPs rr0zCleanDialog.endLevel3Pagerzrc�X�|jt�|jt�yrR)rg�
BUTTON_FINISHrl�PAGE_FRONT_PANELrPs rr'zCleanDialog.showFrontPanelPages�����M�*����)�*rc��yrRrrPs rr(zCleanDialog.endFrontPanelPagerzrc��||_yrR)r)r6rs  rrDz,CleanDialog.DeviceUriComboBox_currentChangeds	��$��rc�Z�t||jd��|j�y)NzW<b>No devices that support printhead cleaning found.</b><p>Click <i>OK</i> to exit.</p>)�	FailureUI�_CleanDialog__trr)rPs rrCz'CleanDialog.DeviceUriComboBox_noDevicess���$��	�	�"{�|�}��
�
�rc�$�|j�yrR)r)rPs rr?z CleanDialog.CancelButton_clickeds���
�
�rc�z�		|jj�|jj��r|jtt
fvr�|dk(r@t
j|j�t
j|j��n�|dk(r@t
j|j�t
j|j��nut
j|j�t
j|j��n5|jtk(r�|dk(r@t
j|j�t
j|j��n�|dk(r@t
j|j�t
j|j��n�t
j|j�t
j|j��nX|jtk(�rDt
j |j�}d}t"|vrd}|dk(rat
j$|j�t
j&|j||�|dur�|j)|j*d�n�|dk(rat
j,|j�t
j&|j||�|durj|j)|j.d�nMt
j0|j�t
j&|j||�nt3|�	|j�|jj7�yy#t4$rt3|�Y�>wxYw#|j�|jj7�wwxYw)Nrr
TFz\Cleaning level 1 is Completed. 
Press "Cancel" to Finish. Press "Clean" for next level cleanz\Cleaning level 2 is Completed. 
Press "Cancel" to Finish. Press "Clean" for next level clean)ru�open�isIdleAndNoErrorrr r"r�
cleanType1�print_clean_test_page�
primeType1�wipeAndSpitType1r!�
cleanType2�
primeType2�wipeAndSpitType2r#�getCleanLedmCapacity�LEDM_CLEAN_VERIFY_PAGE_JOB�
cleanTypeLedm�cleanTypeVerify�setCustomMessage�Prompt_5�cleanTypeLedm1�Prompt_6�cleanTypeLedm2rar`r))r6�level�
IPCap_data�print_verification_pages    rr,zCleanDialog.doClean"s���?	!�:
(����
�
���8�8�,�,�.����>�&B�+D�D�!�A�:�!�,�,�T�X�X�6�!�7�7����A�"�a�Z�!�,�,�T�X�X�6�!�7�7����A�"�2�2�4�8�8�<�!�7�7����A����,<�<� �A�:�!�,�,�T�X�X�6�!�7�7����A�"�a�Z�!�,�,�T�X�X�6�!�7�7����A�"�2�2�4�8�8�<�!�7�7����A����O�;�%*�%?�%?����%I�
�26�/�5�Z�G�6;�3� �A�:�!�/�/����9�!�1�1�$�(�(�5�BY�Z�6�%�?� $� 5� 5�d�m�m�Eh�!i�"�a�Z�!�0�0����:�!�1�1�$�(�(�5�BY�Z�6�%�?� $� 5� 5�d�m�m�Eh�!i�"�0�0����:�!�1�1�$�(�(�5�BY�Z�"�$�'��x�x�#������ �$��w�
$��d�#�
$��v�x�x�#������ �$�s)�M7�L2N�7N�N�
N�N�)N:c��|j|j�|xjdz
c_d|_|jj	|�y)NrT)�updateStepTextrrX�
StackedWidget�setCurrentIndex)r6�pages  rrlzCleanDialog.displayPageis<�����D�I�I�&��	�	�Q��	���
����*�*�4�0rc�<�|xjdz
c_d|_y)NrF)rrXrPs rrjzCleanDialog.skipPageps���	�	�Q��	���
rNc���|�|js%|jjtd��y|jj|j	d|�d|j����y)N�zStep z of )r�StepText�setText�strr�)r6rds  rr�zCleanDialog.updateStepTextusG���9�D�M�M��M�M�!�!�#�b�'�*��M�M�!�!�$�)�)�q�$�-�-�,P�"Q�Rrc�<�|tk(r+|jj|jd��y|tk(r+|jj|jd��y|t
k(r+|jj|jd��yy)N�CleanzNext >�Finish)rwr@r�r�rhr�)r6�typs  rrgzCleanDialog.setCleanButton|sp���,���O�O�#�#�D�I�I�g�$6�7�
�K�
��O�O�#�#�D�I�I�h�$7�8�
�M�
!��O�O�#�#�D�I�I�h�$7�8�"rc�D�|j|j|��yrR)r�r�)r6�button�messages   rr�zCleanDialog.setCustomMessage�s�����t�y�y��)�*rc�0�tjd||�S)Nr)�qApp�	translate)r6�s�cs   r�__trzCleanDialog.__tr�s���~�~�m�A�a�0�0rrR)r\�
__module__�__qualname__rr2rAr5r%r&r*r+r-r.r/r0r'r(rDrCr?r,rlrjr�rwrgr�r�rrrrr?s���W0�tE�"�&�R	%��'�

�'�
�'�
�+�

�%��
�@!�N1��
S�".�9�+�1rr)rFrI�base.g�baserrr�prntr�
base.codes�ui_utils�PyQt5.QtCore�PyQt5.QtGui�cleandialog_baser	r�CLEAN_TYPE_TESTrmrxr|r�r�rwrhr�r�rrrrrr�<module>r�s��.�
��%�%������(�����
�
��������������
�U���
J1�'�9�J1r

Zerion Mini Shell 1.0