3
NZ{_                 @   s@   d dl mZmZmZ G dd deZddlmZ ddlm	Z	 dS )    )QtCoreQtGui	QtWidgetsc               @   s   e Zd Zdd Zdd ZdS )	Ui_Dialogc             C   s  |j d |jtjj |jdd tj|| _| jj d tj	|| _
| j
jtjj | j
j d tj | _| jj d tj| j| _| jj d tj| j| _tj }|jd | jj| | jj d	 | jj| jd
d
dd tj| j| _| jjtjj | jjtjj | jj d | jj| jdd
dd tj | _| jj d t| j| _| jj d | jj| jd
d
dd tjddtj j!tj j"}| jj#|dd
dd tj$| j| _%tj tj j"tj j&}|j'd
 |j(d
 |j)| j%j* j+  | j%j,| | j%j d | jj| j%dddd tj$| j| _-tj tj j"tj j&}|j'd
 |j(d
 |j)| j-j* j+  | j-j,| | j-j d | jj| j-dddd | jj.| jdd
dd tjddtj j"tj j/}| jj#|dd
dd tj| j| _0| j0j1d | j0j d | jj| j0dd
dd | j
j| j tj | _2| j2j d tj| j2| _3| j3j d tj| j2| _4tj }|jd | j4j| | j4j d | j3j| j4d
d
dd tj| j2| _5| j5jtjj | j5jtjj | j5j d | j3j| j5dd
dd tj6| j2| _7| j7j8d | j7j9d | j7j:d | j7j d tj| j7| _;| j;j d tj | _<| j<j d  tj| j7| _=| j=jtjj | j=j>d! | j=j?tjj@ | j=j d" | j<j| j=d
d
dd tj| j7| _Atj tj j&tj j&}|j'd
 |j(d
 |j)| jAj* j+  | jAj,| | jAjBtjCd#d$ | jAjDtjCd#d$ | jAjtjj | jAj>d! | jAjEd | jAj?tjj@ | jAj d% | j<j| jAdd
dd tjddtj jFtj j"}| j<j#|dd
dd tj$| j7| _G| jGj>d! | jGj d& | j<j| jGdddd tj$| j7| _H| jHj>d! | jHj d' | j<j| jHdddd tjd(dtj jFtj j"}| j<j#|dddd tjdd)tj j"tj j/}| j<j#|dddd | j;j.| j<d
d
dd tjI | _J| jJj d* tj| j7| _K| jKj d+ | jJj| jK tjL| j7| _M| jMj d, | jJj| jM | j;j.| jJd
ddd tj | _N| jNj d- tj| j7| _O| jOj d. | jNj| jOd
d
dd tjP| j7| _Q| jQj d/ | jNj| jQdd
dd tjR| j7| _S| jSj d0 | jNj| jSdd
dd | j;j.| jNdddd | j3j| j7dd
dd tj| j2| _T| jTj1d | jTj d1 | j3j| jTdd
dd | j
j| j2 tj | _U| jUj d2 tj| jU| _V| jVj d3 tj| jU| _Wtj }|jd | jWj| | jWj1d | jWj d4 | jVj| jWd
d
dd tj| jU| _X| jXjtjj | jXjtjj | jXj d5 | jVj| jXdd
dd tY| jU| _Ztj tj j/tj j/}|j'd
 |j(d
 |j)| jZj* j+  | jZj,| | jZj d6 | jVj| jZdd
dd tj| jU| _[| j[j1d | j[j d7 | jVj| j[dd
dd | j
j| jU tj | _\| j\j d8 tj| j\| _]| j]j d9 tj| j\| _^tj }|jd | j^j| | j^j d: | j]j| j^d
d
dd tj| j\| __| j_jtjj | j_jtjj | j_j d; | j]j| j_dd
dd tj6| j\| _`| j`j d< tj| j`| _a| jaj d= tjb| j`| _c| jcj d> | jcjdd
 | jcjed
 | jaj| jcd
