eric7.Project.FiletypeAssociationDialog

Module implementing a dialog to enter filetype associations for the project.

Global Attributes

None

Classes

FiletypeAssociationDialog Class implementing a dialog to enter filetype associations for the project.

Functions

None


FiletypeAssociationDialog

Class implementing a dialog to enter filetype associations for the project.

Derived from

QDialog, Ui_FiletypeAssociationDialog

Class Attributes

None

Class Methods

None

Methods

FiletypeAssociationDialog Constructor
__createItem Private slot to create a new entry in the association list.
__reformat Private method to reformat the tree.
__resort Private method to resort the tree.
__updateAddButton Private method to update the enabled state of the 'add' button.
on_addAssociationButton_clicked Private slot to add the association displayed to the list.
on_deleteAssociationButton_clicked Private slot to delete the currently selected association of the listbox.
on_filePatternEdit_textChanged Private slot to handle the textChanged signal of the pattern lineedit.
on_filetypeAssociationList_currentItemChanged Private slot to handle the currentItemChanged signal of the association list.
on_filetypeCombo_currentIndexChanged Private slot handling the selection of a file type.
transferData Public slot to transfer the associations into the projects data structure.

Static Methods

None

FiletypeAssociationDialog (Constructor)

FiletypeAssociationDialog(project, parent=None)

Constructor

project
reference to the project object
parent
reference to the parent widget (QWidget)

FiletypeAssociationDialog.__createItem

__createItem(pattern, filetypeStr, fileCategory)

Private slot to create a new entry in the association list.

pattern (str)
pattern of the entry
filetypeStr (str)
file type user string of the entry
fileCategory (str)
category of the file
Return:
reference to the newly generated entry
Return Type:
QTreeWidgetItem

FiletypeAssociationDialog.__reformat

__reformat()

Private method to reformat the tree.

FiletypeAssociationDialog.__resort

__resort()

Private method to resort the tree.

FiletypeAssociationDialog.__updateAddButton

__updateAddButton()

Private method to update the enabled state of the 'add' button.

FiletypeAssociationDialog.on_addAssociationButton_clicked

on_addAssociationButton_clicked()

Private slot to add the association displayed to the list.

FiletypeAssociationDialog.on_deleteAssociationButton_clicked

on_deleteAssociationButton_clicked()

Private slot to delete the currently selected association of the listbox.

FiletypeAssociationDialog.on_filePatternEdit_textChanged

on_filePatternEdit_textChanged(txt)

Private slot to handle the textChanged signal of the pattern lineedit.

txt
text of the line edit (string)

FiletypeAssociationDialog.on_filetypeAssociationList_currentItemChanged

on_filetypeAssociationList_currentItemChanged(itm, prevItm)

Private slot to handle the currentItemChanged signal of the association list.

itm
reference to the new current item (QTreeWidgetItem)
prevItm
reference to the previous current item (QTreeWidgetItem)

FiletypeAssociationDialog.on_filetypeCombo_currentIndexChanged

on_filetypeCombo_currentIndexChanged(index)

Private slot handling the selection of a file type.

index (int)
index of the selected entry

FiletypeAssociationDialog.transferData

transferData()

Public slot to transfer the associations into the projects data structure.

Up