%PDF- %PDF-
Mini Shell

Mini Shell

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

�

=	f�<��>�ddlZddl�ddlmZddlmZddl�ddl�ddlm	Z	ddlm
Z
ddl�ddl�ddl
�Gd�d	e�ZGd
�de�ZGd�d
e�ZGd�de�ZGd�de�ZGd�de�ZGd�de�ZGd�de�ZGd�de�Zy)�N)�*)�utils)�cups�)�PY3)�
to_unicodec��eZdZdd�Zd�Zy)�RangeValidatorNc�0�tj||�y�N��
QValidator�__init__��self�parent�names   �,/usr/share/hplip/ui5/printsettingstoolbox.pyrzRangeValidator.__init__*������D�&�)�c��t|�|dz
dD]8}|td�vrtj||fcStj||fcSy)Nrz
0123456789,- �rr�Invalid�
Acceptable�r�input�pos�xs    r�validatezRangeValidator.validate.sT���E�"�3�q�5�6�*�	5�A��
�?�3�3�!�)�)�5�#�5�5��(�(�%��4�4�	5r�NN��__name__�
__module__�__qualname__rr�rrr
r
)���*�5rr
c��eZdZdd�Zd�Zy)�PinValidatorNc�0�tj||�yrr
rs   rrzPinValidator.__init__6rrc��t|�|dz
dD]8}|td�vrtj||fcStj||fcSy)Nr�
0123456789rrs    rrzPinValidator.validate:sT���E�"�3�q�5�6�*�	5�A��
�<�0�0�!�)�)�5�#�5�5��(�(�%��4�4�		5rr r!r%rrr(r(5s��*�5rr(c��eZdZdd�Zd�Zy)�UsernameAndJobnameValidatorNc�0�tj||�yrr
rs   rrz$UsernameAndJobnameValidator.__init__Crrc��t|�|dz
dD]8}|td�vrtj||fcStj||fcSy)Nrz /=,.:;'"[]{}-+!@#$%^&*()rrs    rrz$UsernameAndJobnameValidator.validateGsU���E�"�3�q�5�6�*�	5�A��J�;�<�<�!�)�)�5�#�5�5��(�(�%��4�4�	5rr r!r%rrr-r-Br&rr-c�:�eZdZejddfd�Zd�Zd�Zy)�OptionComboBoxNFc��tj||�||_||_||_||_||_|	|_|
|_|j|�yr)
�	QComboBoxr�group�option�choices�default�typ�other�
job_option�
setObjectName)r�rwrrr4r5r6r7r8r9r:s           rrzOptionComboBox.__init__OsQ�����4��(���
���������������
�$������4� rc��||_yr��
pushbutton�rr?s  r�setDefaultPushbuttonz#OptionComboBox.setDefaultPushbutton]�	��$��rc��||_yr)r9)rr9s  r�setOtherzOptionComboBox.setOtheras	����
r)r"r#r$r�PPD_UI_PICKONErrArDr%rrr1r1Ns���(�(���!�%�rr1c��eZdZdd�Zd�Zy)�
OptionSpinBoxc��tj||�||_||_||_||_|j
|�yr)�QSpinBoxrr4r5r7r:r;�rrrr4r5r7r:s       rrzOptionSpinBox.__init__gs<�����$��'���
�������$������4� rc��||_yrr>r@s  rrAz"OptionSpinBox.setDefaultPushbuttonprBrN�F�r"r#r$rrAr%rrrGrGf���!�%rrGc��eZdZdd�Zd�Zy)�OptionRadioButtonc��tj||�||_||_||_||_|j
|�yr��QRadioButtonrr4r5r7r:r;rJs       rrzOptionRadioButton.__init__vs<�����d�F�+���
�������$������4� rc��||_yrr>r@s  rrAz&OptionRadioButton.setDefaultPushbuttonrBrNrLrMr%rrrPrPurNrrPc��eZdZ	dd�Zy)�DefaultPushButtonc
��tj||�||_||_||_||_||_||_|	|_|j|�yr)
�QPushButtonrr4r5r7�controlr8r6r:r;)
rrrr4r5r6r7rYr8r:s
          rrzDefaultPushButton.__init__�sQ�����T�6�*���
