
    G@d                     v    d Z ddlmZmZmZmZmZmZ ddlm	Z	 ddl
mZ ddlmZ ddlmZ  G d de	          Zd	S )
z!File explorer configuration page.    )
QTabWidgetQVBoxLayoutQWidget	QGroupBoxQLabelQPushButton)PluginConfigPage)_)NAME_FILTERS)FileAssociationsWidgetc                        e Zd Zd Zd Zd ZdS )ExplorerConfigPagec                    | j         }t                      }t          t          d                    } |t          d          d          } |t          d          d          }t	                      }|                    |           |                    |           |                    |           t          t          d                    }t          t          d                    }|                    d           |	                    d           | 
                    d	d
dt                    | _        | j                            d           t          t          d                    }	|	j                            | j                   t	                      }
|
                    |           |
                    | j                   |
                    |	           |                    |
           t                      }| 
                    d	dt$                    | _        t)                      }|                    |                     di                      | j                            d           t	                      }|                    |           |                    |           |                    |           t	                      }|                    |           |                    | j                   |                    |           t1                      | _        | j                            |                     |          t          d                     | j                            |                     |          t          d                     t	                      }|                    | j                   |                     |           |j                            | j                   d S )NzGeneral optionszShow hidden filesshow_hiddenzSingle click to open filessingle_click_to_openzFilter settingszFilter files by name, extension, or more using <a href="https://en.wikipedia.org/wiki/Glob_(programming)">glob patterns.</a> Please enter the glob patterns of the files you want to show, separated by commas.T name_filtersz Enter values separated by commas)tipcontent_typezReset to default valuesfile_associations)r   FGeneralzFile associations)create_checkboxr   r   r
   r   	addWidget	setLayoutr   setOpenExternalLinkssetWordWrapcreate_texteditlistedit_filename_filters
setEnabledr   clickedconnectreset_to_defaultdictedit_file_associationsr   load_values
get_option
setVisibler   tabsaddTab
create_tabsig_data_changedupdate_associations)selfnewcbgeneral_widgetbasic_groupcheck_show_hidden_filescheck_single_clickbasic_layoutfilter_groupdescription_label	reset_btnfilter_layoutassociations_widgetr   layoutlayout_file
tab_layouts                   @lib/python3.11/site-packages/spyder/plugins/explorer/confpage.py
setup_pagezExplorerConfigPage.setup_page   s   $ !  "3 4 455"'%*=(>(>"N"N"U*++-CE E"}}67771222l+++ !#4!5!566" 3 4 45 5
 	..t444%%d+++%)%9%93	 &: &
 &
" 	"--d333"; < <==	!!$"7888# 1222 :;;;	***}---%ii&*&:&: '; '
 '
#
 344 	%%doo6I2&N&NOOO#..u555%%%&&&  (((!mm/000d9:::%%k222LL		88!I,,GGG	)<==.//	1 	1 	1 !]]
TY'''z""" 	*2243KLLLLL    c                 b    | j         j        }|                    t          |                     dS )zT
        Update the content of the text edit used to store the config data.
        N)r%   textboxsetPlainTextstr)r.   datatextedits      r=   r-   z&ExplorerConfigPage.update_associationsf   s/     .6c$ii(((((r?   c                     |                      dt                     | j        j        }|                    d                    t                               dS )z%Reset the filter settings to default.r   z, N)
set_optionr   r   rA   rB   join)r.   rE   s     r=   r#   z#ExplorerConfigPage.reset_to_defaultm   sG    555-5dii5566666r?   N)__name__
__module____qualname__r>   r-   r#    r?   r=   r   r      sH        MM MM MM^) ) )7 7 7 7 7r?   r   N)__doc__qtpy.QtWidgetsr   r   r   r   r   r   spyder.api.preferencesr	   spyder.api.translationsr
   spyder.config.mainr   0spyder.plugins.explorer.widgets.fileassociationsr   r   rL   r?   r=   <module>rS      s    ( '1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 4 3 3 3 3 3 % % % % % % + + + + + +     \7 \7 \7 \7 \7) \7 \7 \7 \7 \7r?   