6.56. umbra.components.factory.scriptEditor.searchInFiles

searchInFiles.py

Platform:
Windows, Linux, Mac Os X.
Description:
Defines the SearchInFiles class.

Others:

6.56.1. Module Attributes

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

6.56.2. Classes

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

Bases: foundations.ui.common.QWidget

Defines search and replace in files dialog used by the ScriptEditor Component.

Initializes the class.

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

Property for self.__container attribute.

Returns:self.__container.
Return type:QObject
scriptEditor[source]

Property for self.__scriptEditor attribute.

Returns:self.__scriptEditor.
Return type:QWidget
filesCache[source]

Property for self.__filesCache attribute.

Returns:self.__filesCache.
Return type:Cache
searchPatternsModel[source]

Property for self.__searchPatternsModel attribute.

Returns:self.__searchPatternsModel.
Return type:PatternsModel
replaceWithPatternsModel[source]

Property for self.__replaceWithPatternsModel attribute.

Returns:self.__replaceWithPatternsModel.
Return type:PatternsModel
model[source]

Property for self.__model attribute.

Returns:self.__model.
Return type:SearchResultsModel
view[source]

Property for self.__view attribute.

Returns:self.__view.
Return type:QWidget
delegate[source]

Property for self.__delegate attribute.

Returns:self.__delegate.
Return type:QItemDelegate
locations[source]

Property for self.__locations attribute.

Returns:self.__locations.
Return type:OrderedDict
locationsMenu[source]

Property for self.__locationsMenu attribute.

Returns:self.__locationsMenu.
Return type:QMenu
defaultFilterIn[source]

Property for self.__defaultFilterIn attribute.

Returns:self.__defaultFilterIn.
Return type:unicode
filtersInFormat[source]

Property for self.__filtersInFormat attribute.

Returns:self.__filtersInFormat.
Return type:unicode
defaultFilterOut[source]

Property for self.__defaultFilterOut attribute.

Returns:self.__defaultFilterOut.
Return type:unicode
filtersOutFormat[source]

Property for self.__filtersOutFormat attribute.

Returns:self.__filtersOutFormat.
Return type:unicode
defaultTarget[source]

Property for self.__defaultTarget attribute.

Returns:self.__defaultTarget.
Return type:unicode
targetsFormat[source]

Property for self.__targetsFormat attribute.

Returns:self.__targetsFormat.
Return type:unicode
defaultLineNumberWidth[source]

Property for self.__defaultLineNumberWidth attribute.

Returns:self.__defaultLineNumberWidth.
Return type:int
defaultLineColor[source]

Property for self.__defaultLineColor attribute.

Returns:self.__defaultLineColor.
Return type:QColor
ignoreHiddenFiles[source]

Property for self.__ignoreHiddenFiles attribute.

Returns:self.__ignoreHiddenFiles.
Return type:bool
searchWorkerThread[source]

Property for self.__searchWorkerThread attribute.

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

Reimplements the QWidget.show() method.

closeEvent(event)[source]

Reimplements the QWidget.closeEvent() method.

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

Sets the Model Nodes using given search results.

Parameters:searchResults (list) – Search results.
Returns:Method success.
Return type:bool
setReplaceResults(replaceResults)[source]

Sets the Model Nodes using given replace results.

Parameters:replaceResults (list) – Replace results.
Returns:Method success.
Return type:bool
search()[source]

Searchs user defined locations for search pattern.

Returns:Method success.
Return type:bool
replace(nodes)[source]

Replaces user defined files search pattern occurrences with replacement pattern using given nodes.

Parameters:nodes (list) – Nodes.
Returns:Method success.
Return type:bool
saveFiles(nodes)[source]

Saves user defined files using give nodes.

Parameters:nodes (list) – Nodes.
Returns:Method success.
Return type:bool