d
dd? tj$| j`| _f| jfj8d | jfj d@ | jaj| jfdd
dd tj$| j`| _g| jgj8d | jgj dA | jaj| jgdddd tj$| j`| _h| jhj8d | jhj dB | jaj| jhdddd tjdCdtj j/tj j"}	| jaj#|	dddd tj$| j`| _i| jij dD | jaj| jidddd | j]j| j`dd
dd tj6| j\| _j| jjj dE tj| jj| _k| jkj dF tjl | _m| jmj dG tj| jj| _n| jnj dH | jmj| jn tjdCdtj jFtj j"}
| jmj#|
 tjo| jj| _ptj tj j/tj j&}|j'd
 |j(d
 |j)| jpj* j+  | jpj,| | jpj dI | jmj| jp tj$| jj| _q| jqj8d | jqj dJ | jmj| jq | jkj.| jmd
d
dd tjl | _r| jrj dK tj| jj| _s| jsj dL | jrj| js tjdCdtj jFtj j"}| jrj#| tjo| jj| _ttj tj j/tj j&}|j'd
 |j(d
 |j)| jtj* j+  | jtj,| | jtj dM | jrj| jt tj$| jj| _u| juj8d | juj dN | jrj| ju | jkj.| jrdd
dd | j]j| jjdd
dd tj6| j\| _v| jvj dO tj| jv| _w| jwj dP tjl | _x| jxj dQ tj| jv| _y| jyj dR | jxj| jy tjL| jv| _z| jzj dS | jxj| jz tj| jv| _{| j{j dT | jxj| j{ tjL| jv| _|| j|j dU | jxj| j| tj$| jv| _}| j}j8d | j}j dV | jxj| j} | jwj.| jxd
d
dd | j]j| jvdd
dd | j
j| j\ tj | _~| j~j dW tj| j~| _| jj dX tj| j~| _tj }|jd | jj| | jj dY | jj| jd
d
dd tj| j~| _| jjtjj | jjtjj | jj dZ | jj| jdd
dd tj| j~| _| jj d[ | jj| jdd
dd tj| j~| _| jj d\ | jj| jdd
dd tj| j~| _| jj d] | jj| jdd
dd | j
j| j~ | jj| j
d
d
dd? tj|| _| jjtjj | jjtjj | jj d^ | jj| jdd
dd? tj|| _| jj d_ | jj| jdd
dd tjd`dtj j/tj j"}| jj#|dddd tj$|| _| jj da | jj| jdddd tj$|| _| jj db | jj| jdddd tj$|| _| jj dc | jj| jdddd | j| | j
jd tjj| d S )dNDialogiX  i  
gridlayoutStackedWidget	SelectFaxgridlayout1   label_8r      line_4gridlayout2FaxComboBox      FaxOptionsButtonFaxSetupButton   i4     Tlabel_12   	CoverPagegridlayout3label_3line_2FCoverPageGroupBoxgridlayout4gridlayout5 CoverPageName      CoverPagePreviewPrevCoverPageButtonNextCoverPageButton      
vboxlayoutlabel_16RegardingEditgridlayout6label_17MessageEditPreserveFormattingCheckBoxlabel_13SelectFilesgridlayout7label_2line
FilesTableFilesPageNoteSelectRecipientsgridlayout8label_4line_3
groupBox_4gridlayout9RecipientsTable   RemoveRecipientButtonMoveRecipientUpButtonMoveRecipientDownButton(   	FABButtongroupBoxgridlayout10
hboxlayoutlabelAddIndividualComboBoxAddIndividualButtonhboxlayout1label_5AddGroupComboBoxAddGroupButton
groupBox_3gridlayout11hboxlayout2label_6QuickAddNameEditlabel_7QuickAddFaxEditQuickAddButtonSendFaxgridlayout12label_9line_5label_10
StatusListlabel_15line_6StepText   
BackButton
NextButtonCancelButton)ZsetObjectNameZsetWindowModalityr   ZQtZApplicationModalZresizer   ZQGridLayoutr   ZQStackedWidgetr   ZsetFrameShapeZQFrameZNoFrameZQWidgetr	   r
   ZQLabelr   r   ZQFontZsetPointSizeZsetFontZ	addWidgetr   ZHLineZsetFrameShadowZSunkenr   PrinterNameComboBoxr   ZQSpacerItemZQSizePolicyZMinimumExpandingZMinimumZaddItemZQPushButtonr   ZFixedZsetHorizontalStretchZsetVerticalStretchZsetHeightForWidth
