eric7.Preferences.ToolConfigurationDialog

Module implementing a configuration dialog for the tools menu.

Global Attributes

None

Classes

ToolConfigurationDialog Class implementing a configuration dialog for the tools menu.

Functions

None


ToolConfigurationDialog

Class implementing a configuration dialog for the tools menu.

Derived from

QDialog, Ui_ToolConfigurationDialog

Class Attributes

None

Class Methods

None

Methods

ToolConfigurationDialog Constructor
__findModeIndex Private method to find the mode index by its short name.
__swap Private method used two swap two list entries given by their index.
__toolEntryChanged Private slot to perform actions when a tool entry was changed.
getToollist Public method to retrieve the tools list.
on_addButton_clicked Private slot to add a new entry.
on_argumentsEdit_textChanged Private slot called, when the arguments string was changed.
on_changeButton_clicked Private slot to change an entry.
on_deleteButton_clicked Private slot to delete the selected entry.
on_downButton_clicked Private slot to move an entry down in the list.
on_executablePicker_pathSelected Private slot to check the executable after it has been selected.
on_executablePicker_textChanged Private slot called, when the executable was changed.
on_iconPicker_textChanged Private slot called, when the icon path was changed.
on_menuEdit_textChanged Private slot called, when the menu text was changed.
on_newButton_clicked Private slot to clear all entry fields.
on_redirectCombo_currentIndexChanged Private slot called, when the redirection mode was changed.
on_separatorButton_clicked Private slot to add a menu separator.
on_toolsList_currentRowChanged Private slot to set the lineedits depending on the selected entry.
on_upButton_clicked Private slot to move an entry up in the list.

Static Methods

None

ToolConfigurationDialog (Constructor)

ToolConfigurationDialog(toollist, parent=None)

Constructor

toollist (list)
list of configured tools
parent (QWidget)
parent widget

ToolConfigurationDialog.__findModeIndex

__findModeIndex(shortName)

Private method to find the mode index by its short name.

shortName (str)
short name of the mode
Return:
index of the mode
Return Type:
int

ToolConfigurationDialog.__swap

__swap(itm1, itm2)

Private method used two swap two list entries given by their index.

itm1 (int)
index of first entry
itm2 (int)
index of second entry

ToolConfigurationDialog.__toolEntryChanged

__toolEntryChanged()

Private slot to perform actions when a tool entry was changed.

ToolConfigurationDialog.getToollist

getToollist()

Public method to retrieve the tools list.

Return:
a list of tuples containing the menu text, the executable, the executables arguments and a redirection flag
Return Type:
list of [tuple of (str, str, list of str, bool)]

ToolConfigurationDialog.on_addButton_clicked

on_addButton_clicked()

Private slot to add a new entry.

ToolConfigurationDialog.on_argumentsEdit_textChanged

on_argumentsEdit_textChanged(text)

Private slot called, when the arguments string was changed.

text (str)
the new text (ignored)

ToolConfigurationDialog.on_changeButton_clicked

on_changeButton_clicked()

Private slot to change an entry.

ToolConfigurationDialog.on_deleteButton_clicked

on_deleteButton_clicked()

Private slot to delete the selected entry.

ToolConfigurationDialog.on_downButton_clicked

on_downButton_clicked()

Private slot to move an entry down in the list.

ToolConfigurationDialog.on_executablePicker_pathSelected

on_executablePicker_pathSelected(path)

Private slot to check the executable after it has been selected.

path (str)
path of the executable

ToolConfigurationDialog.on_executablePicker_textChanged

on_executablePicker_textChanged(text)

Private slot called, when the executable was changed.

text (str)
the new text (ignored)

ToolConfigurationDialog.on_iconPicker_textChanged

on_iconPicker_textChanged(text)

Private slot called, when the icon path was changed.

text (str)
the new text (ignored)

ToolConfigurationDialog.on_menuEdit_textChanged

on_menuEdit_textChanged(text)

Private slot called, when the menu text was changed.

text (str)
the new text (ignored)

ToolConfigurationDialog.on_newButton_clicked

on_newButton_clicked()

Private slot to clear all entry fields.

ToolConfigurationDialog.on_redirectCombo_currentIndexChanged

on_redirectCombo_currentIndexChanged(_index)

Private slot called, when the redirection mode was changed.

_index (int)
the selected mode index (unused)

ToolConfigurationDialog.on_separatorButton_clicked

on_separatorButton_clicked()

Private slot to add a menu separator.

ToolConfigurationDialog.on_toolsList_currentRowChanged

on_toolsList_currentRowChanged(row)

Private slot to set the lineedits depending on the selected entry.

row (int)
the row of the selected entry

ToolConfigurationDialog.on_upButton_clicked

on_upButton_clicked()

Private slot to move an entry up in the list.

Up