%PDF- %PDF-
Mini Shell

Mini Shell

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

�

=	fo9����ddlZddlZddl�ddlmZmZmZddlmZddl	�ddl
mZddl�ddl
�ddl�ddlmZdZd	ZdZdZd
ZdZdZd
ZdZdZdZd
Zd�ZGd�dee�Zy)�N)�*)�device�utils�maint)�cups)�
to_unicode�)�	Ui_Dialogi�i������c��y)NT�r��&/usr/share/hplip/ui5/colorcaldialog.py�truer;s��rc���eZdZd�Zd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d	�Zd
�Zd�Z
d�Zd
�Zd�Zd�Zdd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd d�Zefd�Zd d�Z y)!�ColorCalDialogc�	��tj�|��j��|�_t�_d\�_�_d�_d�_	d�_
d�_g�_d�_
tdtdt dt"dt$dt&dt(dt*di�_t�j.df�j0dfgt�j2df�j4df�j6dfgt�j8df�j:df�j<dft>j@�fd�ff�jBtDff�jFdf�jHdft>jJ�fd��fd�ff�j6dfg	t �jLdf�j:df�j<dft>j@�fd	�ff�jBtDff�jNdf�jPdft>jR�fd
��fd�ff�j6dfg	t"�jTdf�j:df�j<dft>jV�fd�ff�jXd
f�jZdf�jBtDff�jXdf�jZdft>j\�fd��fd��fd�ff�j6dfgt$�j:df�j<dft>j^�fd�ff�jBtDff�j`df�jbdft>jd�fd��fd�ff�j:df�j<dft>jf�fd�ff�j6dfgt&�jBtDff�j:df�j<dft>jh�fd�d�ff�j`df�jbdf�j6dfgt(�jBtDff�j:df�j<dft>jj�fd�d�ff�j6dfgt*�jBtDff�j:df�j<dft>jl�fd�d�ff�j6dfgi	�_7�jq�trjud�jv�y)N)rrr	Frrc����jS�N��dev��selfs�r�<lambda>z)ColorCalDialog.__init__.<locals>.<lambda>h����T�X�X�rc����jSrrrs�rrz)ColorCalDialog.__init__.<locals>.<lambda>lrrc����jSr��valuers�rrz)ColorCalDialog.__init__.<locals>.<lambda>l����W[�Wa�Wa�rc����jSrrrs�rrz)ColorCalDialog.__init__.<locals>.<lambda>trrc����jSrrrs�rrz)ColorCalDialog.__init__.<locals>.<lambda>xrrc����jSrr"rs�rrz)ColorCalDialog.__init__.<locals>.<lambda>xr$rc����jSrrrs�rrz)ColorCalDialog.__init__.<locals>.<lambda>�rr)�A�)r))�Br*)r+c����jSrrrs�rrz)ColorCalDialog.__init__.<locals>.<lambda>�rrc����jSr)�ars�rrz)ColorCalDialog.__init__.<locals>.<lambda>�s���W[�W]�W]�rc����jSr)�brs�rrz)ColorCalDialog.__init__.<locals>.<lambda>�s���T�V�V�rc����jSrrrs�rrz)ColorCalDialog.__init__.<locals>.<lambda>�rrc����jSrrrs�rrz)ColorCalDialog.__init__.<locals>.<lambda>�rrc����jSr)�valuesrs�rrz)ColorCalDialog.__init__.<locals>.<lambda>�s���W[�Wb�Wb�rc����jSrrrs�rrz)ColorCalDialog.__init__.<locals>.<lambda>�rrc����jSrrrs�rrz)ColorCalDialog.__init__.<locals>.<lambda>�����t�x�x�rc��tSr�rrrrrz)ColorCalDialog.__init__.<locals>.<lambda>����QU�rc����jSrrrs�rrz)ColorCalDialog.__init__.<locals>.<lambda>�r7rc��tSrr9rrrrz)ColorCalDialog.__init__.<locals>.<lambda>�r:rc����jSrrrs�rrz)ColorCalDialog.__init__.<locals>.<lambda>�r7rc��tSrr9rrrrz)ColorCalDialog.__init__.<locals>.<lambda>�r:r)<�QDialog�__init__�setupUi�
device_uri�COLOR_CAL_TYPE_INITIAL�color_cal_typer.r0�step�abort�	seq_indexr#r4�step_max�COLOR_CAL_TYPE_UNSUPPORTED�COLOR_CAL_TYPE_DESKJET_450�COLOR_CAL_TYPE_MALIBU_CRICK�(COLOR_CAL_TYPE_STRINGRAY_LONGBOW_TORNADO�COLOR_CAL_TYPE_CONNERY�COLOR_CAL_TYPE_COUSTEAU�COLOR_CAL_TYPE_CARRIER�COLOR_CAL_TYPE_TYPHOON�	max_steps�
showStartPage�endStartPage�showFrontPanelPage�endFrontPanelPage�close�colorCalType1PenCheck�showLoadPaperPage�endLoadPaperPager�colorCalType1Phase1�setColorCalButton�BUTTON_CALIBRATE�showDeskjet450Page�endDeskjet450Page�colorCalType1Phase2�colorCalType2PenCheck�	showCrick�endCrick�colorCalType2Phase2�colorCalType3PenCheck�colorCalType3Phase1�showLBowPage�endLBowPage�colorCalType3Phase2�colorCalType4Phase1�showConneryPage�endConneryPage�colorCalType4Phase2�colorCalType4Phase3�
colorCalType5�
colorCalType6�
colorCalType7�seq�initUi�QTimer�
singleShot�nextSequence)r�parentrBs`  rr@zColorCalDialog.__init__@s��������v�&����T��$���4�����������	���
������
������
�/��.��/�!�<�q�*�Q�+�a�*�Q�*�Q�	���+� $� 2� 2�D�9� $� 1� 1�4�8�-�
/�!%�!8�!8�$� ?�!%�!7�!7�� >�!%���T� 2�2&�/�!%�!;�!;�T� B�!%�!7�!7�� >�!%�!6�!6�� =�!&�!:�!:�=M�<O� P�!%�!7�!7�:J�9L� M�!%�!8�!8�$� ?�!%�!7�!7�� >�!&�!:�!:�=M�Oa�<b� c�!%���T� 2�
2&�0�!%�!;�!;�T� B�!%�!7�!7�� >�!%�!6�!6�� =�!&�!:�!:�=M�<O� P�!%�!7�!7�:J�9L� M�!%���� 6�!%���� 5�!&�!:�!:�=M�Oa�<b� c�!%���T� 2�
3&�=�!%�!;�!;�T� B�!%�!7�!7�� >�!%�!6�!6�� =�!&�!:�!:�=M�<O� P�!%�!2�!2�I� >�!%�!1�!1�6� :�!%�!7�!7�:J�9L� M�!%�!2�!2�I� >�!%�!1�!1�6� :�!&�!:�!:�=M�~�=K�=M�!N�!%���T� 2�
@&�+�!%�!7�!7�� >�!%�!6�!6�� =�!&�!:�!:�=M�<O� P�!%�!7�!7�:J�9L� M�!%�!5�!5�t� <�!%�!4�!4�d� ;�!&�!:�!:�=M�Ob�<c� d�!%�!7�!7�� >�!%�!6�!6�� =�!&�!:�!:�=M�<O� P�!%���T� 2�.&�,�!%�!7�!7�:J�9L� M�!%�!7�!7�� >�!%�!6�!6�� =�!&�!4�!4�7G��6V� W�!%�!5�!5�t� <�!%�!4�!4�d� ;�!%���T� 2�/&�+�!%�!7�!7�:J�9L� M�!%�!7�!7�� >�!%�!6�!6�� =�!&�!4�!4�7G��6V� W�!%���T� 2�.&�+�!%�!7�!7�:J�9L� M�!%�!7�!7�� >�!%�!6�!6�� =�!&�!4�!4�7G��6V� W�!%���T� 2�.&�gZ
���z	
���
����!�T�.�.�/rc��|jjj|j�|jjj|j
�|jjj|j�|jjj|j�|jjdtjdfi�tjtjtj�|jr%|jj!|j�|j#t%t'dd���|j)�y)N�color-cal-typer�hp_logo�128x128)�CancelButton�clicked�connect�CancelButton_clicked�
NextButton�NextButton_clicked�DeviceComboBox�DeviceUriComboBox_noDevices� DeviceUriComboBox_currentChanged�	setFilter�operator�gt�signal�SIGINT�SIG_DFLrB�setInitialDevice�
setWindowIcon�QIcon�load_pixmap�updateStepTextrs rrrzColorCalDialog.initUi�s�����!�!�)�)�$�*C�*C�D������'�'��(?�(?�@����7�7�?�?��@`�@`�a����<�<�D�D�T�Ej�Ej�k����%�%�'7�(�+�+�q�9I�&J�K��
�
�f�m�m�V�^�^�4��?�?����0�0����A�	
���5��Y�	�!B�C�D����rc�Z�t||jd��|j�y)Nz^<b>No devices that support print cartridge alignment found.</b><p>Click <i>OK</i> to exit.</p>)�	FailureUI�_ColorCalDialog__trrVrs rr�z*ColorCalDialog.DeviceUriComboBox_noDevices�s(���$��	�	�#C�D�	E��
�
�rc��||_yr)rB)rrBs  rr�z/ColorCalDialog.DeviceUriComboBox_currentChanged�s	��$��rc�$�|j�yr)rVrs rr~z#ColorCalDialog.CancelButton_clicked�s���
�
�rc�$�|j�yr)rurs rr�z!ColorCalDialog.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)Nr	F�(�,�))rqrDrG�
IndexError�new_page�append�log�debug�__name__�join�repr�AttributeError�Error�
CheckDeviceUIrFrV)rrq�params�t�p�xs      rruzColorCalDialog.nextSequence�s;���
�"�h�h�t�':�':�;�D�N�N�K���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��|jjd�|jj�}|dk(r|j	�y|jj�|j
t�y)NFr	)�
BackButton�
setEnabledr��
setDevices�skipPage�updateUi�displayPage�
PAGE_START)r�num_devicess  rrRzColorCalDialog.showStartPages\�����"�"�5�)��)�)�4�4�6���!���M�M�O�����$�$�&�����$rc��tj|j�|_|jj	dt
�|_d|_tjd|jz�|j|j|_	tj|j�|_
y#t$rt|�YywxYw)Nrx���zcolor-cal-type=%d)r�queryModelByURIrB�mq�get�COLOR_CAL_TYPE_NONErDrGr�r�rQrH�Devicerr�r�rs rrSzColorCalDialog.endStartPages����(�(����9���"�g�g�k�k�*:�<O�P������	�	�	�%��(;�(;�;�<����t�':�':�;��
�	��}�}�T�_�_�5�D�H���	��$���	�s�$B7�7C�
Cc�b�|jj�|jt�yr)�	LoadPaperr�r��PAGE_LOAD_PAPERrs rrXz ColorCalDialog.showLoadPaperPage%s �������!�����)rc��yrrrs rrYzColorCalDialog.endLoadPaperPage*���rc�.�|jt�yr)r��PAGE_DESKJET_450rs rr]z!ColorCalDialog.showDeskjet450Page.s�����)�*rc�f�tt|jj���|_yr)�intr�Deskjet450ComboBox�currentTextr#rs rr^z ColorCalDialog.endDeskjet450Page2s"����D�$;�$;�$G�$G�$I�J�K��
rc�.�|jt�yr)r��
PAGE_CRICKrs rrazColorCalDialog.showCrick6s������$rc�B�|jj�|_yr)�CrickSpinBoxr#rs rrbzColorCalDialog.endCrick:s���&�&�,�,�.��
rc�|�|jj�|jjt	dd��|j
j
|jd|z��t|�D]-}|jjt|�|dz�����/|jt�y)N�	color_adj�otherzLine %s:r	)
�LBowComboBox�clear�LBowIcon�	setPixmapr��	LBowLabel�setTextr��range�addItem�strr��	PAGE_LBOW)r�line_id�countr�s    rrfzColorCalDialog.showLBowPage=s��������!��
�
����K�� A�B������t�y�y��G�);�<�=��u��	B�A����%�%�c�'�1�Q�3�*?�&@�A�	B�	
����#rc��tt|jj��dd�}|dk(r ||_t
j
d|z�y|dk(r ||_t
j
d|z�yy)Nr	r)zA=%dr+zB=%d)r�r�r�r�r.r�r�r0)rr��vs   rrgzColorCalDialog.endLBowPageHsh����D�%�%�1�1�3�4�Q�R�8�9���c�>��D�F��I�I�f�q�j�!�
��^��D�F��I�I�f�q�j�!�rc�V�|jjtdd��|jjtdd��dD]&}|jjt
|���(td�D],}|jjt
d|zdz���.dD]&}|jjt
|���(td	�D],}|jjt
d|zdz���.|jt�y)
N�type4_gray_patchr��type4_color_patch�ABCDEFGHIJKLMN�
z%sr	�PQRSTUVr)
�ConneryGrayPatchIconr�r��ConneryColorPatchIcon�ConneryGrayLetterComboBoxr�r�r��ConneryGrayNumberComboBox�ConneryColorLetterComboBox�ConneryColorNumberComboBoxr��PAGE_CONNERY)rr�s  rrjzColorCalDialog.showConneryPageTs���!�!�+�+�K�8J�G�,T�U��"�"�,�,�[�9L�g�-V�W�!�	;�A��*�*�2�2�3�q�6�:�	;��r��	B�A��*�*�2�2�3�t�A�v�a�x�=�A�	B��	<�A��+�+�3�3�C��F�;�	<��q��	C�A��+�+�3�3�C��Q��q��M�B�	C�	
����&rc	�.�|jj�tjk(rtjd�gd�|_ytt|jj���td�z
tt|jj���tt|jj���td�z
tt|jj���g|_y)NzUsing factory defaults)r�r�r�r�r)�P)�!ConneryUseFactoryDefaultsCheckBox�
checkState�Qt�Checkedr�r�r4�ordr�r�r�r�r�r�r�rs rrkzColorCalDialog.endConneryPagegs����1�1�<�<�>�"�*�*�L��I�I�.�/�*�D�K��S��7�7�C�C�E�F�G�#�c�(�R��C��6�6�B�B�D�E�F��S��8�8�D�D�F�G�H�3�s�8�S��C��7�7�C�C�E�F�G�	�D�Krc��|jjd�|jt�|j	t
�y)NF)r�r�r[�
BUTTON_FINISHr��PAGE_FRONT_PANELrs rrTz!ColorCalDialog.showFrontPanelPagets1�����"�"�5�)����}�-����)�*rc��yrrrs rrUz ColorCalDialog.endFrontPanelPagezr�rc�D�tj|j�syyr)rrWrrs rrWz$ColorCalDialog.colorCalType1PenCheck�����*�*�4�8�8�4��5rc�D�tj|j�syyr)rr`rrs rr`z$ColorCalDialog.colorCalType2PenCheck�r�rc�D�tj|j�syyr)rrdrrs rrdz$ColorCalDialog.colorCalType3PenCheck�r�rc��|j|j�|xjdz
c_d|_|jj	|�y)Nr	T)r�rEr��
StackedWidget�setCurrentIndex)r�pages  rr�zColorCalDialog.displayPage�s<�����D�I�I�&��	�	�Q��	���
����*�*�4�0rc�<�|xjdz
c_d|_y)Nr	F)rEr�rs rr�zColorCalDialog.skipPage�s���	�	�Q��	���
rNc���|�|js%|jjtd��y|jj|j	d|�d|j����y)N�zStep z of )rH�StepTextr�r�r�)rr�s  rr�zColorCalDialog.updateStepText�sG���9�D�M�M��M�M�!�!�#�b�'�*��M�M�!�!�$�)�)�Q�t�}�}�,M�"N�Orc�<�|tk(r+|jj|jd��y|tk(r+|jj|jd��y|t
k(r+|jj|jd��yy)N�	CalibratezNext >�Finish)r\rr�r��BUTTON_NEXTr�)r�typs  rr[z ColorCalDialog.setColorCalButton�sq���"�"��O�O�#�#�D�I�I�k�$:�;�
�K�
��O�O�#�#�D�I�I�h�$7�8�
�M�
!��O�O�#�#�D�I�I�h�$7�8�"rc�0�tjd||�S)Nr)�qApp�	translate)r�s�cs   r�__trzColorCalDialog.__tr�s���~�~�.�q��3�3r)r*r)!r��
__module__�__qualname__r@rrr�r�r~r�rurRrSrXrYr]r^rarbrfrgrjrkrTrUrWr`rdr�r�r�r\r[r�rrrrr?s���w0�t�&�
%���&�T	%��"*�

�+�L�%�/�$�	"�'�&
�+�
��
�
�1��
P�%5�9�4rr) r�r��base.g�baserrr�prntr�
base.codes�base.sixextr�ui_utils�PyQt5.QtCore�PyQt5.QtGui�colorcaldialog_baser
rC�COLOR_CAL_TYPE_TESTr�r�r�r�r�r�r�r\r�r�rr?rrrr�<module>rs���.�
��%�%���#����+�����
�
�����
�
�
�	����������
��u4�W�i�u4r

Zerion Mini Shell 1.0