%PDF- %PDF-
Mini Shell

Mini Shell

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

�

=	f����ddlZddlZddl�ddlmZmZmZmZddl�ddl	�ddl
�ddl�ddl�ddl
mZdZdZdZdZdZd	Zd
ZdZdZdZdZdZd
ZdZeezZeezZ ee!zZ"ee#zZ$ee%zZ&d�Z'Gd�de(e�Z)y)�N)�*)�device�utils�maint�status�)�	Ui_Dialog������i�i��dc��y�NT�r��#/usr/share/hplip/ui5/aligndialog.py�truerBs��rc���eZdZd�Zd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d	�Zd$d
�Zd�Z
d�Zd
�Zd%d�Zd�Zd�Zd�Zd�Zd�Zd&d�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd'd�Z e!fd �Z"d!�Z#d"�Z$d'd#�Z%y)(�AlignDialogc1���tj�|�|�_i�_d�_t
�_d�_d\�_�_	�_
�_�_d\�_
�_�_d�_d�_g�_d�_d�_it*d�t,d�t.d�t0d�t2d�t4d�t6d�t8d�t:d�t<d	�t>d�t@d�tBd�tDd�tFd�tHd�tJd�tLdtNdi��_(itD�jRd
f�jTdf�jRdf�jTd
f�jVdfg�t
�jXdf�jZdfg�t*�j\df�j^df�jVdfg�t,�j`dftbjd�fd�d�ff�jfdf�jVdfg�t0�jhdf�j`dftbjj�fd�ff�jldf�jndf�jldf�jndf�jldf�jndf�jldf�jndf�jptrff�j`d�fftbjt�fd��fd��fd��fd��fd�ff�jfdf�jVdfg�t.�j`df�jldf�jndf�jldf�jndf�jldf�jndf�jptrff�jld f�jndftbjv�fd!��fd"��fd#��fd$��fd%�fftbjx�fd&�ff�jzdf�j|dftbj~�fd'��fd(�ff�jfdf�jVdfg�t2�j`df�j�dftbj��fd)�ff�j�dfg�t4�j`df�j�dftbj��fd*�ff�jzdf�j|df�j�dfg�t8�j`df�j�dftbj��fd+�ff�jzdf�j|df�j�dfg�t��jld,f�jndf�j�df�jfdf�jVdfg�t��jld,f�jndf�j�df�jfdf�jVdfg�t��jldf�jndf�j�df�jfdf�jVdfg�t��jld-f�jndf�jld.f�jndf�jld/f�jndf�jld0f�jnd1f�j�df�jfdf�jVdfg�t��jld-f�jndf�jld.f�jndf�jld/f�jndf�jld0f�jnd1f�jRd
f�jTdf�jRd2f�jTd
f�j�df�jVdfg�t6�j`dftbj��fd3�ff�jpt�ff�j�df�jfdf�jVdfg�t:�j`df�j�df�jld4f�jndf�jld5f�jndf�jld6f�jndf�jptrff�jld7f�jndftbjv�fd8��fd9��fd:��fd;��fd<��fd=�ff�jfdf�jVdfg�t<�j`df�jldf�jndf�jldf�jndf�jldf�jndf�jptrff�jld f�jndftbjv�fd>��fd?��fd@��fdA��fdB�ff�jfdf�jVdfg
�t>�j`dftbj��fdC�ff�jptrff�j��fdD�ff�j�dftbj��fdE��fdF��fdG�ff�jpt�ff�j`dH�fftbj��fdI�ff�jfdf�jVdfgt@�j`dftbj��fdJ�ff�jptrff�j��fdK�ff�j�dftbj��fdL��fdM��fdN��fdO�ff�jpt�ff�j`dP�fftbj��fdQ�ff�jfdf�jVdfgtB�j`dftbj��fdR�dS�ff�jfdf�jVdfgtF�j`dftbj��fdT�ff�jpt�ff�j�df�jfdf�jVdfgtH�j`dftbj��fdU�ff�jptrff�j��fdV�ff�j�dftbj��fdW��fdX��fdY��fdZ�ff�jpt�ff�j`d[�fftbj��fd\�ff�jfdf�jVdfgtJ�j`dftbj��fd]��fd^�ff�jVdfgtL�j`dftbj��fd_�d`�ff�jldaf�jndf�jldbf�jndf�jldcf�jndf�jlddf�jndf�jldef�jnd1f�jldff�jndf�jldgf�jnd
f�jldhf�jndif�jldjf�jndkf�jldlf�jndmftbj��fdn��fdo��fdp��fdq��fdr��fds��fdt��fdu��fdv��fdw��fdx�ff�jfdf�jVdfgtN�j`dftbj��fdy��fdz�ff�jVdfgi��__�j����j��t�j�d�j��y){Nrr)rrrrr)rrrFr
rrr)�F�)r)�G�)rc����jS�N��dev��selfs�r�<lambda>z&AlignDialog.__init__.<locals>.<lambda>�s���t�x�x�rc��tSr�rrrrr$z&AlignDialog.__init__.<locals>.<lambda>�s��QU�rc����jSrr r"s�rr$z&AlignDialog.__init__.<locals>.<lambda>�����$�(�(�r)�A�h�kcr
r)r))�B�vr+r
r)r,)�Cr-r+r
r
)r.)�Dr-�cr
r
)r/c��yrrrrrr$z&AlignDialog.__init__.<locals>.<lambda>���rc����jSrr r"s�rr$z&AlignDialog.__init__.<locals>.<lambda>�r(rc����jSr��ar"s�rr$z&AlignDialog.__init__.<locals>.<lambda>�����TX�TZ�TZ�rc����jSr��br"s�rr$z&AlignDialog.__init__.<locals>.<lambda>�����dh�dj�dj�rc����jSr�r0r"s�rr$z&AlignDialog.__init__.<locals>.<lambda>�����$�&�&�rc����jSr��dr"s�rr$z&AlignDialog.__init__.<locals>.<lambda>�����RV�RX�RX�r)r.r-�kr
r)r/r-r+r
rc����jSrr r"s�rr$z&AlignDialog.__init__.<locals>.<lambda>�r(rc����jSrr5r"s�rr$z&AlignDialog.__init__.<locals>.<lambda>�r7rc����jSrr9r"s�rr$z&AlignDialog.__init__.<locals>.<lambda>�r;rc����jSrr=r"s�rr$z&AlignDialog.__init__.<locals>.<lambda>�r>rc����jSrr@r"s�rr$z&AlignDialog.__init__.<locals>.<lambda>�rBrc����jSrr r"s�rr$z&AlignDialog.__init__.<locals>.<lambda>�r(rc����jSrr r"s�rr$z&AlignDialog.__init__.<locals>.<lambda>�r(rc����jSr)�zcar"s�rr$z&AlignDialog.__init__.<locals>.<lambda>�s���TX�T\�T\�rc����jSrr r"s�rr$z&AlignDialog.__init__.<locals>.<lambda>�r(rc����jSrr r"s�rr$z&AlignDialog.__init__.<locals>.<lambda>�r(rc����jSrr r"s�rr$z&AlignDialog.__init__.<locals>.<lambda>�r(r)r,r-rCr
r)r,r*r+r
�)r.r-r+r
rP)r/r-rCr
r)�Er-r+r
r)rQ)rrc����jSrr r"s�rr$z&AlignDialog.__init__.<locals>.<lambda>r(r)r)r-rCr�	)r,r-r0rrS)r.r-r+rrS)r/r*r+rrSc����jSrr r"s�rr$z&AlignDialog.__init__.<locals>.<lambda>!r(rc����jSr)�num_inksr"s�rr$z&AlignDialog.__init__.<locals>.<lambda>!s���TX�Ta�Ta�rc����jSrr5r"s�rr$z&AlignDialog.__init__.<locals>.<lambda>!s���ko�kq�kq�rc����jSrr9r"s�rr$z&AlignDialog.__init__.<locals>.<lambda>"r>rc����jSrr=r"s�rr$z&AlignDialog.__init__.<locals>.<lambda>"rBrc����jSrr@r"s�rr$z&AlignDialog.__init__.<locals>.<lambda>"����bf�bh�bh�rc����jSrr r"s�rr$z&AlignDialog.__init__.<locals>.<lambda>2r(rc����jSrr5r"s�rr$z&AlignDialog.__init__.<locals>.<lambda>2r7rc����jSrr9r"s�rr$z&AlignDialog.__init__.<locals>.<lambda>2r;rc����jSrr=r"s�rr$z&AlignDialog.__init__.<locals>.<lambda>3r>rc����jSrr@r"s�rr$z&AlignDialog.__init__.<locals>.<lambda>3rBrc����jSrr r"s�rr$z&AlignDialog.__init__.<locals>.<lambda>:r(rc����jSr��patternr"s�rr$z&AlignDialog.__init__.<locals>.<lambda><����D�L�L�rc����jSrr r"s�rr$z&AlignDialog.__init__.<locals>.<lambda>>r(rc����jSr��valuesr"s�rr$z&AlignDialog.__init__.<locals>.<lambda>>����TX�T_�T_�rc����jSrrcr"s�rr$z&AlignDialog.__init__.<locals>.<lambda>?����$�,�,�rc��yrrrrrr$z&AlignDialog.__init__.<locals>.<lambda>Ar2rc����jSrr r"s�rr$z&AlignDialog.__init__.<locals>.<lambda>Br(rc����jSrr r"s�rr$z&AlignDialog.__init__.<locals>.<lambda>Ir(rc����jSrrcr"s�rr$z&AlignDialog.__init__.<locals>.<lambda>Krerc����jSrr r"s�rr$z&AlignDialog.__init__.<locals>.<lambda>Mr(rc����jSrrhr"s�rr$z&AlignDialog.__init__.<locals>.<lambda>Mrjrc����jSrrcr"s�rr$z&AlignDialog.__init__.<locals>.<lambda>Nrlrc�0���jjSr�r!�
pen_configr"s�rr$z&AlignDialog.__init__.<locals>.<lambda>N����X\�X`�X`�Xk�Xk�rc��yrrrrrr$z&AlignDialog.__init__.<locals>.<lambda>Pr2rc����jSrr r"s�rr$z&AlignDialog.__init__.<locals>.<lambda>Qr(rc����jSrr r"s�rr$z&AlignDialog.__init__.<locals>.<lambda>Xs���d�h�h�rc��tSrr&rrrr$z&AlignDialog.__init__.<locals>.<lambda>Xs��PT�rc����jSrr r"s�rr$z&AlignDialog.__init__.<locals>.<lambda>_s������rc����jSrr r"s�rr$z&AlignDialog.__init__.<locals>.<lambda>hr(rc����jSrrcr"s�rr$z&AlignDialog.__init__.<locals>.<lambda>jrerc����jSrr r"s�rr$z&AlignDialog.__init__.<locals>.<lambda>lr(rc����jSrrhr"s�rr$z&AlignDialog.__init__.<locals>.<lambda>lrjrc����jSrrcr"s�rr$z&AlignDialog.__init__.<locals>.<lambda>mrlrc�0���jjSrrur"s�rr$z&AlignDialog.__init__.<locals>.<lambda>mrwrc��yrrrrrr$z&AlignDialog.__init__.<locals>.<lambda>or2rc����jSrr r"s�rr$z&AlignDialog.__init__.<locals>.<lambda>pr(rc����jSrr r"s�rr$z&AlignDialog.__init__.<locals>.<lambda>w����4�8�8�rc����jSr��showAioPager"s�rr$z&AlignDialog.__init__.<locals>.<lambda>w����UY�Ue�Ue�rc����jSrr r"s�rr$z&AlignDialog.__init__.<locals>.<lambda>}r�rc��tSrr&rrrr$z&AlignDialog.__init__.<locals>.<lambda>}s��UY�r)r)r-r+r�)r,r*r+rrP)r.r-rCrr�)r/r-r0rr�)rQr*rCrr)rr*rCrr)rr*rCrr)�Hr-rCrr)r�)�Ir-r0r�)r�)�Jr-r0rr�)r�c����jSrr r"s�rr$z&AlignDialog.__init__.<locals>.<lambda>�r(rc����jSrr5r"s�rr$z&AlignDialog.__init__.<locals>.<lambda>�r7rc����jSrr9r"s�rr$z&AlignDialog.__init__.<locals>.<lambda>�r;rc����jSrr=r"s�rr$z&AlignDialog.__init__.<locals>.<lambda>�r>rc����jSrr@r"s�rr$z&AlignDialog.__init__.<locals>.<lambda>�rBrc����jSr)�er"s�rr$z&AlignDialog.__init__.<locals>.<lambda>�r[rc����jSr)�fr"s�rr$z&AlignDialog.__init__.<locals>.<lambda>�r>rc����jSr)�gr"s�rr$z&AlignDialog.__init__.<locals>.<lambda>�rBrc����jSr)r*r"s�rr$z&AlignDialog.__init__.<locals>.<lambda>�r[rc����jSr)�ir"s�rr$z&AlignDialog.__init__.<locals>.<lambda>�r>rc����jSr)�jr"s�rr$z&AlignDialog.__init__.<locals>.<lambda>�rBrc����jSrr r"s�rr$z&AlignDialog.__init__.<locals>.<lambda>�r�rc����jSrr�r"s�rr$z&AlignDialog.__init__.<locals>.<lambda>�r�r)e�QDialog�__init__�
device_uri�mq�step_max�ALIGN_TYPE_INITIAL�
align_type�stepr6r:r0rArLr�r�r�rVrdri�abort�	seq_index�ALIGN_TYPE_UNSUPPORTED�ALIGN_TYPE_AUTO�ALIGN_TYPE_9XX�ALIGN_TYPE_8XX�ALIGN_TYPE_LIDIL_0_3_8�ALIGN_TYPE_LIDIL_0_4_3�ALIGN_TYPE_LIDIL_AIO�ALIGN_TYPE_LIDIL_VIP�ALIGN_TYPE_DESKJET_450�ALIGN_TYPE_9XX_NO_EDGE_ALIGN�ALIGN_TYPE_LBOW�ALIGN_TYPE_LIDIL_0_5_4�ALIGN_TYPE_OJ_PRO�ALIGN_TYPE_TEST�ALIGN_TYPE_AIO�ALIGN_TYPE_LIDIL_DJ_D1600�ALIGN_TYPE_LEDM�ALIGN_TYPE_LEDM_MANUAL�ALIGN_TYPE_LEDM_FF_CC_0�	max_steps�showColorAdjustPage�endColorAdjustPage�close�
showStartPage�endStartPage�showFrontPanelPage�endFronPanelPage�showLoadPaperPager�
AlignType1PML�closeAll�checkType2PenConfig�alignType2Phase1�showAlignmentNumberPage�endAlignmentNumberPage�setAlignButton�BUTTON_ALIGN�alignType2Phase2�alignType3Phase2�alignType3Phase3�showPageEdgePage�endPageEdgePage�alignType3Phase4�setPenConfig�alignType4Phase1�setXBow�alignType5Phase1�alignType7Phase1�ALIGN_TYPE_XBOW_BLACK_ONLY�
setXBowValues�ALIGN_TYPE_XBOW_PHOTO_ONLY�ALIGN_TYPE_XBOW_COLOR_ONLY�ALIGN_TYPE_XBOW_COLOR_AND_BLACK�ALIGN_TYPE_XBOW_COLOR_AND_PHOTO�alignType6Phase1�
BUTTON_FINISHr��alignType8Phase1�alignType10Phase1�showLBowPage�endLBowPage�alignType10Phase2�alignType10Phase3�alignType11Phase1�alignType11Phase2�alignType11Phase3�AlignType12�alignType13Phase1�alignType14Phase1�alignType14Phase2�alignType14Phase3�AlignType15Phase1�AlignType16Phase1�AlignType17Phase1�seq�setupUi�initUi�QTimer�
singleShot�nextSequence)r#�parentr�s`  rr�zAlignDialog.__init__Gs��������v�&�$��������
�,�����	�3@�0�����������!(����������
���������
�����"�Q���a��
�Q��
�Q�	�

#�Q��
#�Q�
�
!�1��
!�1��
#�Q��
)�1��
�a��
#�Q��
���
�a��
�Q�� 
&�q�!�"
�Q�#�$
#�A�#�Q�'���,r�� $� 8� 8�)�D� $� 7� 7��@� $� 8� 8�)�D� $� 7� 7��@� $�
�
�D�1��r�
� $� 2� 2�D�9� $� 1� 1�4�8�"�r�
#�!%�!8�!8�$� ?�!%�!6�!6�� =�!%���T� 2�&�r�0
� $� 6� 6��=� %� 3� 3�6G��5V�W� $�
�
�t�4� $�
�
�D�1�	�1r�>
�!%�!9�!9�4� @�!%�!7�!7�� >�!&�!7�!7�:J�9L� M�!%�!=�!=�?V� W�!%�!<�!<�f� E�!%�!=�!=�?V� W�!%�!<�!<�f� E�!%�!=�!=�?U� V�!%�!<�!<�f� E�!%�!=�!=�?T� U�!%�!<�!<�f� E�!%�!4�!4�|�o� F�!%�!7�!7�,�� I�!&�!7�!7�:J�N�\j�:H�.�:Z�![�!%���� 5�!%���T� 2�# �?r�f
�!%�!7�!7�� >�!%�!=�!=�?V� W�!%�!<�!<�f� E�!%�!=�!=�?V� W�!%�!<�!<�f� E�!%�!=�!=�?U� V�!%�!<�!<�f� E�!%�!4�!4�|�o� F�!%�!=�!=�?V� W�!%�!<�!<�f� E�!&�!7�!7�:J�N�\j�:H�.�:Z�![�!&�!7�!7�:J�9L� M�!%�!6�!6�� =�!%�!5�!5�t� <�!&�!7�!7�:J�L\�9]� ^�!%���� 5�!%���T� 2�%�gr�P
#�!%�!7�!7�� >�!%�!2�!2�D� 9�!&�!7�!7�:J�9L� M�!%���t� 4�	&�Qr�`
#�!%�!7�!7�� >�!%�!2�!2�D� 9�!&�!7�!7�:J�9L� M�!%�!6�!6�� ?�!%�!5�!5�t� <�!%���t� 4�
&�ar�t
!�!%�!7�!7�� >�!%�!2�!2�D� 9�!&�!7�!7�:J�9L� M�!%�!6�!6�� ?�!%�!5�!5�t� <�!%���t� 4�
$�ur�J
'�!�9�9�;Q�R�!�8�8�&�A�!�/�/��6�!�]�]�D�1�!�Z�Z��.�*�Kr�\
'�!�9�9�;Q�R�!�8�8�&�A�!�/�/��6�!�]�]�D�1�!�Z�Z��.�*�]r�n
'�!�9�9�;R�S�!�8�8�&�A�!�/�/��6�!�]�]�D�1�!�Z�Z��.�*�or�@
,�!�9�9�;R�S�!�8�8�&�A�!�9�9�;R�S�!�8�8�&�A�!�9�9�;Q�R�!�8�8�&�A�!�9�9�;R�S�!�8�8�&�A�!�/�/��6�!�]�]�D�1�!�Z�Z��.�/�Ar�^
,�!�9�9�;R�S�!�8�8�&�A�!�9�9�;R�S�!�8�8�&�A�!�9�9�;Q�R�!�8�8�&�A�!�9�9�;R�S�!�8�8�&�A�!�5�5�y�A�!�4�4�f�=�!�5�5�y�A�!�4�4�f�=�!�/�/��6�!�Z�Z��.�/�_r�@
!�!%�!7�!7�� >�!&�!7�!7�:J�9L� M�!%�!4�!4�}�6F� G�!%�!1�!1�4� 8�!%���� 5�!%���T� 2�
$�Ar�R
#�!%�!7�!7�� >�!%�!6�!6�� =�!%�!=�!=�?T� U�!%�!<�!<�f� E�!%�!=�!=�?T� U�!%�!<�!<�f� E�!%�!=�!=�?U� V�!%�!<�!<�f� E�!%�!4�!4�|�o� F�!%�!=�!=�?U� V�!%�!<�!<�f� E�!&�!7�!7�:J�La�cq�:H�.�Zh�:j�!k�!%���� 5�!%���T� 2�&�Sr�v
)�!%�!7�!7�� >�!%�!=�!=�?V� W�!%�!<�!<�f� E�!%�!=�!=�?V� W�!%�!<�!<�f� E�!%�!=�!=�?U� V�!%�!<�!<�f� E�!%�!4�!4�|�o� F�!%�!=�!=�?V� W�!%�!<�!<�f� E�!&�!7�!7�:J�N�\j�:H�.�:Z�![�!%���� 5�!%���T� 2�,�wr�X
� $� 6� 6��=� %� 7� 7�:J�9L�M� $� 3� 3�l�_�E� $� 1� 1�4H�3J�K� $� 0� 0�$�7� %� 7� 7�:J�L_�:N�:P� Q� $� 3� 3�m�5E�F� $� 6� 6���H� %� 7� 7�:J�9L�M� $�
�
�t�4� $�
�
�D�1�
�
#� $� 6� 6��=� %� 7� 7�:J�9L�M� $� 3� 3�l�_�E� $� 1� 1�4H�3J�K� $� 0� 0�$�7� %� 7� 7�:J�L_�:N�Pk�:m� n� $� 3� 3�m�5E�F� $� 6� 6���H� %� 7� 7�:J�9L�M� $�
�
�t�4� $�
�
�D�1�
&�
�!%�!7�!7�� >�!&�!2�!2�5F��4U� V�!%���� 5�!%���T� 2�	!�
�#�5�5�t�<�$�6�6�9I�8K�L�#�2�2�]�4D�E�#�/�/��6�#�}�}�d�3�#�z�z�4�0�
�
&� $� 6� 6��=� %� 7� 7�:J�9L�M� $� 3� 3�l�_�E� $� 1� 1�4H�3J�K� $� 0� 0�$�7� %� 7� 7�:J�L_�:N�Pk�:m� n� $� 3� 3�m�5E�F� $� 6� 6���H� %� 7� 7�:J�9L�M� $�
�
�t�4� $�
�
�D�1�
)�
� $� 6� 6��=� %� 7� 7�:K�Me�9f�g� $�
�
�D�1��
#� $� 6� 6��=� %� 7� 7�:K�\�9Z�[� $� <� <�>U�V� $� ;� ;�V�D� $� <� <�>U�V� $� ;� ;�V�D� $� <� <�>T�U� $� ;� ;�V�D� $� <� <�>T�U� $� ;� ;�V�D� $� <� <�>T�U� $� ;� ;�V�D� $� <� <�>T�U� $� ;� ;�V�D� $� <� <�>T�U� $� ;� ;�V�D� $� <� <�>T�U� $� ;� ;�V�D� $� <� <�>T�U� $� ;� ;�V�D� $� <� <�>T�U� $� ;� ;�V�D� %� 7� 7�:J�N�\j�:H�.�Zh�:H�.�Zh�:H�.�:Z� [�!%�
�
�t�4� $�
�
�D�1�9&�<#� $� 6� 6��=� %� 7� 7�:K�Me�9f�g� $�
�
�D�1�&�[	r���h		
���T�����
����!�T�.�.�/rc���|jjj|j�|jjj|j
�|jjj|j�|jjj|j�|jjdtjtfi�tjtjtj�|j!t#t%dd���|j&r&|jj)|j&�yy)N�
align-type�hp_logo�128x128)�CancelButton�clicked�connect�CancelButton_clicked�
NextButton�NextButton_clicked�DeviceComboBox�DeviceUriComboBox_noDevices� DeviceUriComboBox_currentChanged�	setFilter�operator�ne�ALIGN_TYPE_NONE�signal�SIGINT�SIG_DFL�
setWindowIcon�QIcon�load_pixmapr��setInitialDevicer"s rr�zAlignDialog.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�	
���5��Y�	�!B�C�D��?�?����0�0����A�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�_AlignDialog__trr�r"s rrz'AlignDialog.DeviceUriComboBox_noDevices�s(���$��	�	�#C�D�	E��
�
�rc��||_yr)r�)r#r�s  rr	z,AlignDialog.DeviceUriComboBox_currentChanged�s	��$��rc�$�|j�yr)r�r"s rrz AlignDialog.CancelButton_clicked�s���
�
�rc�$�|j�yr)r�r"s rrzAlignDialog.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�(�,�))r�r�r��
IndexError�new_page�append�log�debug�__name__�join�repr�AttributeError�Error�
CheckDeviceUIr�r�)r#r��params�t�p�xs      rr�zAlignDialog.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���|jj�}|dk(r|j�y|jj�|j	t
�y)Nr)r�
setDevices�skipPage�updateUi�displayPage�
PAGE_START)r#�num_devicess  rr�zAlignDialog.showStartPage�sJ���)�)�4�4�6���!���M�M�O�����$�$�&�����$rc��tj|j�|_|jj	dt
�|_d|_tjd|jz�|j|j|_	tj|j�|_
y#t$rt|�YywxYw)Nr����z
align-type=%d)r�queryModelByURIr�r��getr
r�r�r"r#r�r��Devicer!r(r)r"s rr�zAlignDialog.endStartPage�s����(�(����9����'�'�+�+�l�O�D������	�	�	�/�D�O�O�3�4����t���7��
�	��}�}�T�_�_�5�D�H���	��$���	�s�$B7�7C�
Cc��|r |jd�|j_|jj�|j	t
�y)NzFinish >)r�	LoadPaper�button_namer1r2�PAGE_LOAD_PAPER)r#�finishs  rr�zAlignDialog.showLoadPaperPages8���)-���:�)>�D�N�N�&������!�����)rc��yrrr"s r�endLoadPaperPagezAlignDialog.endLoadPaperPage���rc��|jj|jd|z��|jj	td|||fzd��|jj�t|�D]-}|jjt|�|dz�����/|jt�y)NzuFrom the printed Alignment page, Choose the set of lines in group %s where the line segments are <b>best</b> aligned.z%s-%s-%d�otherr)
�AlignmentNumberTitle�setTextr�AlignmentNumberIcon�	setPixmapr�AlignmentNumberComboBox�clear�range�addItem�strr2�PAGE_ALIGNMENT_NUMBER)r#�line_id�orientation�colors�
line_count�choice_countr-s       rr�z#AlignDialog.showAlignmentNumberPages���	
�!�!�)�)�$�)�)�5l�ov�5v�+w�	x�� � �*�*�;�z�[�RX�Zd�De�7e�gn�+o�p��$�$�*�*�,��|�$�	N�A��(�(�0�0��g�q��s�5K�1L�M�	N�	
���.�/�rc�F�tt|jj��dd�}|dk(r ||_t
j
d|z�y|dk(r ||_t
j
d|z�y|dk(r ||_t
j
d|z�y|dk(r ||_	t
j
d	|z�y|d
k(r ||_
t
j
d|z�y|dk(r ||_t
j
d
|z�y|dk(r ||_t
j
d|z�y|dk(r ||_
t
j
d|z�y|dk(r ||_t
j
d|z�y|dk(r ||_t
j
d|z�yy)Nrr)zA=%dr,zB=%dr.zC=%dr/zD=%drQzE=%dr�F=%dr�G=%dr�zH=%dr�zI=%dr�zJ=%d)�intrLrH�currentTextr6r"r#r:r0rAr�r�r�r*r�r��r#rNr-s   rr�z"AlignDialog.endAlignmentNumberPage,sX����D�0�0�<�<�>�?���C�D���c�>��D�F��I�I�f�q�j�!�
��^��D�F��I�I�f�q�j�!�
��^��D�F��I�I�f�q�j�!�
��^��D�F��I�I�f�q�j�!�
��^��D�F��I�I�f�q�j�!�
��^��D�F��I�I�f�q�j�!�
��^��D�F��I�I�f�q�j�!�
��^��D�F��I�I�f�q�j�!�
��^��D�F��I�I�f�q�j�!�
��^��D�F��I�I�f�q�j�!�rNc���|jj|jd��|jj	tdd��|jj�t|�D]Z}|�+|jjtd|zdz���0|jjt|�|dz�����\|jt�y)NzNChoose the <b>numbered arrow</b> that <b>best </b>marks the edge of the paper.zzca.pngrCz%sr)
�
PageEdgeTitlerEr�PageEdgeIconrGr�PageEdgeComboBoxrIrJrKrLr2�	PAGE_EDGE)r#�prefix�countr-s    rr�zAlignDialog.showPageEdgePageWs������"�"�4�9�9�-}�#~�����#�#�K�	�7�$C�D����#�#�%��u��	K�A��~��%�%�-�-�c�$��(�1�*�o�>��%�%�-�-�c�F�A�a�C�2H�.I�J�		K�	
����#rc��tt|jj��dd�}||_t
j
d|z�y)NrzZCA=%d)rVrLr\rWrLr"r#)r#r-s  rr�zAlignDialog.endPageEdgePagees>����D�)�)�5�5�7�8���<�=������	�	�(�Q�,�rc	��|jjtdd��|jtk(r tj|j�}nR|jtk(r tj|j�}ntj|j�}|�tjd�tj||j�|_t|jj!��}|j#�d}|D]}|j|dr|}�n|j$j'|j)d|z��|jD]s}|j|dst+d|j-�z��2t/|j|d�D]$}t+d	|j-�||dzfz��&�u|j1t2�y)
N�align10rCzInvalid pattern!r)rztFor each row A - %s, select the label representing the box in which in the inner lines are the <b>least</b> visible.z!self.%sComboBox.setEnabled(False)rzself.%sComboBox.addItem("%s%d"))�LBowIconrGrr�r�r�alignType10SetPatternr!r��alignType14SetPattern�alignType11SetPatternr"�error�align10and11and14Controls�controls�list�keys�sort�	LBowTitlerEr�eval�lowerrJr2�	PAGE_LBOW)r#rdrk�max_line�liner-s      rr�zAlignDialog.showLBowPageks����
�
����I�w� ?�@��?�?�o�-��1�1�$�(�(�;�G�
�_�_� 9�
9��1�1�$�(�(�;�G��1�1�$�(�(�;�G��?��I�I�(�)��7�7�����Q��
��D�M�M�&�&�(�)���	�	�����	�D��}�}�T�"�1�%����		�	
�����t�y�y�*`�ck�*k� l�	m��M�M�	Z�D��=�=��&�q�)��8�4�:�:�<�G�H��t�}�}�T�2�1�5�6�Z�A��:�d�j�j�l�D�RS�VW�RW�=X�X�Y�Z�		Z�	
����#rc��g|_t|jj��}|j	�|D]v}|j|ds|jjd��1t
d|j�z�	tdd�}|jj|��xy#t$rd}Y�+wxYw)Nrz1selected = unicode(self.%sComboBox.currentText())r)
rirjrirkrlr!�execrorV�
ValueError)r#rirr�selecteds    rr�zAlignDialog.endLBowPage�s��������
�
�*�*�,�-���
�
���
	-�D��=�=��&�q�)����"�"�1�%��H�4�:�:�<�W�X�!�"�8�A�B�<�0�H����"�"�8�,�
	-��"�!� �H�!�s�B7�7C�Cc�x�|jjtdd��|jt�y)N�	aio_alignrC)�AioIconrGrr2�PAGE_AIOr"s rr�zAlignDialog.showAioPage�s)�������{�;��@�A�����"rc��yrrr"s r�
endAioPagezAlignDialog.endAioPage�rArc�|�|jj�|jjt	dd��|j
j
|jd|z��t|�D]-}|jjt|�|dz�����/|jt�y)N�	color_adjrCzLine %s:r)
�ColorAdjustComboBoxrI�ColorAdjustIconrGr�ColorAdjustLabelrErrJrKrLr2�PAGE_COLOR_ADJ)r#rNr_r-s    rr�zAlignDialog.showColorAdjustPage�s���� � �&�&�(����&�&�{�;��'H�I����%�%�d�i�i�
�W�0D�&E�F��u��	K�A��$�$�,�,�S�7�A�a�C�1H�-I�J�	K�	
����(rc��tt|jj��dd�}|dk(r ||_t
j
d|z�y|dk(r ||_t
j
d|z�yy)NrrrTrrU)rVrLrrWr�r"r#r�rXs   rr�zAlignDialog.endColorAdjustPage�sh����D�,�,�8�8�:�;�A�B�?�@���c�>��D�F��I�I�f�q�j�!�
��^��D�F��I�I�f�q�j�!�rc�X�|jt�|jt�yr)r�r�r2�PAGE_FRONT_PANELr"s rr�zAlignDialog.showFrontPanelPage�s�����M�*����)�*rc��yrrr"s rr�zAlignDialog.endFronPanelPage�rArc��yrrr"s rr�zAlignDialog.checkType2PenConfig�rArc�L�tj|j�|_yr)rr�r!rVr"s rr�zAlignDialog.alignType8Phase1�s���.�.�t�x�x�8��
rc�x�|j|_t|jjz|_d|_y)Nr6)r��real_align_type�ALIGN_TYPE_XBOW_OFFSETr!rvr�r"s rr�zAlignDialog.setXBow�s+��#�����0�4�8�8�3F�3F�F�����rc
��|jtk(rvtj|j|j
|j|j|j|j�tj|j�y|jtk(r�tj|j|j
|j|j|j|j|j|j�tj|j�y|jt k(r�tj"|j|j
|j|j|j|j|j|j�tj$|j�yyr)r�r�r�alignType4Phase2r!rLr:r0rAr��alignType4Phase3r��alignType5Phase2r�r��alignType5Phase3r��alignType7Phase2�alignType7Phase3r"s rr�zAlignDialog.setXBowValues�s�����$:�:��"�"�4�8�8�T�X�X�t�v�v�t�v�v�t�v�v�t�v�v�V��"�"�4�8�8�,�
�
!�
!�%;�
;��"�"�4�8�8�T�X�X�t�v�v�t�v�v�t�v�v�t�v�v�W[�W]�W]�_c�_e�_e�f��"�"�4�8�8�,�
�
!�
!�%9�
9��"�"�4�8�8�T�X�X�t�v�v�t�v�v�t�v�v�t�v�v�W[�W]�W]�_c�_e�_e�f��"�"�4�8�8�,�:rc��|j|j�|xjdz
c_d|_|jj	|�y)NrT)�updateStepTextr�r �
StackedWidget�setCurrentIndex)r#�pages  rr2zAlignDialog.displayPage�s<�����D�I�I�&��	�	�Q��	���
����*�*�4�0rc�<�|xjdz
c_d|_y)NrF)r�r r"s rr0zAlignDialog.skipPage�s���	�	�Q��	���
rc���|�|js%|jjtd��y|jj|j	d|�d|j����y)N�zStep z of )r��StepTextrErLr)r#r,s  rr�zAlignDialog.updateStepText�sG���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�AlignzNext >�Finish)r�rrEr�BUTTON_NEXTr�)r#�typs  rr�zAlignDialog.setAlignButtonsp���,���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�|�tj|jj��|j_yr)r�getPenConfigurationr!�getStatusFromDeviceIDrvr"s rr�zAlignDialog.setPenConfigs&��$�8�8����9W�9W�9Y�Z����rc�R�|j�|jj�yyr)r!r�r"s rr�zAlignDialog.closeAlls���8�8���H�H�N�N�� rc�0�tjd||�S)Nr)�qApp�	translate)r#�sr0s   r�__trzAlignDialog.__trs���~�~�m�A�a�0�0r)F)N�
)rr)&r$�
__module__�__qualname__r�r�rr	rrr�r�r�r�r@r�r�r�r�r�r�r�r|r�r�r�r�r�r�r�r�r2r0r�r�r�r�r�rrrrrrFs���\0�~
B�$�
%���&�T	%��"*�
��")"�V$� �#$�N-�$#�

�)�	"�+�
�
�
9��-�$1��
S�".�9�[��
1rr)*rr�base.g�baserrrr�
base.codes�ui_utils�PyQt5.QtCore�PyQt5.QtGui�PyQt5.QtWidgets�aligndialog_baser	r3r=r]rMr�rprzr�r�r�r�r�r�r��AGENT_CONFIG_BLACK_ONLYr��AGENT_CONFIG_PHOTO_ONLYr��AGENT_CONFIG_COLOR_ONLYr��AGENT_CONFIG_COLOR_AND_BLACKr��AGENT_CONFIG_COLOR_AND_PHOTOr�rr�rrrr�<module>r�s���.�
��-�-������(�
�
���
�	�����
�	����������
�������3�6M�M��3�6M�M��4�7N�N��#9�<X�#X��"8�;W�"W���S1�'�9�S1r

Zerion Mini Shell 1.0