3
N ŸZu-  ã               @   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ddƒ tj|ƒ| _| jj dƒ tj|ƒ| _tjƒ }|j	dƒ | jj
|ƒ | jj dƒ | jj| jdddd	ƒ t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tjjƒ | jj dƒ tjƒ | _| jj dƒ tj| jƒ| _| jj dƒ t| jƒ| _| jj dƒ | jj| jddddƒ tj| jƒ| _| jjdƒ | jj dƒ tj| jƒ| _| jj dƒ t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ƒ | jj| jƒ tjƒ | _$| j$j dƒ tj| j$ƒ| _%| j%j dƒ t&| j$ƒ| _'| j'jdƒ | j'j dƒ | j%j| j'ddddƒ tj| j$ƒ| _(| j(jdƒ | j(j dƒ tj| j(ƒ| _)| j)j dƒ tj| j(ƒ| _*| j*j+dƒ | 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ƒ | jj| j$ƒ tjƒ | _,| j,j dƒ tj| j,ƒ| _-| j-j dƒ t&| j,ƒ| _.| j.jdƒ | j.j dƒ | j-j| j.ddddƒ tj| j,ƒ| _/| j/jdƒ | j/j d ƒ tj| j/ƒ| _0| j0j d!ƒ tj| j/ƒ| _1| j1j+dƒ | j1j d"ƒ | j0j| j1d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ƒ | jj| j,ƒ tjƒ | _2| j2j d$ƒ tj| j2ƒ| _3| j3j d%ƒ t&| j2ƒ| _4| j4jdƒ | j4j d&ƒ | j3j| j4ddddƒ tj| j2ƒ| _5| j5jdƒ | j5j d'ƒ tj| j5ƒ| _6| j6j d(ƒ tj| j5ƒ| _7| j7j+dƒ | j7j d)ƒ | j6j| j7ddddƒ | j3j| j5ddddƒ tjdd*tj j!tj j"ƒ}| j3j#|d	dddƒ | jj| j2ƒ tjƒ | _8| j8j d+ƒ tj| j8ƒ| _9| j9j d,ƒ tj| j8ƒ| _:| j:j;t<j=j>ƒ | j:j+dƒ | j:j d-ƒ | j9j| j:ddddƒ tjddtj j!tj j"ƒ}| j9j#|ddddƒ | jj| j8ƒ | jj| jd	dddƒ t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/ƒ | jj| j@d0dddƒ tjd1dtj j"tj j!ƒ}| jj#|d0dddƒ tjA|ƒ| _B| jBj d2ƒ | jj| jBd0d	ddƒ tjA|ƒ| _C| jCj d3ƒ | jj| jCd0d4ddƒ | jD|ƒ | jjEdƒ t<jFjG|ƒ d S )5NÚDialogi¼  iô  Ú
gridlayouté   Úlabelr   é   é   Úlineé   ÚStackedWidgetÚ	StartPageÚgridlayout1ÚDeviceComboBoxÚ ÚgroupBoxÚgridlayout2ÚPrompté   é(   Ú
Level1PageÚgridlayout3Ú	LoadPaperÚ
groupBox_2Úgridlayout4TÚPrompt_2Ú
Level2PageÚgridlayout5ÚLoadPaper_2Ú
groupBox_3Úgridlayout6ÚPrompt_5é[   Ú
Level3PageÚgridlayout7ÚLoadPaper_3Ú
groupBox_4Úgridlayout8ÚPrompt_6éG   ÚFrontPanelPageÚgridlayout9Úlabel_2Úline_2ÚStepTexté   i_  Ú
NextButtonÚCancelButtoné   )HZsetObjectNameZresizer   ZQGridLayoutr   ZQLabelr	   r   ZQFontZsetPointSizeZsetFontZ	addWidgetZQFramer   ZsetFrameShapeZHLineZsetFrameShadowZSunkenZQStackedWidgetr   ZNoFrameZQWidgetr   r   ÚDeviceUriComboBoxr   Z	QGroupBoxr   ZsetTitler   r   ZQSpacerItemZQSizePolicyZMinimumZ	ExpandingZaddItemr   r   ÚLoadPaperGroupBoxr   r   r   r   ZsetWordWrapr   r   r    r!   r"   r#   r%   r&   r'   r(   r)   r*   r,   r-   r.   ZsetTextFormatr   ZQtZRichTextr/   r0   ZQPushButtonr2   r3   ÚretranslateUiZsetCurrentIndexZQMetaObjectZconnectSlotsByName)	Úselfr   ZfontZ
spacerItemZspacerItem1ZspacerItem2ZspacerItem3ZspacerItem4ZspacerItem5© r9   ú(/usr/share/hplip/ui5/cleandialog_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ƒƒ d S )Nr   z$HP Device Manager - Clean PrintheadszClean Print Printheadsa³  <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;">Click<span style=" font-style:italic;"> Next</span> to begin the cleaning process.</p></body></html>a¼  <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;">Click <span style=" font-style:italic;">Clean</span> to begin the level 1 cleaning process.</p></body></html>a¶  <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;">Cleaning level 1 is done after the page being printed is complete.</span> If the printed output from level 1 cleaning is acceptable, then click <span style=" font-style:italic;">Cancel</span> to exit. Otherwise, click <span style=" font-style:italic;">Clean</span> again to begin the level 2 cleaning process.</p></body></html>a·  <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;">Cleaning level 2 is done after the page being printed is complete.</span> If the printed output from level 2 cleaning is acceptable, then click <span style=" font-style:italic;">Cancel</span> to exit. Otherwise, click <span style=" font-style:italic;">Clean</span> again to begin the level 3 cleaning process. </p></body></html>am  <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 cleaning 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>zStep %1 of %2zNext >ZCancel)r   ZQCoreApplicationÚ	translateZsetWindowTitler	   ZsetTextr   r   r#   r*   r.   r0   r2   r3   )r8   r   Z
_translater9   r9   r:   r7   “   s    zUi_Dialog.retranslateUiN)Ú__name__Ú
__module__Ú__qualname__r;   r7   r9   r9   r9   r:   r      s    r   r
   )r5   )r6   N)
ZPyQt5r   r   r   Úobjectr   Zdeviceuricomboboxr5   Zloadpapergroupboxr6   r9   r9   r9   r:   Ú<module>	   s    %