eric7.UI.FindFileFiltersEditDialog

Module implementing a dialog to configure the file filters.

Global Attributes

None

Classes

FindFileFiltersEditDialog Class implementing a dialog to configure the file filters.

Functions

None


FindFileFiltersEditDialog

Class implementing a dialog to configure the file filters.

Derived from

QDialog, Ui_FindFileFiltersEditDialog

Class Attributes

FilterPatternRole
FilterTextRole

Class Methods

None

Methods

FindFileFiltersEditDialog Constructor
__adjustColumns Private method to adjust the column widths.
__getFilterNames Private method to get the list of defined filter names.
__populateFilters Private method to populate the filters list.
getFilters Public method to retrieve the edited filter list.
on_addFileFilterButton_clicked Private slot to add a new filter entry.
on_defaultFiltersButton_clicked Private slot to create the default list of file filters.
on_deleteFileFilterButton_clicked Private slot to delete the selected filter entries.
on_editFileFilterButton_clicked Private slot to edit the selected filter entry..
on_fileFiltersList_itemSelectionChanged Private slot to handle a change of the selected items.

Static Methods

None

FindFileFiltersEditDialog (Constructor)

FindFileFiltersEditDialog(filters, parent=None)

Constructor

filters (dict)
dictionary with the filter name as key and a list of file name patterns as value
parent (QWidget (optional))
reference to the parent widget (defaults to None)

FindFileFiltersEditDialog.__adjustColumns

__adjustColumns()

Private method to adjust the column widths.

FindFileFiltersEditDialog.__getFilterNames

__getFilterNames(forEdit=False)

Private method to get the list of defined filter names.

forEdit (bool (optional))
flag indicating a list for an edit operation (defaults to False)
Return:
list of defined filter names
Return Type:
list of str

FindFileFiltersEditDialog.__populateFilters

__populateFilters(filters)

Private method to populate the filters list.

filters (dict)
dictionary containing the existing file filters

FindFileFiltersEditDialog.getFilters

getFilters()

Public method to retrieve the edited filter list.

Return:
dictionary containing the defined file filters with the filter name as key and a list of file name patterns as value
Return Type:
dict

FindFileFiltersEditDialog.on_addFileFilterButton_clicked

on_addFileFilterButton_clicked()

Private slot to add a new filter entry.

FindFileFiltersEditDialog.on_defaultFiltersButton_clicked

on_defaultFiltersButton_clicked()

Private slot to create the default list of file filters.

FindFileFiltersEditDialog.on_deleteFileFilterButton_clicked

on_deleteFileFilterButton_clicked()

Private slot to delete the selected filter entries.

FindFileFiltersEditDialog.on_editFileFilterButton_clicked

on_editFileFilterButton_clicked()

Private slot to edit the selected filter entry..

FindFileFiltersEditDialog.on_fileFiltersList_itemSelectionChanged

on_fileFiltersList_itemSelectionChanged()

Private slot to handle a change of the selected items.

Up