4.21. umbra.components.factory.scriptEditor.searchInFiles

searchInFiles.py

Platform:
Windows, Linux, Mac Os X.
Description:
This module defines the SearchInFiles class.

Others:

4.21.1. Module Attributes

umbra.components.factory.scriptEditor.searchInFiles.LOGGER
umbra.components.factory.scriptEditor.searchInFiles.UI_FILE

4.21.2. Classes

class umbra.components.factory.scriptEditor.searchInFiles.SearchInFiles(parent, *args, **kwargs)[source]

Bases: foundations.ui.common.QWidget

This class defines search and replace in files dialog used by the ScriptEditor Component.

Parameters:
  • parent – Object parent. ( QObject )
  • *args – Arguments. ( * )
  • **kwargs – Keywords arguments. ( ** )
container[source]

This method is the property for self.__container attribute.

Returns:self.__container. ( QObject )
scriptEditor[source]

This method is the property for self.__scriptEditor attribute.

Returns:self.__scriptEditor. ( QWidget )
filesCache[source]

This method is the property for self.__filesCache attribute.

Returns:self.__filesCache. ( Cache )
searchPatternsModel[source]

This method is the property for self.__searchPatternsModel attribute.

Returns:self.__searchPatternsModel. ( PatternsModel )
replaceWithPatternsModel[source]

This method is the property for self.__replaceWithPatternsModel attribute.

Returns:self.__replaceWithPatternsModel. ( PatternsModel )
model[source]

This method is the property for self.__model attribute.

Returns:self.__model. ( SearchResultsModel )
view[source]

This method is the property for self.__view attribute.

Returns:self.__view. ( QWidget )
delegate[source]

This method is the property for self.__delegate attribute.

Returns:self.__delegate. ( QItemDelegate )
locations[source]

This method is the property for self.__locations attribute.

Returns:self.__locations. ( OrderedDict )
locationsMenu[source]

This method is the property for self.__locationsMenu attribute.

Returns:self.__locationsMenu. ( QMenu )
defaultFilterIn[source]

This method is the property for self.__defaultFilterIn attribute.

Returns:self.__defaultFilterIn. ( String )
filtersInFormat[source]

This method is the property for self.__filtersInFormat attribute.

Returns:self.__filtersInFormat. ( String )
defaultFilterOut[source]

This method is the property for self.__defaultFilterOut attribute.

Returns:self.__defaultFilterOut. ( String )
filtersOutFormat[source]

This method is the property for self.__filtersOutFormat attribute.

Returns:self.__filtersOutFormat. ( String )
defaultTarget[source]

This method is the property for self.__defaultTarget attribute.

Returns:self.__defaultTarget. ( String )
targetsFormat[source]

This method is the property for self.__targetsFormat attribute.

Returns:self.__targetsFormat. ( String )
defaultLineNumberWidth[source]

This method is the property for self.__defaultLineNumberWidth attribute.

Returns:self.__defaultLineNumberWidth. ( Integer )
defaultLineColor[source]

This method is the property for self.__defaultLineColor attribute.

Returns:self.__defaultLineColor. ( QColor )
ignoreHiddenFiles[source]

This method is the property for self.__ignoreHiddenFiles attribute.

Returns:self.__ignoreHiddenFiles. ( Boolean )
searchWorkerThread[source]

This method is the property for self.__searchWorkerThread attribute.

Returns:self.__searchWorkerThread. ( QThread )
show()[source]

This method reimplements the QWidget.show() method.

closeEvent(event)[source]

This method reimplements the QWidget.closeEvent() method.

Parameters:event – QEvent. ( QEvent )
setSearchResults(searchResults)[source]

This method sets the Model Nodes using given search results.

Parameters:searchResults – Search results. ( List )
Returns:Method success. ( Boolean )
setReplaceResults(replaceResults)[source]

This method sets the Model Nodes using given replace results.

Parameters:replaceResults – Replace results. ( List )
Returns:Method success. ( Boolean )
search()[source]

This method searchs user defined locations for search pattern.

Returns:Method success. ( Boolean )
replace(nodes)[source]

This method replaces user defined files search pattern occurences with replacement pattern using given nodes.

Parameters:nodes – Nodes. ( List )
Returns:Method success. ( Boolean )
saveFiles(nodes)[source]

This method saves user defined files using give nodes.

Parameters:nodes – Nodes. ( List )
Returns:Method success. ( Boolean )