sizePolicyZhasHeightForWidthZsetSizePolicyr   Z	addLayoutZ	Expandingr   ZsetWordWrapr   r   r   r   Z	QGroupBoxr   Z
setEnabledZsetCheckableZ
setCheckedr   r   r!   setTextZsetAlignmentZAlignCenterr$   ZsetMinimumSizeZQSizeZsetMaximumSizeZsetScaledContentsZ	Preferredr%   r&   ZQVBoxLayoutr)   r*   Z	QLineEditr+   r,   r-   Z	QTextEditr.   Z	QCheckBoxr/   r0   r1   r2   r3   r4   	FileTabler5   r6   r7   r8   r9   r:   r;   r<   ZQTableWidgetr=   ZsetColumnCountZsetRowCountr?   r@   rA   rC   rD   rE   ZQHBoxLayoutrF   rG   Z	QComboBoxrH   rI   rJ   rK   rL   rM   rN   rO   rP   rQ   rR   rS   rT   rU   rV   rW   rX   rY   rZ   ZQListWidgetr[   r\   r]   r^   r`   ra   rb   retranslateUiZsetCurrentIndexZQMetaObjectZconnectSlotsByName)selfr   ZfontZ
spacerItemrd   ZspacerItem1ZspacerItem2ZspacerItem3ZspacerItem4ZspacerItem5ZspacerItem6ZspacerItem7ZspacerItem8 ri   */usr/share/hplip/ui5/sendfaxdialog_base.pysetupUi   s   






























zUi_Dialog.setupUic             C   s  t jj}|j|dd | jj|dd | jj|dd | jj|dd | jj|dd | j	j|dd | j
j|dd | jj|dd	 | jj|dd
 | jj|dd | jj|dd | jj|dd | jj|dd | jj|dd | jj|dd | jj|dd | jj|dd | jj|dd | jj|dd | jj|dd | jj|dd | jj|dd | jj|dd | jj|dd | jj|dd | jj|dd | jj|dd | j j|dd | j!j|dd | j"j|dd | j#j|dd | j$j|dd | j%j|dd  | j&j|dd! | j'j|dd" d S )#Nr   zHP Device Manager - Send Faxz
Select FaxzFax Settings...zFax Device Setup...a+  <html><head><meta name="qrichtext" content="1" /><style type="text/css">
p, li { white-space: pre-wrap; }
</style></head><body style=" font-family:'Sans Serif'; font-size:9pt; font-weight:400; font-style:normal;">
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Select the desired fax printer queue and click <span style=" font-style:italic;">Next</span> to continue. Note: Once you continue to the next step, you will not be able to change to a different fax queue.</p></body></html>z(Select and Edit Fax Coverpage (Optional)zInclude Coverpagez
Regarding:zAOptional Message: (max. 2000 characters or 32 preformatted lines)z"Preformatted (preserve formatting)aE  <html><head><meta name="qrichtext" content="1" /><style type="text/css">
p, li { white-space: pre-wrap; }
</style></head><body style=" font-family:'DejaVu Sans'; font-size:10pt; font-weight:400; font-style:normal;">
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:'Sans Serif'; font-size:9pt;">Check<span style=" font-style:italic;"> Include Coverpage </span>to add a coverpage to this fax. To continue without a coverpage, click <span style=" font-style:italic;">Next &gt;</span>.</p></body></html>zSelect Files to SendzaNote: You may also add files to the fax by printing from any application to the '%1' fax printer.zSelect Fax RecipientsZ
RecipientsZRemovezMove Upz	Move DownzFax Address Book...z2Add Recipients or Groups from the Fax Address BookzAdd an individual:ZAddzAdd a group:z]Quick Add an Individual Recipient (recipient will automatically be added to fax address book)zName:zFax Number:zSend FaxzStatus:a  <html><head><meta name="qrichtext" content="1" /><style type="text/css">
p, li { white-space: pre-wrap; }
</style></head><body style=" font-family:'Sans Serif'; font-size:9pt; font-weight:400; font-style:normal;">
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Click <span style=" font-style:italic;">Send Fax</span> to start the fax transmission.</p></body></html>zStep %1 of %2z< BackzNext >ZCancel)(r   ZQCoreApplication	translateZsetWindowTitler   re   r   r   r   r   r   ZsetTitler*   r-   r/   r0   r3   r6   r9   r;   r?   r@   rA   rC   rD   rG   rI   rK   rM   rN   rQ   rS   rU   rX   rZ   r\   r^   r`   ra   rb   )rh   r   Z
_translateri   ri   rj   rg   X  sH    zUi_Dialog.retranslateUiN)__name__
__module____qualname__rk   rg   ri   ri   ri   rj   r      s     Nr   r   )rf   )rc   N)
ZPyQt5r   r   r   objectr   Z	filetablerf   Zprinternamecomboboxrc   ri   ri   ri   rj   <module>	   s
     ~