����������������$������4� rNrL)r"r#r$rr%rrrVrV�s
��38�
!rrVc��eZdZd�Zd�Zd�Zy)�PageRangeRadioButtonc��tj||�||_||_||_d|_|j
|�y)NTrR)rrrr4r5r7s      rrzPageRangeRadioButton.__init__�s<�����d�F�+���
�������������4� rc��||_yr)�edit_control)rr^s  r�setRangeEditz!PageRangeRadioButton.setRangeEdit�s
��(��rc��||_yrr>r@s  rrAz)PageRangeRadioButton.setDefaultPushbutton�rBrN)r"r#r$rr_rAr%rrr[r[�s��!�)�%rr[c��eZdZd(d�Zd)d�Zd�Zd�Zd�Zd�Zd*d�Z	d	�Z
d
�Z	d�Zd�Z
d
�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Z d �Z!d!�Z"d"�Z#d#�Z$d$�Z%d%�Z&d&�Z'd)d'�Z(y)+�PrintSettingsToolboxc�D�tj||�||_tt	dd��|_tt	dd��|_d|_i|_d|_	d|_
d|_|jtj|j�y)N�plus�16x16�minusrF)�QToolBoxr�include_job_options�QIcon�load_pixmap�	plus_icon�
minus_icon�	last_item�job_options�job_storage_enable�ppd_type�	pin_count�currentChanged�int�connect�#PrintSettingsToolbox_currentChanged)rrrhs   rrzPrintSettingsToolbox.__init__�s������$��'�#6�� ��{�6�7�;�<�����G�W� =�>���������"'�����
����	
���C� �(�(��)Q�)Q�RrNc
�J�|�|sgSg}	t|jd�}|dkrd}tj	d�n|dkDrd}tj	d�|jd}	tj|�}|}|jd}tj�tj|j�ttj��}d	|vr`d
|vr|jd
�}	nd}	|jdd
�|jdd�|jd|	�|jdd�tj �tj|j�|j"dk(r!|j$dk(r|jdd�ttj��}tj �t|jdd��}
tj&d�}|D�]�\}}
}}}|
dkDxr	|
dk(xr|}tj&d�rq|r6dj)dd|
zdj)d|dg�d|jg�}ndj)d|jg�}|dkDr�dj)|d|zg�}np|r6dj)dd|
zdj)d|dg�d |jg�}ndj)d!|jg�}|dkDrdj)|d"|zg�}|s|rdj)|d#|zg�}|rdj)|d$|zg�}|j*�rb|j,t.k7�r;|j,t0k(rdj)|d%g�}�n^|j,t2k(r�|j4rVdj)|d&g�}dj)|d'g�}dj)|d(|j6j9d)�zg�}n�dj)|d%g�}dj)|d'g�}n�|j,t:k(r'dj)|d&g�}dj)|d*g�}n�|j,t<k(ru|j4rVdj)|d+g�}dj)|d'g�}dj)|d(|j6j9d)�zg�}ndj)|d+g�}dj)|d,|j>j9d)�jAdd-�zg�}dj)|d.|jBj9d)�jAdd-�zg�}|jDdk(rdj)|d/g�}n'dj)|d0g�}ndj)|d1g�}|sdj)|d2|dg�}|jG|����|S#t$rd}Y���wxYw#t$rtjd|z�gcYSwxYw)3N�copiesrzCopies < 1, setting to 1.�czCopies > 99, setting to 99.�	pagerange�Invalid page range: %s�pageset�HPBookletFilter�HPBookletPageSize�letter�fitplot�true�Duplex�DuplexTumble�PageSize�	number-up�1r�HPDigit�1111�psnupzapplication/postscript�lpr� z-%d��"z| lpr -Pzlpr -Pz-#%dz
| lp -c -dzlp -c -dz-n%dz-o page-ranges=%sz-o page-set=%sz
-o HOLD=PROOFz
-o HOLD=ONz-o HOLDTYPE=PRIVATEz
-o HOLDKEY=%s�asciiz-o HOLDTYPE=PUBLICz
-o HOLD=STOREz-o USERNAME=%s�_z
-o JOBNAME=%sz-o DUPLICATEJOB=APPENDz-o DUPLICATEJOB=REPLACEz-o HOLD=OFFz ")$rsrn�
ValueError�log�warningr�expand_range�errorr�resetOptions�openPPD�cur_printer�dict�
getOptions�get�setPrinterOption�closePPDrprq�which�joinro�job_storage_mode�JOB_STORAGE_TYPE_OFF�JOB_STORAGE_TYPE_PROOF_AND_HOLD�JOB_STORAGE_TYPE_PERSONAL�job_storage_use_pin�job_storage_pin�encode�JOB_STORAGE_TYPE_QUICK_COPY�JOB_STORAGE_TYPE_STORE�job_storage_username�replace�job_storage_jobname�job_storage_job_exist�append)r�	file_list�print_commandsrw�
page_ranger�	all_pages�page_set�current_options�booklet_pagesize�nupr��p�t�d�title�	num_pages�alt_nup�cmds                   r�getPrintCommandsz%PrintSettingsToolbox.getPrintCommands�s�����I��I���	���)�)�(�3�4�F��A�:��F��K�K�3�4�
�b�[��F��K�K�5�6��%�%�k�2�
�	��"�"�:�.�A�
#�N�	��#�#�I�.���������T�%�%�&��t���0�1����/�"�o�5�#2�#6�#6�7J�#K� �#+� ��!�!�)�V�4��!�!�(�N�;��!�!�*�.>�?��!�!�+�s�3��
�
�����T�%�%�&��=�=�A��$�.�.�A�"5�� � ��F�3��t���0�1���
�
���/�%�%�k�1�5�6�����G�$��)2�U	'�%�A�q�!�U�I��Q�w�J�1�(@�#@�J�U�G��{�{�5�!���(�(�G�U�S�[�"�'�'�3��3�-�:P�R\�^b�^n�^n�#o�p�C��(�(�H�d�.>�.>�#?�@�C��A�:��(�(�C��&��#9�:�C���(�(�G�U�S�[�"�'�'�3��3�-�:P�R^�`d�`p�`p�#q�r�C��(�(�J��0@�0@�#A�B�C��A�:��(�(�C��&��#9�:�C����h�h��%8�:�%E�F�G����h�h��%5��%@�A�B���&�&��(�(�,@�@��,�,�0O�O�!�h�h��_�'=�>���.�.�2K�K��3�3�"%�(�(�C��+>�"?�C�"%�(�(�C�1F�+G�"H�C�"%�(�(�C��4�CW�CW�C^�C^�_f�Cg�1g�+h�"i�C�"%�(�(�C��+A�"B�C�"%�(�(�C�1F�+G�"H�C��.�.�2M�M�!�h�h��\�':�;��!�h�h��-A�'B�C���.�.�2H�H��3�3�"%�(�(�C��+A�"B�C�"%�(�(�C�1F�+G�"H�C�"%�(�(�C��4�CW�CW�C^�C^�_f�Cg�1g�+h�"i�C�"%�(�(�C��+A�"B�C��(�(�C�)9�D�<U�<U�<\�<\�]d�<e� ���c�*�*+�$,�-�C��(�(�C��4�;S�;S�;Z�;Z�[b�;c� ���c�*�*+�$,�-�C��1�1�Q�6�!�h�h��-E�'F�G��!�h�h��-F�'G�H���(�(�C��#7�8�C���g�g�s�D�!�S�1�2���!�!�#�&�kU	'�n���Q�	��F�	���	��I�I�.��;�<��I�	�s#�W*�+W<�*W9�8W9�<#X"�!X"c��|dk7rJ|j|j|j�|j||j�||_yy)N���)�setItemIconrmrkrl)r�is  rruz8PrintSettingsToolbox.PrintSettingsToolbox_currentChangedOsA����7����T�^�^�T�^�^�<����Q����0��D�N�rc��.�||_||_d|_|j�r"|j	d�|j�r�"d|_t
j�t
j|j�d}		tt
j��}||_|j�rs|jd|jd��	t|jdd��}|j#d|jd	�tj$|d
dd��||j&d<|jdd�}|j#d|jd
�tj(|ddd��||j&d<|jdd�}|j#d|jd�tj*|d|jd�fd|jd�fd|jd�fgdd��||j&d<|j-�|jj.t0k(�s|jd|jd��|jdd�}|j#d|jd�tj*|d|jd�fd|jd�fd|jd�fd |jd!�fgd�t2j5d"�t2j5d#|z�|jj6jd$d�}t2j5d%|z�|r�|jd&d'�}|j#d&|jd(�tj*|d'|jd)�fd*|jd+�fd,|jd-�fgd'�t2j5d.�t2j5d#|z�|jd/d0�}|j#d/|jd1�tj*|d0|jd2�fd3|jd4�fgd0�t2j5d5�t2j5d#|z�t
j8d6�}|dk(r�t;j<|jd7d8��}|j#d7|jd9�tj>|gd�t2j5d:�t2j5d#|z�|j-�t
j@�}|D�]�}	d;|	jC�vrt2j5d<��,	t
jD|	�\}
}|
d=k(r	d>}
d|_#d@|	jC�v}|	jC�dAk(r|jdB�}
|j|	tM|
��t2j5dCtM|
�z�t2j5dD|z�t
jN|	�}
|
D�]�}t2j5dEtQ|�z�dF|jC�vrt2j5dG��M	t
jR|	|�\}}}}|jC�dKk(r|jdL�}t2j5dMtQ|�z�t2j5dNtQ|�z�t
jT|	|�}d}g}|D]�}t2j5dOtQ|�z�dP|jC�vr(dQ|jC�vrt2j5dR��^t
jV|	||�\}}t2j5dStQ|�z�|r|}|jY||f���|jC�dTk(r|�|}n|}|dUk(r&|j#||tj$dVdWdV����|j#|||||||����|j-���|jdX|jdY��|jdZd�}|j#dZ|jd[�tj*|d|jd\�fd]|jd^�fd|jd_�fgd�t2j5d`�t2j5da|z�|jdbdc�}|j#db|jdd�tj*|de|jdf�fdg|jdh�fdi|jdj�fdc|jdk�fdl|jdm�fdn|jdo�fdp|jdq�fdr|jds�fgdc�t2j5dt�t2j5da|z�|jdudv�}|j#du|jdw�tj*|dx|jdy�fdz|jd{�fdv|jd|�fd}|jd~�fd|jd��fgdv�t2j5d��t2j5da|z�|j-�|jj.t0k(�s)|jd�|jd���t|jd�d���}t2j5d��t2j5da|z�|j#d�|jd��tj$|d�d�d����t|jd�d���}t2j5d��t2j5da|z�|j#d�|jd��tj$|d�d��|j-�|jd�|jd���t;j<|jd�d���}|j#d�|jd��tj>|gd�|jd�d��}|j#d�|jd��tj*|d�|jd��fd�|jd��fd�|jd��fd�|jd��fd�|jd��fd�|jd��fd�|jd��fd�|jd��fd�|jd��fg	d��t2j5d��t2j5da|z�|jj.t0k(s�t|jd�d���}t2j5d��t2j5da|z�|j#d�|jd��tj$|d�d�d����t|jd�d��}t2j5d��t2j5da|z�|j#d�|jd��tj$|d�d�t|jd�d���}t2j5d��t2j5da|z�|j#d�|jd��tj$|d�d�d����t|jd�d���}t2j5d��t2j5da|z�|j#d�|jd��tj$|d�d�d����|j-�|jd�|jd���t2j5d��t;j<|jd�d8��}|j#d�|jd��tj>|gd�t2j5d��t2j5da|z�|jj.t0k(�s|jd�dv�j[d��}	|d}	|d}|j#d�|jd��tj^||fdv|jd��fd�|jdëfd�|jdūfd�|jdǫfd�|jdɫfd�|jd˫fd�|jdͫfgdΫt2j5dϫt2j5d�|�d�|���t;j<|jd�d8��}|j#d�|jdҫtj>|gd�t2j5dӫt2j5da|z�|j-�d�}t
j`||�}|��t2j5d�|z�t2j5d�tc|�z�|jd�|jdث�|j#d�|jdګtjdtc|�g�|j#dK|jd۫tjd|g|�|j-�t2j5dܫd|_3|jf�rtc|jd�dޫdd��|_4tc|jd�tjjl�dd��|_7tc|jd�tcd��dd��|_8tc|jd�tcd���}tc|jd�tcd���}d�|_9tc|jd�tcd���}d|_:d|_;tx|_=|d�k(rtx|_=n�|d�k(r-|tcd�k(rt||_=nqt~|_=d|_9n^|tcd�k(r-|tcd�k(rt�|_=n6t~|_=d|_9n#|tcd�k(rt�|_=|d�k(|_9|tcd�k(rt�|_Cnt�|_C|jd�|jd��|j#d�|jd�tj�ddd�|j#d�|jd�tj�ddd�|j#d�|jd��tj�ddd�|j#d�|jd��tj�ddd�|j#d�|jd��tj�ddd�|j-�|j��t
j��d�|_y#t $rd}Y���wxYw#tH$rt2jKd?|	z�Y���wxYw#tH$r t2jKdH|�dI|	�dJ��Y���wxYw#t\$rdv}Y��<wxYw#t\$rdv}Y��HwxYw#t
j��d�|_wxYw)�NrTr�rrnzJob Optionsrwr�zNumber of copies)rrx)r:ryz
Page Ranger{�allzPage Set�AllPages�even�Even�odd�Odd�basic�Basiczorientation-requested�3zPage Orientation�Portrait�4�	Landscape�5zReverse landscape�6zReverse portraitzOption: orientation-requestedzCurrent value: %s�duplexerz
Duplexer = %d�sidesz	one-sidedz(Duplex (Print on both sides of the page)zSingle sidedztwo-sided-long-edgezTwo sided (long edge)ztwo-sided-short-edgezTwo sided (short edge)z
Option: sides�outputorder�normalzOutput OrderzNormal (Print first page first)�reversez Reversed (Print last page first)zOption: outputorder�collate�Collate�0z(Collate (Group together multiple copies)zOption: Collate�jobretentionzHPJobRetention skipped.�JCLzSecure PrintingzGroup %s returned None�install�printoutmodez2Quality (also see 'Printout Mode' under 'General')z
  Text: %szNum subgroups: %dz  Option: %s�
pageregionzPage Region skipped.zOption z
 in group z returned None�quality�Qualityz    Text: %sz    Defchoice: %sz    Choice: %s�pagesize�customzSkipped.z      Text: %s�
outputmodez[Pin-4 Digits]iW)��i'r�z/N-Up (Multiple document pages per printed page)r�zPages per Sheetz1 page per sheet�2z2 pages per sheetz4 pages per sheetz  Option: number-upz  Current value: %sznumber-up-layout�lrtb�Layout�btlrzBottom to top, left to right�btrlzBottom to top, right to left�lrbtzLeft to right, bottom to topzLeft to right, top to bottom�rlbtzRight to left, bottom to top�rltbzRight to left, top to bottom�tblrzTop to bottom, left to right�tbrlzTop to bottom, right to leftz  Option: number-up-layoutzpage-border�nonezPrinted Border Around Each Page�doublezTwo thin borderszdouble-thickzTwo thick bordersz	No border�singlezOne thin borderzsingle-thickzOne thick borderz  Option: page-border�
adjustmentzPrintout Appearance�
brightness�dz  Option: brightness�
Brightness)r��z %)�suffix�gammar�z  Option: gamma�Gamma)ri'�imagezImage Printingr�falsezFit to Page�position�centerzPosition on Page�Centered�top�Top�left�Left�right�Rightztop-leftzTop leftz	top-rightz	Top right�bottom�Bottomzbottom-leftzBottom leftzbottom-rightzBottom rightz  Option: position�
saturationz  Option: saturation�
Saturation�huez
  Option: huezHue (color shift/rotation))i����r�znatural-scalingz  Option: natural-scalingz%"Natural" Scaling (relative to image))ri �scalingz  Option: scalingzScaling (relative to page)�misc�
MiscellaneouszGroup: Misc�prettyprintz:"Pretty Print" Text Documents (Add headers and formatting)z  Option: prettyprint�
job-sheets�,zBanner PageszNo banner page�
classified�
Classified�confidential�Confidential�secret�Secret�standard�Standard�	topsecretz
Top secret�unclassified�Unclassified)r�r�z  Option: job-sheetsz  Current value: �mirrorzMirror Printingz  Option: mirror�
OutputModeDPIz(Adding Group: Summary outputmode is : %sz,Adding Group: Summary outputmode dpi is : %s�sumry�Summary�
colorinput�Color Input / Black Render�
Print QualityzEnd adding Group: Summary�HOLDKEY�0000��USERNAME��JOBNAME�Untitled�HOLD�OFF�HOLDTYPE�PUBLICF�DUPLICATEJOB�REPLACE�ON�PROOF�STORE�PRIVATE�
jobstoragezJob Storage and Secure Printingzjob-storage-mode�Modezjob-storage-pinz#Make job private (use PIN to print)zjob-storage-usernamez"User name (for job identification)zjob-storage-idz$Job name/ID (for job identification)zjob-storage-id-existsz If job name/ID already exists...)L�
cur_devicer�r��count�
removeItem�loadingrr�r�r�r�rh�beginControlGroup�_PrintSettingsToolbox__trrsr�r��
addControlRow�
UI_SPINNERrn�
UI_PAGE_RANGErE�endControlGroup�device_type�DEVICE_TYPE_FAXr��debug�dq�duplicateSectionr�to_bool�PPD_UI_BOOLEAN�getGroupList�lower�getGrouprp�	TypeError�warn�str�
getOptionList�repr�	getOption�
getChoiceList�	getChoicer��split�
IndexError�UI_BANNER_JOB_SHEETS�findPPDAttributer�UI_INFOror��prop�usernamer�r�r��job_storage_auto_username�job_storage_auto_jobnamer�r�r�r�r�r�� JOB_STORAGE_EXISTING_JOB_REPLACEr��$JOB_STORAGE_EXISTING_JOB_APPEND_1_99�UI_JOB_STORAGE_MODE�UI_JOB_STORAGE_PIN�UI_JOB_STORAGE_USERNAME�UI_JOB_STORAGE_ID�UI_JOB_STORAGE_ID_EXISTS�updateJobStorageControlsr�) rr2r��cur_outputmoder��currentr��to_add�groups�g�text�
num_subgroups�	read_only�options�o�option_text�	defchoice�
conflicted�uir6�value�choice_data�c�choice_text�marked�start�end�quality_attr_name�cur_outputmode_dpi�hold�holdtype�	duplicates                                 r�updateUizPrintSettingsToolbox.updateUiVs���$���&���#����j�j�l��O�O�A���j�j�l�����������T�%�%�&���V	!��"&�t���'8�"9��'6��$��+�+��*�*�=�$�)�)�M�:R�S�$�"%�o�&9�&9�(�C�&H�"I���&�&�x����;M�1N�����'�1��'�O�18�D�$�$�X�.�.�1�1�+�r�B�G��&�&�{�D�I�I�l�4K��*�*�G�T�4�D�'�R�5<�D�$�$�[�1�.�1�1�)�U�C�G��&�&�y�$�)�)�J�2G��+�+�W�����:�!6�7� �$�)�)�F�"3�4�����5�!1�2�4�5:�t�	'�M�3:�D�$�$�Y�/��(�(�*����2�2�o�E��*�*�7�D�I�I�g�4F�G�.�1�1�2I�3�O�G��&�&�'>��	�	�J\�@]��+�+�W��t�y�y��4�5��t�y�y��5�6��t�y�y�)<�=�>��t�y�y�);�<�=�?�AD�E��I�I�=�>��I�I�1�G�;�<�#���1�1�5�5�j�!�D�H��I�I�o��8�9��"1�"5�"5�g�{�"K���*�*�7� �I�I�&P�Q� �/�/��)�$�)�)�N�*C�D�3�T�Y�Y�?V�5W�X�4�d�i�i�@X�6Y�Z�\�]h�j��	�	�/�2��	�	�"5��"?�@�-�1�1�-��J�G��&�&�}��	�	�.�1��+�+�W�"�D�I�I�.O�$P�Q�#�T�Y�Y�/Q�%R�S�U�V^�	`��I�I�3�4��I�I�1�G�;�<�"�2�2�9�=�F���{�"'�-�-��0C�0C�I�s�0S�"T���*�*�9� �I�I�&P�Q� �/�/����#�
�	�	�"3�4��	�	�"5��"?�@��(�(�*��*�*�,�� �Q+�A�%�����2��	�	�";�<� �!�.2�m�m�A�.>�+��m��5�=�"3�4�+,�4�=�
!*�Q�W�W�Y� 6�I��w�w�y�N�2�#�y�y�)]�^���*�*�1�c�$�i�8��I�I�l�S��Y�6�7��I�I�1�M�A�B�"�0�0��3�G�%�2l���	�	�.�4��7�":�;�'�1�7�7�9�4��I�I�&<�=�$�%�FJ�n�n�UV�XY�FZ�B�K��J���7�7�9�	�1�*.�)�)�I�*>�K��	�	�.�4��3D�"D�E��	�	�"5��Y��"G�H�"&�"4�"4�Q��":�� $��&(��!(�A�A��I�I�&6��a��&@�A� *�Q�W�W�Y�6�8�q�w�w�y�;P� #�	�	�*� 5� (�26�.�.��A�q�2I�/�K�� �I�I�&6��k�9J�&J�K�%�()��'�.�.��;�/?�@�!A�$�7�7�9��4�$�0�16��1:��&�*:�:��-�-�a��d�o�o�t�Ua�cg�h��-�-�a��b�%��V_�aj�k�e2l�h�(�(�*�cQ+�H�&�&�u�d�i�i�8i�.j�k�)�-�-�k�3�?���"�"�;��	�	�:K�0L��'�'���4�9�9�%7�8�9��4�9�9�%8�9�:��4�9�9�%8�9�:�<�=@�	B��	�	�/�0��	�	�/�'�9�:�)�-�-�.@�&�I���"�"�#5�t�y�y��7J��'�'���d�i�i�(F�G�H��d�i�i�(F�G�H��d�i�i�(F�G�H��d�i�i�(F�G�H��d�i�i�(F�G�H��d�i�i�(F�G�H��d�i�i�(F�G�H��d�i�i�(F�G�H�K�MS�	T��	�	�6�7��	�	�/�'�9�:�)�-�-�m�V�D���"�"�=��I�I�?�@��'�'����	�	�*<� =�>�$�d�i�i�0C�&D�E��d�i�i��4�5���	�	�*;� <�=�$�d�i�i�0B�&C�D�	F�HN�O��	�	�1�2��	�	�/�'�9�:��$�$�&����2�2�o�E��*�*�<����CX�9Y�Z�!�/�"5�"5�l�C�"H�I�G��I�I�4�5��I�I�3�g�=�>��&�&�|�T�Y�Y�|�5L�����(�C��'�N�"�/�"5�"5�g�t�"D�E�G��I�I�/�0��I�I�3�g�=�>��&�&�w��	�	�'�0B�D�O�O�U\�"�D�*��(�(�*�^�&�&�w��	�	�:J�0K�L��-�-��(;�(;�I�w�(O�P���"�"�9��I�I�m�,��'�'�����
*�-�-�j�(�C���"�"�:�t�y�y�9K�/L��'�'����	�	�*� 5�6��T�Y�Y�u�-�.��d�i�i��/�0��t�y�y��1�2� �$�)�)�J�"7�8�!�4�9�9�[�#9�:���	�	�(� 3�4�#�T�Y�Y�}�%=�>�$�d�i�i��&?�@�B�DL�
M��	�	�.�/��	�	�/�'�9�:����2�2�o�E�!�/�"5�"5�l�C�"H�I�G��I�I�4�5��I�I�3�g�=�>��&�&�|�T�Y�Y�|�5L�����(�C��'�N�"�/�"5�"5�e�Q�"?�@�G��I�I�o�.��I�I�3�g�=�>��&�&�u�d�i�i�8T�.U�����#�Q�(��o�1�1�2C�S�I�J���	�	�5�6��	�	�/�'�9�:��"�"�#4��I�I�E�F��O�O�W�h��D�#�J��o�1�1�)�S�A�B���	�	�-�.��	�	�/�'�9�:��"�"�9�d�i�i�8T�.U��O�O�W��c�$�#�0��$�$�&��&�&�v�t�y�y��/I�J��	�	�-�(��-�-��(;�(;�M�3�(O�P���"�"�=��I�I�Z�[��'�'��"�a�9��	�	�1�2��	�	�/�'�9�:����2�2�o�E�-�1�1�,��G�M�M�c�R�G�'� '��
��%�%�a�j��
�&�&�|�T�Y�Y�~�5N�PT�Pi�Pi���� �$�)�)�,<�"=�>�&��	�	�,�(?�@�(�$�)�)�N�*C�D�"�D�I�I�h�$7�8�$�d�i�i�
�&;�<�%�t�y�y��'>�?�(�$�)�)�N�*C�D�
F�HX�Y��I�I�4�5��I�I�%��E�F��-�-��(;�(;�H�c�(J�K���"�"�8�T�Y�Y�7H�-I��'�'��"�a�9��	�	�,�-��	�	�/�'�9�:��$�$�&�
%4�!�%)�%:�%:�;L�n�%]�"�%�1��I�I�H�>�Y�Z��I�I�L�z�[m�On�n�o��*�*�7�D�I�I�i�4H�I��&�&�|�T�Y�Y�?[�5\����j�2D�&E�r�9�V��&�&�y�$�)�)�O�2L����n�b�)�E��(�(�*��I�I�9�:�+,��'��*�*�+5�o�6I�6I�)�U[�6\�]_�^_�6`�+a�D�(�0:�?�;N�;N�z�[_�[h�[h�;i�jm�km�;n�0o�D�-�/9�/�:M�:M�i�Yc�dn�Yo�:p�qt�rt�:u�/v�D�,�%�o�&9�&9�&�*�U�BS�&T�U�D�)�/�*=�*=�j�*�U]�J^�*_�`�H�/4�D�,� *�?�+>�+>�~�z�Zc�Od�+e� f�I�59�D�2�48�D�1�,@�D�)��u�}�0D��-����#�z�(�';�;�4O�D�1�5N�D�1�7;�D�4���G�!4�4�#�z�(�';�;�4S�D�1�4M�D�1�7;�D�4���G�!4�4�0F��-�4<�	�4I��0� �J�y�$9�9�5U��2�5Y��2��*�*�<����Cd�9e�f��&�&�'9�4�9�9�V�;L�'+�'?�'?��t�T�S��&�&�'8�$�)�)�Di�:j�&*�&=�&=�t�T�4�R��&�&�'=�t�y�y�Im�?n�'+�'C�'C�T�4�QU�W��&�&�'7����Ci�9j�&*�&<�&<�d�D�$�P��&�&�'>��	�	�Jl�@m�'+�'D�'D�d�D�RV�X��(�(�*��1�1�3�
�M�M�O� �D�L��W&�$�"#��$��\%�!����!9�A�!=�>� �!��8 )�%��H�H�a�QR�%S�T�$�%��N&�'� &��'��
&�%�$��%��h
�M�M�O� �D�L�s��AA]�A[�4RA]�&A[�9C.A]�(A\�h:A]�C>A\1�DA]�D	V&A]�[A[�[A]�[A[�[A]�[!A\�[>A]�\A\�\A]�\%A\.�\*A]�\-A\.�\.A]�\1A]�\<A]�\?A]�]A]�]A]�]A]�]A]�]A]�]A]2c��tjd|z�d|_t�|_t|j�|_||_||_y)NzBeginGroup: %sr)	r�r>�row�QWidget�widget�QGridLayout�
gridlayoutr4rd)rr4rds   rr6z&PrintSettingsToolbox.beginControlGroup}sB���	�	�"�U�*�+�����i���%�d�k�k�2�����
���	rc��tjd|jz�tddtj
tj�}|xjdz
c_|jj||jddd�|j|j|j�}|r|j||j�n|j||j�d\|_
|_y)NzEndGroup: %s�rrr )r�r>r4�QSpacerItem�QSizePolicy�Minimum�	Expandingr{r�addItemr}rdr�rkrl)r�spacerr�s   rr;z$PrintSettingsToolbox.endControlGroup�s����	�	�.�4�:�:�-�.��R��[�%8�%8�+�:O�:O�P�����A�
�����������!�Q��:��L�L����d�i�i�0������Q����/����Q����0�'1�$���T�_rc
�C�|tjk(�r�t�}
|
jd�t	|j
�}|jd�|
j
|�tddtjtj�}|
j|�t|j
�}
t|
�}t|
d|j|||	�}|j
|dddd�t|
d|j|||	�}|j
|dddd�|
j
|
�t!|j
d|j|||||f||	�	}|j#|�|j#|�|
j
|�|j$j'|
|j(ddd�|j+|�|j+|j-d	��|j+|j-d
��|j+d�|dk(s
|d
k(s|dk(rd}nd}|dk(s
|d
k(s|dk(rd}nd}||k(r|j/d�|j0j3|j4�|r|j7d�n|j7d�|j8t:j3|j<�|�r�|j/d�|j/d�|j/d��n�|tj>k(�r�t�}
|
jd�t	|j
�}|jd�|
j
|�tddtjtj�}|
j|�tAd|j
d|j||||d|	�
}|
j
|�t!|j
d|j||||||	�	}|j#|�|
j
|�|j$j'|
|j(ddd�|j+|�|j+d�d\}}}|D]X\}}|jC�}|�||jC�k(r|}||jC�k(r|}|jE||�|dz
}�Z|�|jG|�n|jGd�|�2|jC�|jC�k(r|j/d�|j0j3|j4�|jHdj3|jJ�|jLdj3|jN�|}�n|tjPk(�r.t�}
|
jd�t	|j
�}|jd�|
j
|�tddtjtj�}|
j|�tS|j
d|j|||	�}|
j
|�t!|j
d|j||||||	�	}|j#|�|
j
|�|j$j'|
|j(ddd�|\}}|jU|�|jW|�|jY|�|r|j[|�|j+|�|j+d�|j\t^j3|j`�|j0j3|j4�|j/||k(�|�r�|j/d�|j/d��n�|tjbk(�rt�}
|
jd�t	|j
�}|jd�|
j
|�tddtjtj�}|
j|�t	|j
�}|
j
|�tAd|j
d|jd|||�}|
j
|�t	|j
�}|
j
|�tAd|j
d|jd||||�	} |
j
| �|je| �t!|j
d|j||||| f||	�	}|
j
|�|j$j'|
|j(ddd�|j#|�| j#|�|j+|�|j+d�|j+|j-d��|j+|j-d��d\}!}"}}#|D]�\}}|jC�}|�0||djC�k(r|}!||djC�k(r|}"||djC�k(r|}||djC�k(r|}#|jEd|�| jEd|���|!� |jG|jg|!��|"� | jG| jg|"��|�_|djC�|djC�k(r8|djC�|djC�k(r|j/d�|jhdj3|jj�| jhdj3|jj�|j0j3|j4��n�|tjlk(rtnjqd��n�|tjrk(rtnjqd��nh|tjtk(�rct�}
|
jd�t	|j
�}|jd�|
j
|�tddtjtj�}|
j|�t|j
�}
t|
�}tw|
d|j||�}$|j
|$dddd�tw|
d |j||�}%|j
|%dddd�|
j
|
�ty|j
�}&|
j
|&�|&j{t}|&��|$j|&�|%j|&�t!|j
d|j||||$|%|&f||	�	}|$j#|�|%j#|�|
j
|�|j$j'|
|j(ddd�|j+|�|$j+|j-d!��|%j+|j-d"��|j+d�|j/d�|$j7d�|&j/d�|$j8t:j3|j��|%j8t:j3|j��|j0j3|j4�|&j�dj3|j��|&j�j3|j���n�|tj�k(�r�t�}
|
jd�t	|j
�}|jd�|
j
|�tddtjtj�}|
j|�t�|j
�|_H|
j
|j��t�|j
�|_J|
j
|j��|j$j'|
|j(ddd�|j+|�|j�j+|j-d��|j�j|j-d#�t��|j�j|j-d$�t��|j�j|j-d%�t��|j�j|j-d&�t��|j�j|j-d'�t��|j�jht^j3|j��|j�j0j3|j���n0|tj�k(�r�t�}
|
jd�t	|j
�}|jd�|
j
|�tddtjtj�}|
j|�t|j
�|_St|j��}t�|j��|_U|j
|j�dddd�t�|j��|_V|j
|j�dddd�ty|j��|_W|j�j�d(�|j�j{t�|j���|j
|j�dd)dd�|
j
|j��t�|j
�|_Z|
j
|j��|j�j+|j-d*��|j�j+|j-d+��|j$j'|
|j(ddd�|j+|�|j�j+|j-d��|j�j8t:j3|j��|j�j8t:j3|j��|j�j0j3|j��|j�j�dj3|j���n�|tj�k(�r�t�}
|
jd�t	|j
�}|jd�|
j
|�|j+|�tddtjtj�}|
j|�t|j
�|_at|j��}t�|j��|_b|j
|j�dddd�t�|j��|_c|j
|j�dddd�ty|j��|_d|j�j{t�|j���|j�j�d,�|j
|j�dd)dd�|
j
|j��t�|j
�|_f|
j
|j��|j�j+|j-d-��|j�j+|j-d.��|j�j+|j-d��|j�j8t:j3|j��|j�j8t:j3|j��|j�j0j3|j��|j�j�dj3|j��|j$j'|
|j(ddd��n�|tj�k(�r�t�}
|
jd�t	|j
�}|jd�|
j
|�|j+|�tddtjtj�}|
j|�t|j
�|_lt|j��}t�|j��|_m|j
|j�dddd�t�|j��|_n|j
|j�dddd�ty|j��|_o|j�j{t�|j���|j�j�d,�|j
|j�dd)dd�|
j
|j��t�|j
�|_p|
j
|j��|j�j+|j-d-��|j�j+|j-d.��|j�j+|j-d��|j�j8t:j3|j��|j�j8t:j3|j��|j�j0j3|j��|j�j�dj3|j��|j$j'|
|j(ddd��n_|tj�k(�r t�}
|
jd�t	|j
�}|jd�|
j
|�|j+|�tddtjtj�}|
j|�t�|j
�|_v|
j
|j��t�|j
�|_w|
j
|j��|j�j|j-d/�t��|j�j|j-d0�t��|j�j+|j-d��|j$j'|
|j(ddd�|j�jht^j3|j��|j�j0j3|j���n+|tj�k(�r�t�}
|
jd�t	|j
�}'|'jd�|
j
|'�|'j+|�tddtjtj�}|
j|�|d1k(rlt	|j
�|_}|j�jd2�|
j
|j��|j�j+|�n�|d3k(rlt	|j
�|_~|j�jd4�|
j
|j��|j�j+|�nHt	|j
�}(|(jd5�|
j
|(�|(j+|�|j$j'|
|j(ddd�n%tnjqd6|j�d7|���|xj(dz
c_y)8N�
HBoxLayout�OptionLabelr��
OnRadioButtonrr�OffRadioButton�defaultPushButton�On�Off�DefaultT�Truer�F�ComboBox�
DefaultButton)rNNzconst QString &�SpinBox�
StartComboBoxrr�EndComboBoxrszStart:zEnd:�NNNNzconst QString&zUnrecognized type: pickmanyz Unrecognized type: units spinner�AllRadioButton�RangeRadioButtonz	All pageszPage Range:zOff/DisabledzProof and HoldzPersonal/Private Jobz
Quick Copyz
Stored Jobr!�z
Public/OffzPrivate/Use PIN:r#�	AutomaticzCustom:zReplace existing jobzUse job name appended with 1-99r�PQValueLabelr�PQColorInputLabel�OptionValuezInvalid UI value: �/)rrB�QHBoxLayoutr;�QLabelr}�	addWidgetr�r�r�r�r��QFramer~rPr4rVrAr�	addLayoutr{�setTextr7�
setEnabled�clickedrt�DefaultButton_clicked�
setChecked�toggled�bool�BoolRadioButtons_clickedrEr1rD�
insertItem�setCurrentIndex�currentIndexChanged�ComboBox_indexChanged�highlighted�ComboBox_highlightedr9rG�
setMinimum�
setMaximum�setValue�	setSuffix�valueChangedrs�SpinBox_valueChangedrPrD�findText�	activated�BannerComboBox_activated�PPD_UI_PICKMANYr�r��UI_UNITS_SPINNERr:r[�	QLineEdit�setValidatorr
r_�PageRangeAllRadio_toggled�PageRangeRangeRadio_toggled�textChanged�PageRangeEdit_textChanged�editingFinished�PageRangeEdit_editingFinishedrYr3�JobStorageModeComboBoxrX�JobStorageModeDefaultButtonr�r�r�r�r�� JobStorageModeComboBox_activated�#JobStorageModeDefaultButton_clickedrZ�JobStoragePinGroupBoxrS�JobStoragePinOffRadioButton�JobStoragePinPrivateRadioButton�JobStoragePinEdit�setMaxLengthr(�JobStoragePinDefaultButton�#JobStoragePinOffRadioButton_toggled�'JobStoragePinPrivateRadioButton_toggled�"JobStoragePinDefaultButton_clicked�
textEdited�JobStoragePinEdit_textEditedr[�JobStorageUsernameGroupBox�!JobStorageUsernameAutoRadioButton�#JobStorageUsernameCustomRadioButton�JobStorageUsernameEditr-�JobStorageUsernameDefaultButton�)JobStorageUsernameAutoRadioButton_toggled�+JobStorageUsernameCustomRadioButton_toggled�'JobStorageUsernameDefaultButton_clicked�!JobStorageUsernameEdit_textEditedr\�JobStorageIDGroupBox�JobStorageIDAutoRadioButton�JobStorageIDCustomRadioButton�JobStorageIDEdit�JobStorageIDDefaultButton�#JobStorageIDAutoRadioButton_toggled�%JobStorageIDCustomRadioButton_toggled�!JobStorageIDDefaultButton_clicked�JobStorageIDEdit_textEditedr]�JobStorageExistingComboBox�JobStorageExistingDefaultButtonrWrX�$JobStorageExistingComboBox_activated�'JobStorageExistingDefaultButton_clickedrRr�r�))rr5rdr8rmr6r7rfr�r:r�r��
SpacerItem�GroupBox�gridlayout1r�r�r�r�r�r�yror�r�rYr��min�max�
StartLabelr��EndLabelr��s�e�zr�r��
PageRangeEdit�
OptionNamer�s)                                         rr8z"PrintSettingsToolbox.addControlRow�sz���$�%�%�%�$��J��$�$�\�2� ����-�K��%�%�m�4�� � ��-�$�R��[�-B�-B�K�DW�DW�X�J����z�*��d�k�k�*�H�%�h�/�K�-�h�����.4�g�z�K�M��!�!�-��!�A�a�8�.�x�9I�4�:�:�/5�w�
�L�N��!�!�.��1�Q�q�9�� � ��*�-�d�k�k�;N�PT�PZ�PZ�\b���=�.�"A�3�
�T�M�
�.�.�}�=��/�/�
�>�� � ��/��O�O�%�%�j�$�(�(�A�q�!�D�����%��!�!�$�)�)�D�/�2��"�"�4�9�9�U�#3�4��!�!�)�,���}����5�F�?��u��u��$��'�V�"3�w�&�7H��w��w�����(�(��/��!�!�)�)�$�*D�*D�E���(�(��.��)�)�$�/��!�!�$�'�/�/��0M�0M�N���(�(��/��)�)�%�0��(�(��/��D�'�'�
'�$��J��$�$�\�2� ����-�K��%�%�m�4�� � ��-�$�R��[�-B�-B�K�DW�DW�X�J����z�*�%�a����j�$�*�*�f�&-�w��T�:�O�H�
� � ��*�-�d�k�k�?�D�J�J�X^���(�C��=�M�
�)�)�-�8�� � ��/��O�O�%�%�j�$�(�(�A�q�!�D�����%��!�!�)�,�#�G�A�q�!��	
���1��G�G�I���$��e�k�k�m�);��A���
�
��'��A��#�#�A�q�)��Q���	
��}��(�(��+��(�(��+�� �U�[�[�]�g�m�m�o�%E��(�(��/�
�!�!�)�)�$�*D�*D�E��(�(�):�;�C�C�D�D^�D^�_�� � �!2�3�;�;�D�<U�<U�V��G�
�D�O�O�
#�$��J��$�$�\�2� ����-�K��%�%�m�4�� � ��-�$�R��[�-B�-B�K�DW�DW�X�J����z�*�#�D�K�K�	�4�:�:�v�w�Xb�c�G�� � ��)�-�d�k�k�/�4�:�:�W]���'�3�
�<�M�
�(�(��7�� � ��/��O�O�%�%�j�$�(�(�A�q�!�D��H�C�����s�#����s�#����U�#���!�!�&�)�����%��!�!�)�,�� � ��%�-�-�d�.G�.G�H��!�!�)�)�$�*D�*D�E��$�$��'�)9�%9�:���"�"�5�)��(�(��/�
�D�-�-�
-�$��J��$�$�\�2� ����-�K��%�%�m�4�� � ��-�$�R��[�-B�-B�K�DW�DW�X�J����z�*�����,�J�� � ��,�*�1�d�k�k�?�D�J�J���'�3�0�M�
� � ��/��d�k�k�*�H�� � ��*�(��D�K�K���
�
�TY�[b���m�-�K�
� � ��-��"�"�;�/�-�d�k�k�?�D�J�J�X^�`g��-��5�s�J�H�M�
� � ��/��O�O�%�%�j�$�(�(�A�q�!�D��.�.�}�=��,�,�]�;�����%��!�!�)�,����t�y�y��2�3����T�Y�Y�v�.�/�/�J�A�q�!�Q��
-���1��G�G�I���$��E�!�H�N�N�,�,����E�!�H�N�N�,�,������
�(�(�*�*��A����
�(�(�*�*��A��(�(��A�.��&�&�q�!�,�!
-�$�}��-�-�m�.D�.D�Q�.G�H��}��+�+�K�,@�,@��,C�D�� ��a���� �G�A�J�$4�$4�$6�6��a���� �G�A�J�$4�$4�$6�6��(�(��/��#�#�$4�5�=�=�d�>[�>[�\��!�!�"2�3�;�;�D�<Y�<Y�Z��!�!�)�)�$�*D�*D�E�
�D�(�(�
(��I�I�3�4�
�D�)�)�
)��I�I�8�9�
�D�&�&�
&�$��J��$�$�\�2� ����-�K��%�%�m�4�� � ��-�$�R��[�-B�-B�K�DW�DW�X�J����z�*��d�k�k�*�H�%�h�/�K�1�(�<L�/3�z�z�6�7�L�N�
�!�!�.��1�Q�q�9�3�H�>P�15���V�W� N��
�!�!�"2�1�Q�q��;�� � ��*�%�d�k�k�2�M�� � ��/��&�&�~�m�'D�E��'�'�
�6��)�)�-�8�-�d�k�k�;N�PT�PZ�PZ�\b���>�3C�]�"S�UX�Zd�f�M�
�/�/�
�>��1�1�-�@�� � ��/��O�O�%�%�j�$�(�(�A�q�!�D�����%��"�"�4�9�9�[�#9�:��$�$�T�Y�Y�}�%=�>��!�!�)�,��$�$�U�+��%�%�d�+��$�$�U�+�
�"�"�4�(�0�0��1O�1O�P��$�$�T�*�2�2�4�3S�3S�T��!�!�)�)�$�*D�*D�E��%�%�&7�8�@�@��A_�A_�`��)�)�1�1�$�2T�2T�U�
�D�,�,�
,�$��J��$�$�\�2� ����-�K��%�%�m�4�� � ��-�$�R��[�-B�-B�K�DW�DW�X�J����z�*�*3�D�K�K�*@�D�'�� � ��!<�!<�=�/:�4�;�;�/G�D�,�� � ��!A�!A�B��O�O�%�%�j�$�(�(�A�q�!�D�����%��,�,�4�4�T�Y�Y�y�5I�J��'�'�/�/��	�	�.�0I�K_�`��'�'�/�/��	�	�:J�0K�Ml�m��'�'�/�/��	�	�:P�0Q�Sl�m��'�'�/�/��	�	�,�0G�Id�e��'�'�/�/��	�	�,�0G�I_�`��'�'�1�1�#�6�>�>��@e�@e�f��,�,�4�4�<�<�d�>f�>f�g��D�+�+�
+�$��J��$�$�\�2� ����-�K��%�%�m�4�� � ��-�$�R��[�-B�-B�K�DW�DW�X�J����z�*�)/����)<�D�&�%�d�&@�&@�A�K�/;�D�<V�<V�/W�D�,��!�!�$�"B�"B�A�q�!�Q�O�3?��@Z�@Z�3[�D�0��!�!�$�"F�"F��1�a�QR�S�%.�t�/I�/I�%J�D�"��"�"�/�/��2��"�"�/�/��T�=S�=S�0T�U��!�!�$�"8�"8�!�Q��1�E�� � ��!;�!;�<�.9�$�+�+�.F�D�+�� � ��!@�!@�A��,�,�4�4�T�Y�Y�|�5L�M��0�0�8�8����CU�9V�W��O�O�%�%�j�$�(�(�A�q�!�D�����%��+�+�3�3�D�I�I�i�4H�I��,�,�4�4�T�:�B�B�D�Dl�Dl�m��0�0�8�8��>�F�F��Ht�Ht�u��+�+�3�3�;�;�T�=d�=d�e��"�"�-�-�.?�@�H�H�$�Jk�Jk�l��D�0�0�
0�$��J��$�$�\�2� ����-�K��%�%�m�4�� � ��-�����%�$�R��[�-B�-B�K�DW�DW�X�J����z�*�.4�T�[�[�.A�D�+�%�d�&E�&E�F�K�5A�$�Ba�Ba�5b�D�2��!�!�$�"H�"H�!�Q�PQ�ST�U�7C�D�Dc�Dc�7d�D�4��!�!�$�"J�"J�A�q�RS�UV�W�*3�D�4S�4S�*T�D�'��'�'�4�4�5P�QU�Ql�Ql�5m�n��'�'�4�4�R�8��!�!�$�"=�"=�q�!�Q��J�� � ��!@�!@�A�3>�t�{�{�3K�D�0�� � ��!E�!E�F��2�2�:�:�4�9�9�[�;Q�R��4�4�<�<�T�Y�Y�y�=Q�R��0�0�8�8����9�9M�N��2�2�:�:�4�@�H�H�$�Jx�Jx�y��4�4�<�<�T�B�J�J�D�L|�L|�}��0�0�8�8�@�@�$�Bn�Bn�o��'�'�2�2�3D�E�M�M�t�Ou�Ou�v��O�O�%�%�j�$�(�(�A�q�!�D�
�D�*�*�
*�$��J��$�$�\�2� ����-�K��%�%�m�4�� � ��-�����%�$�R��[�-B�-B�K�DW�DW�X�J����z�*�(.�t�{�{�(;�D�%�%�d�&?�&?�@�K�/;�D�<U�<U�/V�D�,��!�!�$�"B�"B�A�q�!�Q�O�1=�d�>W�>W�1X�D�.��!�!�$�"D�"D�a��A�q�Q�$-�d�.G�.G�$H�D�!��!�!�.�.�/J�4�K`�K`�/a�b��!�!�.�.�r�2��!�!�$�"7�"7��A�q�!�D�� � ��!:�!:�;�-8����-E�D�*�� � ��!?�!?�@��,�,�4�4�T�Y�Y�{�5K�L��.�.�6�6�t�y�y��7K�L��*�*�2�2�4�9�9�Y�3G�H��,�,�4�4�T�:�B�B�D�Dl�Dl�m��.�.�6�6�t�<�D�D�d�Fp�Fp�q��*�*�2�2�:�:�D�<b�<b�c��!�!�,�,�->�?�G�G��Ii�Ii�j��O�O�%�%�j�$�(�(�A�q�!�D�
�D�1�1�
1�$��J��$�$�\�2� ����-�K��%�%�m�4�� � ��-�����%�$�R��[�-B�-B�K�DW�DW�X�J����z�*�.7����.D�D�+�� � ��!@�!@�A�3>�t�{�{�3K�D�0�� � ��!E�!E�F��+�+�3�3�D�I�I�>T�4U�=�
?�
�+�+�3�3�D�I�I�>_�4`�A�
C�
�0�0�8�8����9�9M�N��O�O�%�%�j�$�(�(�A�q�!�D��+�+�5�5�c�:�B�B�D�Dm�Dm�n��0�0�8�8�@�@�$�Bn�Bn�o�
�D�L�L�
 �$��J��$�$�\�2�����,�J��$�$�]�3�� � ��,����t�$�$�R��[�-B�-B�K�DW�DW�X�J����z�*���&�$*�4�;�;�$7��!��!�!�/�/��?��$�$�T�%6�%6�7��!�!�)�)�%�0��5�5�)/����)<��&��&�&�4�4�5H�I��$�$�T�%;�%;�<��&�&�.�.�u�5�$�T�[�[�1���)�)�-�8��$�$�[�1��#�#�E�*��O�O�%�%�j�$�(�(�A�q�!�D�
�I�I�4�:�:�v�F�G����A�
�rc���t|�}|j�}d}d\}}|jD]\}}||k(s�|}n|jjD]&\}}||jj	�k(s�$|}n|j
dk(r||}}|��|��|j
�|jdj
�k(r[|j
�|jdj
�k(r-|jd�|jjd�y|jjd�|�'|�$|jddj||g��yyy)	Nr rsrrrFTr)
r�senderr6r9�currentTextr5rDr7�removePrinterOptionr?r�r�r�)r�ar��choicerrrsror�s        rr�z-PrintSettingsToolbox.BannerComboBox_activated�sP���q�M����������
��s��N�N�	�D�A�q��A�v����	�
�L�L�(�(�	�D�A�q��F�L�L�,�,�.�.����	�
�=�=�E�!��e�3�E����O��K�K�M�V�^�^�A�.�4�4�6�6��I�I�K�6�>�>�!�,�2�2�4�4��(�(��6��!�!�,�,�U�3����(�(��.�� ����%�%�l�C�H�H�e�S�\�4J�K� �!rc�,�t|�}|j�}d}d}|jD]\}}||k(s�|}n|�v||jk(rg|jr$|j|j
|j<n|j|j�|jjd�y|jjd�|�C|jr||j
|j<y|j|j|�yy�NFT)rr�r6r7r:rnr5r�r?r�r�)rr�r�r�ror�s      rr�z)PrintSettingsToolbox.ComboBox_highlighted�s����q�M������������N�N�	�D�A�q��A�v����	�
��&�F�N�N�":�� � �28�.�.�� � ����/��(�(����7����(�(��/�
���(�(��.��!��$�$�6<�D�$�$�V�]�]�3��)�)�&�-�-��@�	"rc�N�|j�}|jdk(rd|_|js�||jk(rM|j|j�|jjd�|jdk(rId|_y|jjd�|j|jt|��yy	t|�|j|j<y#t$r&|j|j|j<YywxYw)Nr�rFrT)
r�r5rqr:r7r�r?r�r�rHrsrnr�)rr�r�s   rr�z)PrintSettingsToolbox.SpinBox_valueChanged+s���������=�=�I�%��4�>�� � ��F�N�N�"��(�(����7��!�!�,�,�U�3��=�=�I�-�$%�4�>��!�!�,�,�T�2��%�%�f�m�m�S��V�<�	.�
A�25�a�&�� � ����/���
A�28�.�.�� � ����/�
A�s�"C5�5,D$�#D$c��|j�}t|�}|jdk(s|jdk(s|jdk(rtd�|_ntd�|_||jk(r7|j|j�|j
j
d�y|j
j
d�|r|j|jd�y|j|jd�y)NTr�r�Fr�)r�rsr7r�r5r?r�r��r�br�s   rr�z-PrintSettingsToolbox.BoolRadioButtons_clicked@s����������F���>�>�T�!�V�^�^�v�%=����SY�AY� ��Y�F�N� ��Z�F�N�������$�$�V�]�]�3����(�(��/����(�(��.���%�%�f�m�m�V�<��%�%�f�m�m�W�=rc��|j�}t|�}t|dd�}t|dd�}|��|jdk(r�|��|��|jj|�d}t
j|j�t
j||�}tjd|z�t
j�|jj|�tjd|z�yyyyy)Nr�r��
OutputModerz.Outputmode changed, setting outputmode_dpi: %sz0Outputmode changed, setting value outputmode: %s)r�r�getattrr5r�r�rr�r�rQr�r>r�r�)r�currentItemr��
labelPQValaue�labelPQColorInputrt�outputmode_dpis       rr�z*PrintSettingsToolbox.ComboBox_indexChangedSs�������� ��-����n�d�;�
�#�D�*=�t�D���"�v�}�}��'D��Ib�gx�hE����%�%�k�2�!0���L�L��)�)�*�!�2�2�3D�k�R�N��I�I�F��W�X��M�M�O��"�"�*�*�>�:��I�I�H�;�V�W�hE�Ib�'D�"rc���|j�}|jd�|jtjk(�r|j
dk(s|j
dk(s|j
dk(rd|_nd|_|j
rK|jdjd�|jdjtj�nJ|jdjd�|jdjtj�|js|j|j�yy|jtjk(r�d\}}|jD]3\}}||j
k(s�|}|}||j |j<n|��|js|j|j�|jj#|�}|jj%|�|jjtj�yy|jtj&k(rv|jj)|j
�|js|j|j�|jjtj�y|jtj*k(�rd\}}}	}
|jD]2\}}||j
dk(r|}|}	||j
dk(s�/|}|}
�4|�<|jdj#|	�}|jdj%|�|�<|jdj#|
�}|jdj%|�|js|jd	�|jdjtj�y|jtj,k(ri|jdjd�|jdjtj�|jd
jd�yy)NFTr�r�rrr r�rr�)r�r�r8rrBr7rYr��setFocus�Qt�OtherFocusReasonr:r�r5rEr6rnr�r�r9r�rPr:)rr�r�rdror��indexrrrs�
start_text�end_texts           rr�z*PrintSettingsToolbox.DefaultButton_clickedis�����������%� ��:�:��,�,�,��~�~��%����6�)A�V�^�^�W]�E]�!%���!&����~�~����q�!�,�,�T�2����q�!�*�*�2�+>�+>�?����q�!�,�,�T�2����q�!�*�*�2�+>�+>�?��$�$��(�(����7�%��Z�Z�4�.�.�
.�%�L�F�D����
���1�����&��F��D�67�D�$�$�V�]�]�3��
��!��(�(��,�,�V�]�]�;����/�/��5�����.�.�u�5����'�'��(;�(;�<�"��Z�Z�4�?�?�
*��N�N�#�#�F�N�N�3��$�$��(�(����7��N�N�#�#�B�$7�$7�8�
�Z�Z�4�4�4�
4�/E�,�E�3�
�H����
!���1�����q�)�)��E�!"�J�����q�)�)��C� �H�
!�� ����q�)�2�2�:�>�����q�!�1�1�%�8������q�)�2�2�8�<�����q�!�1�1�%�8��$�$��(�(��6��N�N�1��&�&�r�':�':�;�
�Z�Z�4�-�-�
-��N�N�1��(�(��.��N�N�1��&�&�r�':�':�;��N�N�1��(�(��/�.rc��|rV|j�}|jjd�|jjd�d|jd<yy)NFr�ry)r�r^r�r?rnrs   rr�z.PrintSettingsToolbox.PageRangeAllRadio_toggled�sM����[�[�]�F����*�*�5�1����(�(��/�,.�D���[�)�	
rc��|rw|j�}|jjd�|jjd�t	|jj��|jd<yy)NTry)r�r?r�r^rrdrnrs   rr�z0PrintSettingsToolbox.PageRangeRangeRadio_toggled�sa����[�[�]�F����(�(��.����*�*�4�0�,6�v�7J�7J�7O�7O�7Q�,R�D���[�)�	
rc��|j�}|jddg}}}	tj|�}|r|D]}|dks|dkDs�d}n|sbd|jd<t
j
d|z�t||jd��|jtj�yy#t$rd}Y��wxYw)	NryTFri�r�rzz|<b>Invalid page range.</b><p>Please enter a range using page numbers (1-999), dashes, and commas. For example: 1-2,3,5-7</p>)r�rnrr�r�r�r��	FailureUIr7rr
r)rr�r��okrr�s      rr�z2PrintSettingsToolbox.PageRangeEdit_editingFinished�s���������#�#�K�0�$��q�2��	��"�"�1�%�A���
����6�a�#�g��B��
�
�,.�D���[�)��I�I�.��2�3��d�D�I�I�'e�f�
g��O�O�B�/�/�0�	���	��B�	�s�B6�6C�Cc�4�t|�|jd<y)Nry)rrn)rr�s  rr�z.PrintSettingsToolbox.PageRangeEdit_textChanged�s��(2�1�
�����%rc�^
�t�	|jj|jj|j��|j
j
|jtk7�|jj|j�|jj|j�|jj|j�|jj|jj|j ��|jtk(�r3|j"j
d�|j$j
d�|j&j
d�|j$j)t+��|j,j
d�|j.j
d�|j0j
d�|j2j
d�|j4j
d�|j6j
d�|jj
d��n�|jt8t:fvr�|j"j
d�|j&j
|j�|j$j
|j�|j$j)t+|j<��nt|j"j
d�|j$j
d�|j&j
d�|j$j)t+��|j,j
d�|j.j
|j�|j0j
|j�|j.j)t+|j>��|j2j
d�|j4j
|j�|j6j
|j�|j4j)t+|j@��|jj
|j�|jBj
|jxr|j tDk7�tG�y#tG�wxYwr�)$�beginWaitCursorr�r��findDatar�r�r�r�r�r�r�r�rUr�rVr�r�r�r�r�r�rHr�r�r�r�r�r�r�r�r�r�r�r�rW�
endWaitCursor�rs rr^z-PrintSettingsToolbox.updateJobStorageControls�s�����C	��'�'�7�7��8S�8S�8\�8\�]a�]r�]r�8s�t��,�,�7�7��8M�8M�Qe�8e�f�
�0�0�;�;�D�<T�<T�U�
�2�2�=�=�d�>\�>\�]�
�,�,�7�7��8U�8U�V�
�+�+�;�;�D�<[�<[�<d�<d�ei�e�e�=A�
B��$�$�(<�<��*�*�5�5�e�<��&�&�1�1�%�8��/�/�:�:�5�A��&�&�.�.�s�u�5��/�/�:�:�5�A��+�+�6�6�u�=��4�4�?�?��F��)�)�4�4�U�;��%�%�0�0��7��.�.�9�9�%�@��/�/�:�:�5�A��(�(�-F�H^�,_�_��.�.�9�9�$�?��3�3�>�>�t�?W�?W�X��*�*�5�5�d�6N�6N�O��*�*�2�2�3�t�7K�7K�3L�M��.�.�9�9�%�@��*�*�5�5�e�<��3�3�>�>�u�E��*�*�2�2�3�5�9��/�/�:�:�4�@��+�+�6�6�4�;Y�;Y�7Y�Z��4�4�?�?�D�Db�Db�@b�c��+�+�3�3�C��8Q�8Q�4R�S��)�)�4�4�T�:��%�%�0�0�T�5R�5R�1R�S��.�.�9�9�d�>[�>[�:[�\��%�%�-�-�c�$�2J�2J�.K�L��/�/�:�:�t�?\�?\�;\�]��4�4�?�?�D�Da�Da�@a�Ae�fj�gA�gA�Ee�ge�f�
�O��M�O�s�T	T � T,c�v�t�	tjd�|jtk(rmtjd�|jdd�|j
d�|j
d�|j
d�|j
d��n^|jtk(r;tjd	�|jdd
�|jdd��n|jtk(rYtjd�|jr|jdd
�n�|jdd
�|jdd�n�|jtk(r:tjd�|jdd
�|jdd�nW|jtk(rDtjd�|jdd�|js|j
d�tjd|jz�|jr|jdd�|jtk(r(tjd�|jdd�n'tjd�|jdd�t�y#t�wxYw)NzSaving job storage options...z'Job storage mode = JOB_STORAGE_TYPE_OFFr&r'r(r"r$r*z2Job storage mode = JOB_STORAGE_TYPE_PROOF_AND_HOLDr-r)z,Job storage mode = JOB_STORAGE_TYPE_PERSONALr,z.Job storage mode = JOB_STORAGE_TYPE_QUICK_COPYz)Job storage mode = JOB_STORAGE_TYPE_STOREr.zJob storage use pin = %dr/z8Job storage duplicate = JOB_STORAGE_EXISTING_JOB_REPLACEr+z<Job storage duplicate = JOB_STORAGE_EXISTING_JOB_APPEND_1_99�APPEND)rr�r>r�r�r�r�r�r�r�r�r�r�rWrrs r�saveJobStorageOptionsz*PrintSettingsToolbox.saveJobStorageOptions*s����:	��I�I�5�6��$�$�(<�<��	�	�C�D��%�%�f�e�4��(�(��4��(�(��4��(�(��3��(�(��8��&�&�*I�I��	�	�N�O��%�%�f�g�6��%�%�j�(�;��&�&�*C�C��	�	�H�I��+�+��)�)�&�$�7��)�)�&�'�:��)�)�*�h�?��&�&�*E�E��	�	�J�K��%�%�f�d�3��%�%�j�(�;��&�&�*@�@��	�	�E�F��%�%�f�g�6��/�/��,�,�Z�8�
�I�I�0�4�3K�3K�K�L��'�'��%�%�j�)�<��)�)�-M�M��	�	�T�U��%�%�n�i�@��	�	�X�Y��%�%�n�h�?�
�O��M�O�s�JJ,�,J8c��|j�}t|j|��\}}|r(||_|j	�|j�yyr)r��	value_int�itemDatar�rr^)rr�r��moders     rr�z5PrintSettingsToolbox.JobStorageModeComboBox_activatedmsL��������V�_�_�Q�/�0���b�
�$(�D�!��&�&�(��)�)�+�rc�V�|jjtd�t�y�Nzactivated(int))r��emit�SIGNALr�rs rr�z8PrintSettingsToolbox.JobStorageModeDefaultButton_clickedvs���#�#�(�(��0@�)A�CW�Xrc�T�||_|j�|j�yr�r�r^r�rrs  rr�z8PrintSettingsToolbox.JobStoragePinOffRadioButton_toggled~s$��'(�5�� ��%�%�'��"�"�$rc�R�||_|j�|j�yrr)r*s  rr�z<PrintSettingsToolbox.JobStoragePinPrivateRadioButton_toggled�s"��#$�� ��%�%�'��"�"�$rc�N�|jjtd�d�y�Nz
toggled(bool)T)r�r&r'rs rr�z7PrintSettingsToolbox.JobStoragePinDefaultButton_clicked�����(�(�-�-�f�_�.E�t�Lrc�z�t|�|_|jd|jjd��y)Nrr�)rr�r�r��rr�s  rr�z1PrintSettingsToolbox.JobStoragePinEdit_textEdited�s/��)�!�}������i��)=�)=�)D�)D�W�)M�Nrc�R�||_|j�|j�yr�rUr^rr*s  rr�z>PrintSettingsToolbox.JobStorageUsernameAutoRadioButton_toggled�s"��)*��&��%�%�'��"�"�$rc�T�||_|j�|j�yrr2r*s  rr�z@PrintSettingsToolbox.JobStorageUsernameCustomRadioButton_toggled�s$��-.���&��%�%�'��"�"�$rc�N�|jjtd�d�yr-)r�r&r'rs rr�z<PrintSettingsToolbox.JobStorageUsernameDefaultButton_clicked�s���.�.�3�3�F�?�4K�T�Rrc�z�t|�|_|jd|jjd��y)Nr"r�)rr�r�r�r0s  rr�z6PrintSettingsToolbox.JobStorageUsernameEdit_textEdited�s/��$.�q�M��!����j�$�*C�*C�*J�*J�7�*S�Trc�R�||_|j�|j�yr�rVr^rr*s  rr�z8PrintSettingsToolbox.JobStorageIDAutoRadioButton_toggled�s"��()��%��%�%�'��"�"�$rc�T�||_|j�|j�yrr7r*s  rr�z:PrintSettingsToolbox.JobStorageIDCustomRadioButton_toggled�s$��,-���%��%�%�'��"�"�$rc�N�|jjtd�d�yr-)r�r&r'rs rr�z6PrintSettingsToolbox.JobStorageIDDefaultButton_clicked�r.rc�z�t|�|_|jd|jjd��y)Nr$r�)rr�r�r�r0s  rr�z0PrintSettingsToolbox.JobStorageIDEdit_textEdited�s/��#-�a�=�� ����i��)A�)A�)H�)H��)Q�Rrc��|j�}t|j|��\}}|r(||_|j	�|j�yyr)r�r!r"r�r^r)rr�r��optrs     rr�z9PrintSettingsToolbox.JobStorageExistingComboBox_activated�sL��������F�O�O�A�.�/���R�
�),�D�&��)�)�+��&�&�(�rc�V�|jjtd�t�yr%)r�r&r'rWrs rr�z<PrintSettingsToolbox.JobStorageExistingDefaultButton_clicked�s���'�'�,�,�V�4D�-E�Gg�hrc���tjd|�d|�d��tj|j�	|dk(rRt|�dk(rd|z}t|�dk(r|d|zz
}t|�d	k(r|d
|zz
}t|�dk7r|dd}tj|�d
|���tj�tj�y#tj�wxYw)NzsetPrinterOption(z, �)r�r�000r��00�r�r!����=)	r�r>rr�r��len�	addOption�
setOptionsr�)rr5rms   rr�z%PrintSettingsToolbox.setPrinterOption�s����	�	���>�?����T�%�%�&�
	���"��e�*��/��%�-�%��e�*��/��4�%�<�'�%��e�*��/��3��;�&�%��e�*��/����*�%��N�N�f�e�4�5��O�O���M�M�O��D�M�M�O�s�BC�C-c� �tjd|z�tj|j�	tj
