3
NZ                 @   s(   d dl mZmZmZ G dd deZdS )    )QtCoreQtGui	QtWidgetsc               @   s   e Zd Zdd Zdd ZdS )Ui_NoDevicesDialog_basec             C   sh  |j d |jdd tj|| _| jjdddd | jjd | jj d tj|| _tj	tj	j
tj	j
}|jd |jd |j| jj j  | jj| | jjtjj | jjd | jjd	 | 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ddtj	jtj	j}| jj|dddd tj|| _| jjtjj | jjd | 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!j d | jj| j!dddd tj || _"| j"j d | jj| j"dddd tj || _#| j#j$d | j#j d | jj| j#dddd | j%| tj&j'| d S )NNoDevicesDialog_basei  iO        
gridlayoutr   TFIcon      i        
textLabel7   i     SetupButton
CUPSButtonCloseButton)(ZsetObjectNameZresizer   ZQGridLayoutr	   ZsetContentsMarginsZ
setSpacingZQLabelr
   ZQSizePolicyZFixedZsetHorizontalStretchZsetVerticalStretchZsetHeightForWidth
sizePolicyZhasHeightForWidthZsetSizePolicyZsetFrameShapeZQFrameZNoFrameZsetScaledContentsZsetWordWrapZ	addWidgetZQSpacerItemZMinimumZ	ExpandingZaddItemr   ZsetAlignmentr   ZQtZAlignVCenterZQPushButtonr   r   r   Z
setDefaultretranslateUiZQMetaObjectZconnectSlotsByName)selfr   r   Z
spacerItemZspacerItem1ZspacerItem2 r   ,/usr/share/hplip/ui5/nodevicesdialog_base.pysetupUi   sP    



zUi_NoDevicesDialog_base.setupUic             C   sd   t jj}|j|dd | jj|dd | jj|dd | jj|dd | jj|dd d S )Nr   z1HP Device Manager - No Installed HP Devices FoundaE
  <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;"><span style=" font-size:x-large; font-weight:600;">No Installed HP Devices Found.</span></p>
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">To setup a new device in the HP Device Manager (toolbox), use one of the following methods:</p>
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">1.Run <span style=" font-weight:600;">hp-setup</span> (in a shell/terminal or click <span style=" font-family:'Courier New,courier';">Setup Device...</span> below).</p>
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">2. <span style=" font-weight:600;">CUPS web interface</span> (open a browser to: <span style=" text-decoration: underline;">http://localhost:631</span> or press the button below),</p>
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">3. The <span style=" font-weight:600;">printer installation utility</span> that came with your operating system (YaST, PrinterDrake, etc). </p>
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">After setting up a printer, you may have to press <span style=" font-family:'Courier New,courier';">F6</span> or chose <span style=" font-family:'Courier New,courier';">Device | Refresh All</span> for the printer to appear in the HP Device Manager.</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; font-style:italic;">Note: Only devices installed with the </span><span style=" font-family:'Courier New,courier'; font-weight:600; font-style:italic;">hp:</span><span style=" font-weight:600; font-style:italic;"> or </span><span style=" font-family:'Courier New,courier'; font-weight:600; font-style:italic;">hpfax:</span><span style=" font-weight:600; font-style:italic;"> CUPS backend will appear in the HP Device Manager.</span></p>
<p style="-qt-paragraph-type:empty; margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"></p></body></html>zSetup Device...zCUPS Web InterfaceZClose)	r   ZQCoreApplication	translateZsetWindowTitler   ZsetTextr   r   r   )r   r   Z
_translater   r   r   r   7   s    z%Ui_NoDevicesDialog_base.retranslateUiN)__name__
__module____qualname__r   r   r   r   r   r   r      s   +r   N)ZPyQt5r   r   r   objectr   r   r   r   r   <module>	   s   