%PDF- %PDF-
Mini Shell

Mini Shell

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

�

=	f���p�ddl�ddl�ddlmZddlmZddl�ddl�ddl�dZ	dZ
dZGd�de�Z
y)	�)�*�)�device)�
to_unicode�c�p�eZdZe�Ze�Zee�Zd�Zd�Z	d�Z
d�Zd�Zd�Z
d�Zd�Zdd
�Zy	)�DeviceUriComboBoxc�2�tj||�d|_d|_d|_t
|_d|_d|_t�|_
|jj�|jj�|j�y)N�F)�QWidget�__init__�
device_uri�initial_device�updating�#DEVICEURICOMBOBOX_TYPE_PRINTER_ONLY�typ�filter�devices�UserSettings�
user_settings�load�debug�initUi)�self�parents  �)/usr/share/hplip/ui5/deviceuricombobox.pyr
zDeviceUriComboBox.__init__-st������v�&����"�����
�6���������)�^��������!���� � �"����
�c��t|�}|jd�t|�|_|jjd�|j	|j�tddtjtj�}|j|�t|�|_
t
tjtj�}|jd�|jd�|j|jj!�j#��|jj%|�|jjd�|j	|j�|jj'|j)d��|jj*dj-|j.�y)N�
HBoxLayout�	NameLabel�r�ComboBoxzDevice:zconst QString &)�QHBoxLayout�
setObjectName�QLabelr �	addWidget�QSpacerItem�QSizePolicy�Minimum�addItem�	QComboBoxr"�	Expanding�	Preferred�setHorizontalStretch�setVerticalStretch�setHeightForWidth�
sizePolicy�hasHeightForWidth�
setSizePolicy�setText�_DeviceUriComboBox__tr�currentIndexChanged�connect�ComboBox_currentIndexChanged)rr�
SpacerItemr1s    rrzDeviceUriComboBox.initUi=sM�� ��&�
�� � ��.���������$�$�[�1����T�^�^�,� ��R��)<�)<�k�>Q�>Q�R�
����:�&�!�$���
� ��!6�!6��8M�8M�N�
��'�'��*��%�%�a�(��$�$�T�]�]�%=�%=�%?�%Q�%Q�%S�T��
�
�#�#�J�/��
�
�#�#�J�/����T�]�]�+������t�y�y��3�4�	
�
�
�)�)�*;�<�D�D�T�Ef�Ef�grc�:�|tttfvr||_yy�N)r�DEVICEURICOMBOBOX_TYPE_FAX_ONLY�&DEVICEURICOMBOBOX_TYPE_PRINTER_AND_FAXr)rrs  r�setTypezDeviceUriComboBox.setTypeZs&���6�2�9�;�;��D�H�;rc��||_yr;)r)rrs  r�	setFilterzDeviceUriComboBox.setFilteras	����rc��||_yr;)r)rrs  r�setInitialDevicez"DeviceUriComboBox.setInitialDevicees
��(��rc�.�|jtk(rdg}nE|jtk(r.dg}|jj	|jd��nddg}t
j||j�|_	t|j�S)N�hp�hpfaxzFax Device:)rrr<r r4r5r�getSupportedCUPSDevicesrr�len)r�	be_filters  r�
setDeviceszDeviceUriComboBox.setDevicesisw���8�8�:�:���I�
�X�X�8�
8� �	�I��N�N�"�"�4�9�9�]�#;�<��w��I��5�5�i����M����4�<�<� � rc��|j�|j�i|_|j�r|j�|jj
|_d|_	d}t|j�D]G\}}|jj||�|j��/||jk(s�?d|_|}�I|jjd�d|_|jj|�t|j�dk(r|jj�yy|jj�y#d|_wxYw)NTr���Fr)rrI�device_indexrr�last_used_device_urir�	enumerater"�
insertItem�setCurrentIndexrG�DeviceUriComboBox_oneDevice�emit�DeviceUriComboBox_noDevices)r�k�i�ds    r�updateUizDeviceUriComboBox.updateUixs ���<�<���O�O������<�<��"�"�*�&*�&8�&8�&M�&M��#� �D�M�
&���%�d�l�l�3��D�A�q��M�M�,�,�Q��2��*�*�6�1��@S�@S�;S�.2��+�����
�
�-�-�b�1� %��
��M�M�)�)�!�,��4�<�<� �A�%��0�0�5�5�7�&�
�,�,�1�1�3��!&��
�s� AE
�&E
�6&E
�
	Ec��|jryt|�|_|jr[|j|j_|jj�|jj|j�yyr;)rrrrrM�save� DeviceUriComboBox_currentChangedrR)r�ts  rr8z.DeviceUriComboBox.ComboBox_currentIndexChanged�sa���=�=��$�Q�-����?�?�6:�o�o�D���3����#�#�%�
�1�1�6�6�t���G�
rNc�0�tjd||�S)Nr	)�qApp�	translate)r�s�cs   r�__trzDeviceUriComboBox.__tr�s���~�~�1�!�A�6�6rr;)�__name__�
__module__�__qualname__�
pyqtSignalrQrS�strrZr
rr>r@rBrIrWr8r5�rrr	r	)sL��",�,��",�,��'1�#��$�
� h�:��)�!�!4�FH�7rr	N)�base.g�ui_utils�baser�base.sixextr�PyQt5.QtCore�PyQt5.QtGui�PyQt5.QtWidgetsrr<r=rr	rgrr�<module>ros@��2���#����'(�#�"#��)*�&�@7��@7r

Zerion Mini Shell 1.0