3
N ŸZqa  ã               @   s@   d dl mZmZmZ G dd„ deƒZddlmZ ddlm	Z	 dS )é    )ÚQtCoreÚQtGuiÚ	QtWidgetsc               @   s   e Zd Zdd„ Zdd„ ZdS )Ú	Ui_Dialogc             C   s(  |j dƒ |jddƒ tj|ƒ| _| jj dƒ tj|ƒ| _tjƒ }|j	dƒ | jj
|ƒ | jj dƒ | jj| jdddd	ƒ tj|ƒ| _| jjtjjƒ | jjtjjƒ | jj d
ƒ | jj| jddddƒ tj|ƒ| _| jjtjjƒ | jjtjjƒ | jj dƒ | jj| jd	dddƒ tj|ƒ| _| jj dƒ | jj| jddddƒ tjddtjjtjjƒ}| jj|ddddƒ tj|ƒ| _| jj dƒ | jj| jdd	ddƒ tj|ƒ| _| jj dƒ | jj| jddddƒ tj|ƒ| _| jj dƒ tjƒ | _| jj dƒ tj| jƒ| _ | j j dƒ t!| jƒ| _"| j"j dƒ | j j| j"ddddƒ tj#| jƒ| _$| j$j%dƒ | j$j dƒ tj| j$ƒ| _&| j&j dƒ tj| j$ƒ| _'| j'j dƒ | j&j| j'ddddƒ | j j| j$ddddƒ tjddtjjtjjƒ}| j j|ddddƒ | jj| jƒ tjƒ | _(| j(j dƒ tj| j(ƒ| _)| j)j dƒ t*| j(ƒ| _+| j+j%dƒ | j+j d ƒ | j)j| j+ddddƒ tjd!d"tjjtjjƒ}| j)j|ddddƒ | jj| j(ƒ tjƒ | _,| j,j d#ƒ tj| j,ƒ| _-| j-j d$ƒ tj| j,ƒ| _.| j.j/dƒ | j.j d%ƒ | j-j| j.ddddƒ tjd!d&tjjtjjƒ}| j-j|ddddƒ tjd&d!tjjtjjƒ}| j-j|ddddƒ tj0ƒ | _1| j1j d'ƒ tj| j,ƒ| _2tjtjj3tjj3ƒ}|j4dƒ |j5dƒ |j6| j2j7ƒ j8ƒ ƒ | j2j9|ƒ | j2j:t;j<d(d)ƒƒ | j2j=t;j<d(d)ƒƒ | j2jtjj>ƒ | j2j d*ƒ | j1j| j2ƒ t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 tj| jPƒ| _Q| jQj d<ƒ tj| jPƒ| _R| jRj/dƒ | jRjKd4ƒ | jRj d=ƒ | jQj| jRddddƒ tjd!d&tjjtjjƒ}| jQj|ddddƒ tjd>d!tjjtjjƒ}| jQj|ddddƒ tj| jPƒ| _Stjtjj3tjj3ƒ}|j4dƒ |j5dƒ |j6| jSj7ƒ j8ƒ ƒ | jSj9|ƒ | jSj:t;j<d?d@ƒƒ | jSj=t;j<d?d@ƒƒ | jSjtjj>ƒ | jSj/dƒ | jSj dAƒ | jQj| jSddddƒ tjd&d!tjjtjjƒ}| jQj|ddddƒ tjd&d!tjjtjjƒ}| jQj|ddddƒ tjd!d&tjjtjjƒ}| jQj|d	dddƒ tj#| jPƒ| _T| jTj%dƒ | jTj dBƒ tj| jTƒ| _U| jUj dCƒ tj0ƒ | _V| jVj dDƒ tj| jTƒ| _W| jWj dEƒ | jVj| jWƒ tj?| jTƒ| _X| jXj dFƒ | jVj| jXƒ | jUjA| jVddddƒ tj0ƒ | _Y| jYj dGƒ tj| jTƒ| _Z| jZj dHƒ | jYj| jZƒ tj?| jTƒ| _[| j[j dIƒ | jYj| j[ƒ | jUjA| jYddddƒ tj0ƒ | _\| j\j dJƒ tj| jTƒ| _]| j]j dKƒ | j\j| j]ƒ tj?| jTƒ| _^| j^j dLƒ | j\j| j^ƒ | jUjA| j\ddddƒ tj0ƒ | __| j_j dMƒ tj| jTƒ| _`| j`j dNƒ | j_j| j`ƒ tj?| jTƒ| _a| jaj dOƒ | j_j| jaƒ | jUjA| j_d	dddƒ tj0ƒ | _b| jbj dPƒ tj| jTƒ| _c| jcj dQƒ | jbj| jcƒ tj?| jTƒ| _d| jdj dRƒ | jbj| jdƒ | jUjA| jbddddƒ tj0ƒ | _e| jej dSƒ tj| jTƒ| _f| jfj dTƒ | jej| jfƒ tj?| jTƒ| _g| jgj dUƒ | jej| jgƒ | jUjA| jeddddƒ tj0ƒ | _h| jhj dVƒ tj| jTƒ| _i| jij dWƒ | jhj| jiƒ tj?| jTƒ| _j| jjj dXƒ | jhj| jjƒ | jUjA| jhdYdddƒ tj0ƒ | _k| jkj dZƒ tj| jTƒ| _l| jlj d[ƒ | jkj| jlƒ tj?| jTƒ| _m| jmj d\ƒ | jkj| jmƒ | jUjA| jkd]dddƒ tj0ƒ | _n| jnj d^ƒ tj| jTƒ| _o| joj d_ƒ | jnj| joƒ tj?| jTƒ| _p| jpj d`ƒ | jnj| jpƒ | jUjA| jndadddƒ | jQj| jTdd	d	dƒ | jj| jPƒ tjƒ | _q| jqj dbƒ tj| jqƒ| _r| jrj dcƒ tjd!d&tjjtjjƒ}| jrj|ddddƒ tjd&d!tjjtjjƒ}| jrj|ddddƒ tj| jqƒ| _stjtjj3tjj3ƒ}|j4dƒ |j5dƒ |j6| jsj7ƒ j8ƒ ƒ | jsj9|ƒ | jsj:t;j<dddeƒƒ | jsj=t;j<dddeƒƒ | jsjtjj>ƒ | jsj/dƒ | jsj dfƒ | jrj| jsddddƒ tjd&d!tjjtjjƒ}| jrj|ddddƒ tj| jqƒ| _t| jtjKd4ƒ | jtj dgƒ | jrj| jtdd	ddƒ tjd!d&tjjtjjƒ}| jrj|ddddƒ | jj| jqƒ tjƒ | _u| juj dhƒ tj| juƒ| _v| jvj diƒ tj| juƒ| _w| jwjxt;jyjzƒ | jwjKd4ƒ | jwj djƒ | jvj| jwddddƒ tjd!d&tjjtjjƒ}| jvj|ddddƒ | jj| juƒ | jj| jddddƒ | j{|ƒ | jj|dƒ t;j}j~|ƒ d S )kNÚDialogi¼  i8  Ú
gridlayouté   Úlabelr   é   é   Úlineé   Úline_2ÚStepTexté   é¿   é   Ú
NextButtonÚCancelButtonÚStackedWidgetÚ	StartPageÚgridlayout1ÚDeviceComboBoxÚ ÚgroupBoxÚgridlayout2Úlabel_2i4  é¡   é   ÚLoadPaperPageÚgridlayout3Ú	LoadPaperé   éµ   ÚPaperEdgePageÚgridlayout4ÚPageEdgeTitleé(   Ú
hboxlayoutéU   éZ   ÚPageEdgeIconÚPageEdgeComboBoxÚAlignmentNumberÚgridlayout5ÚAlignmentNumberTitleÚhboxlayout1ÚAlignmentNumberIconÚAlignmentNumberComboBoxÚColorAdjPageÚgridlayout6TÚlabel_12ÚColorAdjustIconé   Úhboxlayout2ÚColorAdjustLabelÚColorAdjustComboBoxÚLBowPageÚgridlayout7Ú	LBowTitleé)   éÀ   é]   ÚLBowIconÚ
groupBox_2Úgridlayout8Úhboxlayout3Úlabel_4Ú	aComboBoxÚhboxlayout4Úlabel_5Ú	bComboBoxÚhboxlayout5Úlabel_6Ú	cComboBoxÚhboxlayout6Úlabel_7Ú	dComboBoxÚhboxlayout7Úlabel_8Ú	eComboBoxÚhboxlayout8Úlabel_9Ú	fComboBoxÚhboxlayout9Úlabel_10Ú	gComboBoxé   Úhboxlayout10Úlabel_11Ú	hComboBoxé   ÚhorizontalLayoutÚlabel_14Ú	iComboBoxé   ÚAioPageÚgridlayout9é\   éx   ÚAioIconÚlabel_3ÚFrontPanelPageÚgridlayout10Úlabel_13)ZsetObjectNameZresizer   ZQGridLayoutr   ZQLabelr	   r   ZQFontZsetPointSizeZsetFontZ	addWidgetZQFramer   ZsetFrameShapeZHLineZsetFrameShadowZSunkenr   r   ZQSpacerItemZQSizePolicyZ	ExpandingZMinimumZaddItemZQPushButtonr   r   ZQStackedWidgetr   ZQWidgetr   r   ÚDeviceUriComboBoxr   Z	QGroupBoxr   ZsetTitler   r   r   r    ÚLoadPaperGroupBoxr!   r$   r%   r&   ÚsetTextZQHBoxLayoutr(   r+   ZFixedZsetHorizontalStretchZsetVerticalStretchZsetHeightForWidthÚ
sizePolicyZhasHeightForWidthZsetSizePolicyZsetMinimumSizer   ZQSizeZsetMaximumSizeZNoFrameZ	QComboBoxr,   Z	addLayoutr-   r.   r/   r0   r1   r2   r3   r4   r5   ZsetWordWrapr6   r8   r9   r:   r;   r<   r=   rA   rB   rC   rD   rE   rF   rG   rH   rI   rJ   rK   rL   rM   rN   rO   rP   rQ   rR   rS   rT   rU   rV   rW   rX   rZ   r[   r\   r^   r_   r`   rb   rc   rf   rg   rh   ri   rj   ZsetTextFormatZQtZRichTextÚretranslateUiZsetCurrentIndexZQMetaObjectZconnectSlotsByName)Úselfr   ZfontZ
spacerItemZspacerItem1ZspacerItem2ZspacerItem3ZspacerItem4rn   ZspacerItem5ZspacerItem6ZspacerItem7ZspacerItem8ZspacerItem9ZspacerItem10ZspacerItem11ZspacerItem12ZspacerItem13ZspacerItem14ZspacerItem15ZspacerItem16ZspacerItem17ZspacerItem18ZspacerItem19ZspacerItem20ZspacerItem21ZspacerItem22ZspacerItem23ZspacerItem24ZspacerItem25© rq   ú(/usr/share/hplip/ui5/aligndialog_base.pyÚsetupUi   sž   
































zUi_Dialog.setupUic             C   s`  t jj}|j|ddƒƒ | jj|ddƒƒ | jj|ddƒƒ | jj|ddƒƒ | jj|ddƒƒ | j	j|ddƒƒ | j
j|ddƒƒ | jj|dd	ƒƒ | jj|dd
ƒƒ | jj|ddƒƒ | jj|ddƒƒ | jj|ddƒƒ | jj|ddƒƒ | jj|ddƒƒ | jj|ddƒƒ | jj|ddƒƒ | jj|ddƒƒ | jj|ddƒƒ | jj|ddƒƒ d S )Nr   z*HP Device Manager - Align Print CartridgeszAlign Print CartridgeszStep %1 of %2zNext >ZCancelaÃ  <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 device to align and click <span style=" font-style:italic;">Next &gt;</span> to continue.</p></body></html>zcChoose the numbered colored box that the color <b>best </b>matches the background color of the bar.zLine %1:zRow A:zRow B:zRow C:zRow D:zRow E:zRow F:zRow G:zRow H:zRow I:aw  <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;"><span style=" font-weight:600;">Follow these steps to complete the alignment:</span> </p>
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">1.</span> Place the alignment page, with the printed side facing down, on the scanner. </p>
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">2.</span> Press the <span style=" font-style:italic;">Enter</span> or <span style=" font-style:italic;">Scan</span> button on the printer. </p>
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">3.</span> "Alignment Complete" will be displayed when the process is finished (on some models with a front panel display) or the green light that was blinking during the process will stop blinking and remain green (on some models without a front panel display).</p></body></html>an  <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;"><span style=" font-weight:600;">Cartridge alignment on this printer is only available by accessing the front panel of the printer. </span>Please refer to the user guide for the printer for more information. Click <span style=" font-style:italic;">Finish</span> to exit.</p></body></html>)r   ZQCoreApplicationÚ	translateZsetWindowTitler	   rm   r   r   r   r   r5   r9   rE   rH   rK   rN   rQ   rT   rW   r[   r_   rg   rj   )rp   r   Z
_translaterq   rq   rr   ro   ^  s(    zUi_Dialog.retranslateUiN)Ú__name__Ú
__module__Ú__qualname__rs   ro   rq   rq   rq   rr   r      s     Tr   r
   )rk   )rl   N)
ZPyQt5r   r   r   Úobjectr   Zdeviceuricomboboxrk   Zloadpapergroupboxrl   rq   rq   rq   rr   Ú<module>	   s
     w