%PDF- %PDF-
Mini Shell

Mini Shell

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

�

=	f�-��R�dZdZdZdZddlZddlZddlZddlZddlm	Z	ddl
Z
ddlZddl�ddl
mZmZmZmZmZdd	lmZdd
lmZej,eeeedeefeeefddd�
Zej;ej<gd
���ej?dgd��\Z Z!Z"Z#Z$Z%ejMe!e"dejNdfi��Z!e!sejPd�e)jUde!z�dZ+dZ,dZ-dZ.dZ/dZ0e D�]�\Z1Z2e1dvr<	e3e2�Z+e+dkre)jkd�dZ+�-e+dkDs�3e)jkd�dZ+�Ge1dvr@	e3e2�Z.e.dkre)jkd�dZ.ne.dkDre)jkd�dZ.e.d zZ.��e1d!vr�e2jm�jo�Z2e2d"k(r
ejpZ/��e2jsd#�r
ejtZ/��e2jsd$�r
ejvZ/��e2jsd%�rejxZ/��e2d&k(rejzZ/��-e)jkd'���@e1d(vrQdZ-	e3e2j}d)d*��Z,e,d kre)jkd-�d Z,��ye,d.kDs���e)jkd/�d.Z,���e1d0vs���ej~Z0���e0ej~k(re-re)jkd1�e#ek(rte$d2k(r8ej��s^e)j�d3ez�ejPd�n7ej��s&e)j�d4ez�ejPd�e#ek(�rXe$d2k(�r�dZCdZD	ddlE�dd5lFmGZGeIej��ZCe%�PeKj�d7d8d9�Z%e%jm�d9k(r*eMeNj���Z%e)j�d:e%z�e%jm�d;k7r�d<ZQ	e%j�d=�\ZSZTd=j�eSeQg�Z%e)j�d>e%z�eVd�ZWd?eSzZXe)j�d@eXz�eWj�eXeZj��Z\e\reCj�eW�nd;Z%e%d;k(re)j�dA�n^e)j�dBe%z�e^j�e^e%��e%eZ_O	eOj�eOj�eOj�e%��dCgZdeGede!e"e+e.e/e,e0�ZDeDj��eCj�eD�	e)j�dD�eCj��y	ddElimIZIddFljmkZk	eIej��ZCekde!�Zlelj��	e)j�dD�eCj��	ejPd�y	ej�e!e"�Zo		eoj��e+�eoj�ej��\ZsZ+e.�eoj�ej��\ZsZ.e,�eoj�ej��\ZsZ,e/�eoj�ej��\ZsZ/e0�.eoj�exk(reoj�ej��\ZsZ0nej�Z0eoj�ej��\ZsZ|eoj�ej��\ZsZ~eo�jj�dHe��Z�e)j�e��e�e�k(rej�Z0e)j�dIe+z�e)j�dJe.z�e)j�dKe,z�e)j�dLe/z�e)j�dMe0z�e)j�dNe|z�e)j�dOe~z�e)j�dPe�z�e	�j�Z�e	�j�Z�eo�je+e.e,e/e0e�e�e��dZ�e��r#e��j�r�	e�j�d�Z�e�e�jk(re)j�dQ��Ee�e�je�jfvre)jUdR��se�e�jk(re)jUdS���e�e�j e�j"fvrIe�e�j k(r&e)j�dT�eo�j%e��dZ�n%e�e�j"k(rdZ�ne��j�r��e
�j(dU�e�r��#eo�j+�	eo�j3�eo�j%e��e)jUd*�e)jUdW�y#e4$re)jkd�dZ+Y��dwxYw#e4$re)jkd�dZ.Y��CwxYw#e4$re)jkd+�d,Z,Y��WwxYw#eH$r'e)j�d6�ejPd�Y���wxYw#e4$re%ZSd=j�e%eQg�Z%Y��wxYw#eOj�$rY��>wxYw#eh$rYywxYw#eH$r'e)j�dG�ejPd�Y��wxYw#eh$rejPd�Y���wxYw#ec$r8ZQe)j�eQj��ejPd�YdZQ[Q���dZQ[QwwxYw#e	�j$rY���wxYw#eo�j+�wxYw#eh$rDe)j�dV�e��j-e�j.�eo�j%e��Y��wxYw)Xz4.0zMake Copies Utilityz
hp-makecopieszlPC initiated make copies function on supported HP AiO and MFP devices. (Note: Currently unsupported in Qt4.)�N)�queue)�*)�utils�device�pml�tui�module)�copier)�cupsFT))zNumber of copies:zD-m<num_copies> or --copies=<num_copies> or --num=<num_copies> (1-99)�optionF)zReduction/enlargement:z7-r<%> or --reduction=<%> or --enlargement=<%> (25-400%)rF)zQuality:zk-q<quality> or --quality=<quality> (where quality is: 'fast', 'draft', 'normal', 'presentation', or 'best')rF)z	Contrast:z0-c<contrast> or --contrast=<contrast> (-5 to +5)rF)zFit to page (flatbed only):z<-f or --fittopage or --fit (overrides reduction/enlargement)rF)�
extra_optionsz	m:r:q:c:f)	znum=zcopies=z
reduction=zenlargement=zquality=z	contrast=�	fittopage�fitzfit-to-pagez	copy-type)�filter�zUsing device : %s
)z-mz--numz--copiesz.Invalid number of copies. Set to default of 1.z.Invalid number of copies. Set to minimum of 1.�cz/Invalid number of copies. Set to maximum of 99.)z-cz
--contrastz.Invalid contrast setting. Set to default of 0.���z/Invalid contrast setting. Set to minimum of -5.�z/Invalid contrast setting. Set to maximum of +5.�)z-qz	--quality�fast�norm�pres�draf�bestz,Invalid quality. Set to default of 'normal'.)z-rz--reductionz
--enlargement�%�z,Invalid reduction %. Set to default of 100%.�dz+Invalid reduction %. Set to minimum of 25%.i�z,Invalid reduction %. Set to maximum of 400%.)z-fz--fittopagez--fitz
--fit-to-pagez>Fit to page specfied: Reduction/enlargement parameter ignored.�qt3z\%s requires GUI support (try running with --qt4). Also, try using non-interactive (-n) mode.z\%s requires GUI support (try running with --qt3). Also, try using non-interactive (-n) mode.)�MakeCopiesFormz,Unable to load Qt3 support. Is it installed?�ui�loc�systemzUsing system locale: %s�c�utf8�.z&Trying to load .qm file for %s locale.zhplip_%s.qmzName of .qm file: %szUsing default 'C' localezUsing locale: %srzStarting GUI loop...)�QApplication)�MakeCopiesDialogz,Unable to load Qt4 support. Is it installed?zscan-srcznum_copies = %dzcontrast= %dzreduction = %dzquality = %dzfit_to_page = %dzmax_reduction = %dzmax_enlargement = %dz
scan_src = %d�Idlez
Warming up...z
Copying...z
Copier error!�zUser interrupt. Canceling...zDone.)��__version__�	__title__�__mod__�__doc__�sys�os�getopt�re�base.sixext.movesr�time�operator�base.g�baserrrrr	r
�prntr�Module�NON_INTERACTIVE_MODE�GUI_MODE�UI_TOOLKIT_QT3�UI_TOOLKIT_QT4�UI_TOOLKIT_QT5�mod�setUsage�USAGE_FLAG_DEVICE_ARGS�parseStdOpts�opts�
device_uri�printer_name�mode�
ui_toolkitr!�getDeviceUri�gt�exit�log�info�
num_copies�	reduction�reduction_spec�contrast�quality�fit_to_page�o�a�int�
ValueError�warning�lower�strip�COPIER_QUALITY_FAST�
startswith�COPIER_QUALITY_NORMAL�COPIER_QUALITY_PRESENTATION�COPIER_QUALITY_DRAFT�COPIER_QUALITY_BEST�replace�COPIER_FIT_TO_PAGE_ENABLED�canEnterGUIMode�error�canEnterGUIMode4�app�
makecopiesdlg�qt�ui.makecopiesformr�ImportErrorr&�argv�	user_conf�get�str�
QTextCodec�locale�debug�e�split�l�x�join�QTranslator�trans�qm_file�load�prop�localization_dir�loaded�installTranslator�QLocale�
setDefault�	setlocale�LC_ALL�	normalize�Error�bus�show�
setMainWidget�	exec_loop�KeyboardInterrupt�PyQt4.QtGui�ui4.makecopiesdialogr'�dlg�exec_�
PMLCopyDevice�dev�open�getPML�OID_COPIER_NUM_COPIES�result_code�OID_COPIER_CONTRAST�OID_COPIER_REDUCTION�OID_COPIER_QUALITY�	copy_type�COPY_TYPE_DEVICE�OID_COPIER_FIT_TO_PAGE�COPIER_FIT_TO_PAGE_DISABLED�OID_COPIER_REDUCTION_MAXIMUM�
max_reduction�OID_COPIER_ENLARGEMENT_MAXIMUM�max_enlargement�msg�mq�SCAN_SRC_FLATBED�scan_src�SCAN_SRC_SCROLLFED�Queue�update_queue�event_queue�copy�cont�qsize�status�Empty�STATUS_IDLE�STATUS_SETTING_UP�STATUS_WARMING_UP�
STATUS_ACTIVE�STATUS_ERROR�STATUS_DONE�	sendEvent�EVENT_COPY_JOB_FAIL�sleep�close�put�
COPY_CANCELED�EVENT_COPY_JOB_CANCELED�waitForCopyThread�EVENT_END_COPY_JOB���/usr/share/hplip/makecopies.py�<module>r�s�
��.��!�	�
��
x���	�
�	�#����0�0����f�m�m�G�Y��W�d�)�8�4�#�^�^�D�e�U�TX�Z�����V�
*�
*�w�
�x����[�F�G�6��j�,��j�#�
�
�
�j�,��(�+�+�q�)�*��,�
���C�H�H�Q�K����	��	+�,�
�
��	�����
����
�G5�D�A�q��'�'�	��Q��J�
��>��K�K�H�I��J�
�"�_��K�K�I�J��J�	
�"�	"�	��1�v�H�
�b�=��K�K�I�J��H�
��\��K�K�I�J��H��B���	
�!�	!�
�G�G�I�O�O�����;��-�-�G�
�\�\�&�
!��/�/�G�
�\�\�&�
!��5�5�G�
�\�\�&�
!��.�.�G�
�&�[��-�-�G�
�K�K�F�G�	
�4�	4���	��A�I�I�c�2�.�/�I�
�r�>��K�K�E�F��I�
��_��K�K�F�G��I�	
�=�	=��4�4��OG5�V�#�0�0�0�^��K�K�P�Q��8���U��$�u�$�$�&��I�I�t�w~�~���C�H�H�Q�K�%�u�%�%�'��I�I�t�w~�~���C�H�H�Q�K��8���U�����
�	��8��3�8�8�$���;��-�-��e�X�6�C��y�y�{�h�&��*�+�+�-�.���	�	�3�c�9�:��9�9�;�#���A�
)��y�y��~���1��h�h��1�v�&��

�I�I�>��D�E���%�E�#�a�'�G��I�I�,�w�6�7��Z�Z���)>�)>�?�F���%�%�e�,����#�:��I�I�0�1��I�I�(�3�.�/����w�s�|�,��D�K�
�� � �����0@�0@��0E�F��h��&�s�J��'1�8�W�'0�+�?�
�	�������-�(�	��I�I�,�-��M�M�O�
	�0�=�
��s�x�x�(�C�"�4��4�C��H�H�J�
��	�	�0�1��	�	��

��C�H�H�Q�K�^/�"�f�"�"�:�|�<��V	�
����
��%�.1�j�j��9R�9R�.S�+�K���#�,/�J�J�s�7N�7N�,O�)�K���$�-0�Z�Z��8P�8P�-Q�*�K���?�+.�:�:�c�6L�6L�+M�(�K���&�3�=�=�<L�+L�/2�z�z�#�:T�:T�/U�,�K��"%�"A�"A�K�-0�Z�Z��8X�8X�-Y�*��]�/2�z�z�#�:\�:\�/]�,��_��v�v�z�z�*�.>�?�H��I�I�h���-�-�!�=�=���I�I�'�*�4�5��I�I�n�x�/�0��I�I�&��2�3��I�I�n�w�.�/��I�I�(�;�6�7��I�I�*�]�:�;��I�I�,��>�?��I�I�o��0�1�&�5�;�;�=�L�%�%�+�+�-�K��H�H�Z��9��k�8�!�;�
0�
�D��"�(�(�*��!-�!1�!1�!�!4����!3�!3�3��	�	�&�)� ��F�$<�$<�f�>V�>V�#W�W�����1� ��6�#7�#7�7�����.� ��F�$7�$7��9K�9K�#L�L�!�V�%8�%8�8��I�I�o�6��M�M�*=�>�#(�D�!�#�v�'9�'9�9�#(�D�!�9#�(�(�*�<��
�
�1�
�?�D
�I�I�K������M�M�$�%��H�H�R�L��H�H�W���k�	��K�K�H�I��J�	���	��K�K�H�I��H�	��N�	��K�K�F�G��I�	��P�	��I�I�D�E��C�H�H�Q�K�	��$�
)����h�h��Q�x�(��
)��0�<�<�
��
��!�	��	���	��I�I�D�E��C�H�H�Q�K�	��%�
�������
��H�
��	�	�!�%�%� ���������
��@!�;�;�����<
�I�I�K���/��	�	�0�1�����,�,�-��
�
�-�.�/�s�e�e4�?f�f2�'g!�++h�
!h�-h#�&!i�k�1Di0�9D2k�,j0�=C(k�&k�=k�e1�0e1�4f�f�f/�.f/�2(g�g�!g?�>g?�h�h�h �h �#(i�i�i-�,i-�0j-�5-j(�"k�(j-�-k�0k�k�k�k�k�k�Al&�%l&

Zerion Mini Shell 1.0