|�tj�tj�y#tj�wxYw)NzremovePrinterOption(%s))r�r>rr�r��removeOptionrGr�)rr5s  rr�z(PrintSettingsToolbox.removePrinterOption�sV���	�	�+�f�4�5����T�%�%�&�	����f�%��O�O���M�M�O��D�M�M�O�s�)A7�7B
c�0�tjd||�S)Nrb)�qApp�	translate)rr�ros   r�__trzPrintSettingsToolbox.__tr�s���~�~�4�Q�q�9�9rrLr)Fr�F))r"r#r$rr�ruryr6r;r8r�r�r�r�r�r�r�r�r�r�r^rr�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r7r%rrrbrb�s���S�Q�h�d!�N�2�j�\L�DA�>	�NA�*>�&X�,H0�V/�S�1�.6�E�P<�F,�Y�%�%�M�O�%�%�S�U�%�%�M�S�)�i��&�:rrb)�sys�base.g�baser�prntr�
base.codes�ui_utils�base.sixextrr�PyQt5.QtCore�PyQt5.QtGui�PyQt5.QtWidgetsrr
r(r-r3r1rIrGrSrPrXrVr[rgrbr%rr�<module>rXs���.�������#����	5�Z�	5�
5�:�
5�	5�*�	5��Y��0%�H�%�%��%�!��!�(%�<�%�&M:�8�M:r

Zerion Mini Shell 1.0