signature
stringlengths
8
3.44k
body
stringlengths
0
1.41M
docstring
stringlengths
1
122k
id
stringlengths
5
17
@property<EOL><INDENT>def settings(self):<DEDENT>
return self.__settings<EOL>
Property for **self.__settings** attribute. :return: self.__settings. :rtype: QSettings
f13118:c0:m19
@settings.setter<EOL><INDENT>@foundations.exceptions.handle_exceptions(foundations.exceptions.ProgrammingError)<EOL>def settings(self, value):<DEDENT>
raise foundations.exceptions.ProgrammingError(<EOL>"<STR_LIT>".format(self.__class__.__name__, "<STR_LIT>"))<EOL>
Setter for **self.__settings** attribute. :param value: Attribute value. :type value: QSettings
f13118:c0:m20
@settings.deleter<EOL><INDENT>@foundations.exceptions.handle_exceptions(foundations.exceptions.ProgrammingError)<EOL>def settings(self):<DEDENT>
raise foundations.exceptions.ProgrammingError(<EOL>"<STR_LIT>".format(self.__class__.__name__, "<STR_LIT>"))<EOL>
Deleter for **self.__settings** attribute.
f13118:c0:m21
@property<EOL><INDENT>def model(self):<DEDENT>
return self.__model<EOL>
Property for **self.__model** attribute. :return: self.__model. :rtype: ComponentsModel
f13118:c0:m22
@model.setter<EOL><INDENT>@foundations.exceptions.handle_exceptions(foundations.exceptions.ProgrammingError)<EOL>def model(self, value):<DEDENT>
raise foundations.exceptions.ProgrammingError(<EOL>"<STR_LIT>".format(self.__class__.__name__, "<STR_LIT>"))<EOL>
Setter for **self.__model** attribute. :param value: Attribute value. :type value: ComponentsModel
f13118:c0:m23
@model.deleter<EOL><INDENT>@foundations.exceptions.handle_exceptions(foundations.exceptions.ProgrammingError)<EOL>def model(self):<DEDENT>
raise foundations.exceptions.ProgrammingError(<EOL>"<STR_LIT>".format(self.__class__.__name__, "<STR_LIT>"))<EOL>
Deleter for **self.__model** attribute.
f13118:c0:m24
@property<EOL><INDENT>def view(self):<DEDENT>
return self.__view<EOL>
Property for **self.__view** attribute. :return: self.__view. :rtype: QWidget
f13118:c0:m25
@view.setter<EOL><INDENT>@foundations.exceptions.handle_exceptions(foundations.exceptions.ProgrammingError)<EOL>def view(self, value):<DEDENT>
raise foundations.exceptions.ProgrammingError(<EOL>"<STR_LIT>".format(self.__class__.__name__, "<STR_LIT>"))<EOL>
Setter for **self.__view** attribute. :param value: Attribute value. :type value: QWidget
f13118:c0:m26
@view.deleter<EOL><INDENT>@foundations.exceptions.handle_exceptions(foundations.exceptions.ProgrammingError)<EOL>def view(self):<DEDENT>
raise foundations.exceptions.ProgrammingError(<EOL>"<STR_LIT>".format(self.__class__.__name__, "<STR_LIT>"))<EOL>
Deleter for **self.__view** attribute.
f13118:c0:m27
@property<EOL><INDENT>def headers(self):<DEDENT>
return self.__headers<EOL>
Property for **self.__headers** attribute. :return: self.__headers. :rtype: list
f13118:c0:m28
@headers.setter<EOL><INDENT>@foundations.exceptions.handle_exceptions(foundations.exceptions.ProgrammingError)<EOL>def headers(self, value):<DEDENT>
raise foundations.exceptions.ProgrammingError(<EOL>"<STR_LIT>".format(self.__class__.__name__, "<STR_LIT>"))<EOL>
Setter for **self.__headers** attribute. :param value: Attribute value. :type value: list
f13118:c0:m29
@headers.deleter<EOL><INDENT>@foundations.exceptions.handle_exceptions(foundations.exceptions.ProgrammingError)<EOL>def headers(self):<DEDENT>
raise foundations.exceptions.ProgrammingError(<EOL>"<STR_LIT>".format(self.__class__.__name__, "<STR_LIT>"))<EOL>
Deleter for **self.__headers** attribute.
f13118:c0:m30
@property<EOL><INDENT>def tree_view_inner_margins(self):<DEDENT>
return self.__tree_view_inner_margins<EOL>
Property for **self.__tree_view_inner_margins** attribute. :return: self.__tree_view_inner_margins. :rtype: int
f13118:c0:m31
@tree_view_inner_margins.setter<EOL><INDENT>@foundations.exceptions.handle_exceptions(foundations.exceptions.ProgrammingError)<EOL>def tree_view_inner_margins(self, value):<DEDENT>
raise foundations.exceptions.ProgrammingError(<EOL>"<STR_LIT>".format(self.__class__.__name__, "<STR_LIT>"))<EOL>
Setter for **self.__tree_view_inner_margins** attribute. :param value: Attribute value. :type value: int
f13118:c0:m32
@tree_view_inner_margins.deleter<EOL><INDENT>@foundations.exceptions.handle_exceptions(foundations.exceptions.ProgrammingError)<EOL>def tree_view_inner_margins(self):<DEDENT>
raise foundations.exceptions.ProgrammingError(<EOL>"<STR_LIT>".format(self.__class__.__name__, "<STR_LIT>"))<EOL>
Deleter for **self.__tree_view_inner_margins** attribute.
f13118:c0:m33
@property<EOL><INDENT>def components_informations_default_text(self):<DEDENT>
return self.__components_informations_default_text<EOL>
Property for **self.__components_informations_default_text** attribute. :return: self.__components_informations_default_text. :rtype: unicode
f13118:c0:m34
@components_informations_default_text.setter<EOL><INDENT>@foundations.exceptions.handle_exceptions(foundations.exceptions.ProgrammingError)<EOL>def components_informations_default_text(self, value):<DEDENT>
raise foundations.exceptions.ProgrammingError(<EOL>"<STR_LIT>".format(self.__class__.__name__,<EOL>"<STR_LIT>"))<EOL>
Setter for **self.__components_informations_default_text** attribute. :param value: Attribute value. :type value: unicode
f13118:c0:m35
@components_informations_default_text.deleter<EOL><INDENT>@foundations.exceptions.handle_exceptions(foundations.exceptions.ProgrammingError)<EOL>def components_informations_default_text(self):<DEDENT>
raise foundations.exceptions.ProgrammingError(<EOL>"<STR_LIT>".format(self.__class__.__name__,<EOL>"<STR_LIT>"))<EOL>
Deleter for **self.__components_informations_default_text** attribute.
f13118:c0:m36
@property<EOL><INDENT>def components_informations_text(self):<DEDENT>
return self.__components_informations_text<EOL>
Property for **self.__components_informations_text** attribute. :return: self.__components_informations_text. :rtype: unicode
f13118:c0:m37
@components_informations_text.setter<EOL><INDENT>@foundations.exceptions.handle_exceptions(foundations.exceptions.ProgrammingError)<EOL>def components_informations_text(self, value):<DEDENT>
raise foundations.exceptions.ProgrammingError(<EOL>"<STR_LIT>".format(self.__class__.__name__, "<STR_LIT>"))<EOL>
Setter for **self.__components_informations_text** attribute. :param value: Attribute value. :type value: unicode
f13118:c0:m38
@components_informations_text.deleter<EOL><INDENT>@foundations.exceptions.handle_exceptions(foundations.exceptions.ProgrammingError)<EOL>def components_informations_text(self):<DEDENT>
raise foundations.exceptions.ProgrammingError(<EOL>"<STR_LIT>".format(self.__class__.__name__, "<STR_LIT>"))<EOL>
Deleter for **self.__components_informations_text** attribute.
f13118:c0:m39
def activate(self, engine):
LOGGER.debug("<STR_LIT>".format(self.__class__.__name__))<EOL>self.__ui_resources_directory = os.path.join(os.path.dirname(__file__), self.__ui_resources_directory)<EOL>self.__engine = engine<EOL>self.__settings = self.__engine.settings<EOL>self.activated = True<EOL>return True<EOL>
Activates the Component. :param engine: Engine to attach the Component to. :type engine: QObject :return: Method success. :rtype: bool
f13118:c0:m40
@foundations.exceptions.handle_exceptions(foundations.exceptions.ProgrammingError)<EOL><INDENT>def deactivate(self):<DEDENT>
raise foundations.exceptions.ProgrammingError(<EOL>"<STR_LIT>".format(self.__class__.__name__, self.__name))<EOL>
Deactivates the Component.
f13118:c0:m41
def initialize_ui(self):
LOGGER.debug("<STR_LIT>".format(self.__class__.__name__))<EOL>self.__model = ComponentsModel(self, horizontal_headers=self.__headers)<EOL>self.set_components()<EOL>self.Components_Manager_Ui_treeView.setParent(None)<EOL>self.Components_Manager_Ui_treeView = Components_QTreeView(self, self.__model)<EOL>self.Components_Manager_Ui_treeView.setObjectName("<STR_LIT>")<EOL>self.Components_Manager_Ui_gridLayout.setContentsMargins(self.__tree_view_inner_margins)<EOL>self.Components_Manager_Ui_gridLayout.addWidget(self.Components_Manager_Ui_treeView, <NUM_LIT:0>, <NUM_LIT:0>)<EOL>self.__view = self.Components_Manager_Ui_treeView<EOL>self.__view.setContextMenuPolicy(Qt.ActionsContextMenu)<EOL>self.__view_add_actions()<EOL>self.Components_Informations_textBrowser.setText(self.__components_informations_default_text)<EOL>self.Components_Manager_Ui_splitter.setSizes([<NUM_LIT>, <NUM_LIT:1>])<EOL>self.__view.selectionModel().selectionChanged.connect(self.__view_selectionModel__selectionChanged)<EOL>self.refresh_nodes.connect(self.__model__refresh_nodes)<EOL>self.initialized_ui = True<EOL>return True<EOL>
Initializes the Component ui. :return: Method success. :rtype: bool
f13118:c0:m42
@foundations.exceptions.handle_exceptions(foundations.exceptions.ProgrammingError)<EOL><INDENT>def uninitialize_ui(self):<DEDENT>
raise foundations.exceptions.ProgrammingError(<EOL>"<STR_LIT>".format(self.__class__.__name__, self.name))<EOL>
Uninitializes the Component ui.
f13118:c0:m43
def add_widget(self):
LOGGER.debug("<STR_LIT>".format(self.__class__.__name__))<EOL>self.__engine.addDockWidget(Qt.DockWidgetArea(self.__dock_area), self)<EOL>return True<EOL>
Adds the Component Widget to the engine. :return: Method success. :rtype: bool
f13118:c0:m44
@foundations.exceptions.handle_exceptions(foundations.exceptions.ProgrammingError)<EOL><INDENT>def remove_widget(self):<DEDENT>
raise foundations.exceptions.ProgrammingError(<EOL>"<STR_LIT>".format(self.__class__.__name__, self.name))<EOL>
Removes the Component Widget from the engine.
f13118:c0:m45
def on_startup(self):
LOGGER.debug("<STR_LIT>".format(self.__class__.__name__))<EOL>self.refresh_nodes.emit()<EOL>return True<EOL>
Defines the slot triggered by Framework startup. :return: Method success. :rtype: bool
f13118:c0:m46
def __model__refresh_nodes(self):
LOGGER.debug("<STR_LIT>".format("<STR_LIT>"))<EOL>self.set_components()<EOL>
Defines the slot triggered by the Model when nodes need refresh.
f13118:c0:m47
def __view_add_actions(self):
self.Components_Manager_Ui_treeView.addAction(self.__engine.actions_manager.register_action(<EOL>"<STR_LIT>",<EOL>slot=self.__view_activate_components_action__triggered))<EOL>self.Components_Manager_Ui_treeView.addAction(self.__engine.actions_manager.register_action(<EOL>"<STR_LIT>",<EOL>slot=self.__view_deactivate_components_action__triggered))<EOL>separator_action = QAction(self.Components_Manager_Ui_treeView)<EOL>separator_action.setSeparator(True)<EOL>self.Components_Manager_Ui_treeView.addAction(separator_action)<EOL>self.Components_Manager_Ui_treeView.addAction(self.__engine.actions_manager.register_action(<EOL>"<STR_LIT>",<EOL>slot=self.__view_reload_components_action__triggered))<EOL>separator_action = QAction(self.Components_Manager_Ui_treeView)<EOL>separator_action.setSeparator(True)<EOL>self.Components_Manager_Ui_treeView.addAction(separator_action)<EOL>
Sets the **Components_Manager_Ui_treeView** actions.
f13118:c0:m48
def __view_activate_components_action__triggered(self, checked):
return self.activate_components_ui()<EOL>
Defines the slot triggered by \*\*'Actions|Umbra|Components|factory.ComponentsManagerUi|Activate Component(s)'** action. :param checked: Action checked state. :type checked: bool :return: Method success. :rtype: bool
f13118:c0:m49
def __view_deactivate_components_action__triggered(self, checked):
return self.deactivate_components_ui()<EOL>
Defines the slot triggered by **'Actions|Umbra|Components|factory.ComponentsManagerUi|Deactivate Component(s)'** action. :param checked: Action checked state. :type checked: bool :return: Method success. :rtype: bool
f13118:c0:m50
def __view_reload_components_action__triggered(self, checked):
return self.reload_components_ui()<EOL>
Defines the slot triggered by \*\*'Actions|Umbra|Components|factory.ComponentsManagerUi|Reload Component(s)'** action. :param checked: Action checked state. :type checked: bool :return: Method success. :rtype: bool
f13118:c0:m51
def __view_selectionModel__selectionChanged(self, selected_items, deselected_items):
LOGGER.debug("<STR_LIT>".format("<STR_LIT>"))<EOL>selected_components = self.get_selected_components()<EOL>content = []<EOL>if selected_components:<EOL><INDENT>for item in selected_components:<EOL><INDENT>content.append(self.__components_informations_text.format(item.name,<EOL>item.category,<EOL>item.author,<EOL>item.email,<EOL>item.url,<EOL>item.description))<EOL><DEDENT><DEDENT>else:<EOL><INDENT>content.append(self.__components_informations_default_text)<EOL><DEDENT>separator = "<STR_LIT>" if len(content) == <NUM_LIT:1> else "<STR_LIT>"<EOL>self.Components_Informations_textBrowser.setText(separator.join(content))<EOL>
Sets the **Additional_Informations_textEdit** Widget. :param selected_items: Selected items. :type selected_items: QItemSelection :param deselected_items: Deselected items. :type deselected_items: QItemSelection
f13118:c0:m52
def __store_deactivated_components(self):
deactivated_components = []<EOL>for node in foundations.walkers.nodes_walker(self.__model.root_node):<EOL><INDENT>if node.family == "<STR_LIT>":<EOL><INDENT>node.component.interface.activated or deactivated_components.append(node.component.name)<EOL><DEDENT><DEDENT>LOGGER.debug("<STR_LIT>".format("<STR_LIT:U+002CU+0020>".join(deactivated_components)))<EOL>self.__settings.set_key("<STR_LIT>", "<STR_LIT>", "<STR_LIT:U+002C>".join(deactivated_components))<EOL>
Stores deactivated Components in settings file.
f13118:c0:m53
@foundations.exceptions.handle_exceptions(umbra.exceptions.notify_exception_handler,<EOL>manager.exceptions.ComponentActivationError)<EOL><INDENT>@umbra.engine.encapsulate_processing<EOL>def activate_components_ui(self):<DEDENT>
selected_components = self.get_selected_components()<EOL>self.__engine.start_processing("<STR_LIT>", len(selected_components))<EOL>activation_failed_components = []<EOL>for component in selected_components:<EOL><INDENT>if not component.interface.activated:<EOL><INDENT>success = self.activate_component(component.name) or False<EOL>if not success:<EOL><INDENT>activation_failed_components.append(component)<EOL><DEDENT><DEDENT>else:<EOL><INDENT>self.__engine.notifications_manager.warnify("<STR_LIT>".format(<EOL>self.__class__.__name__, component.name))<EOL><DEDENT>self.__engine.step_processing()<EOL><DEDENT>self.__engine.stop_processing()<EOL>self.__store_deactivated_components()<EOL>if not activation_failed_components:<EOL><INDENT>return True<EOL><DEDENT>else:<EOL><INDENT>raise manager.exceptions.ComponentActivationError(<EOL>"<STR_LIT>".format(self.__class__.__name__,<EOL>"<STR_LIT:U+002CU+0020>".join((<EOL>activation_failed_component.name<EOL>for activation_failed_component<EOL>in<EOL>activation_failed_components))))<EOL><DEDENT>
Activates user selected Components. :return: Method success. :rtype: bool :note: May require user interaction.
f13118:c0:m54
@foundations.exceptions.handle_exceptions(umbra.exceptions.notify_exception_handler,<EOL>manager.exceptions.ComponentDeactivationError)<EOL><INDENT>@umbra.engine.encapsulate_processing<EOL>def deactivate_components_ui(self):<DEDENT>
selected_components = self.get_selected_components()<EOL>self.__engine.start_processing("<STR_LIT>", len(selected_components))<EOL>deactivation_failed_components = []<EOL>for component in selected_components:<EOL><INDENT>if component.interface.activated:<EOL><INDENT>if component.interface.deactivatable:<EOL><INDENT>success = self.deactivate_component(component.name) or False<EOL>if not success:<EOL><INDENT>deactivation_failed_components.append(component)<EOL><DEDENT><DEDENT>else:<EOL><INDENT>self.__engine.notifications_manager.warnify(<EOL>"<STR_LIT>".format(self.__class__.__name__, component.name))<EOL><DEDENT><DEDENT>else:<EOL><INDENT>self.__engine.notifications_manager.warnify(<EOL>"<STR_LIT>".format(self.__class__.__name__, component.name))<EOL><DEDENT>self.__engine.step_processing()<EOL><DEDENT>self.__engine.stop_processing()<EOL>self.__store_deactivated_components()<EOL>if not deactivation_failed_components:<EOL><INDENT>return True<EOL><DEDENT>else:<EOL><INDENT>raise manager.exceptions.ComponentDeactivationError(<EOL>"<STR_LIT>".format(self.__class__.__name__,<EOL>"<STR_LIT:U+002CU+0020>".join((<EOL>deactivation_failed_component.name<EOL>for<EOL>deactivation_failed_component<EOL>in<EOL>deactivation_failed_components))))<EOL><DEDENT>
Deactivates user selected Components. :return: Method success. :rtype: bool :note: May require user interaction.
f13118:c0:m55
@foundations.exceptions.handle_exceptions(umbra.exceptions.notify_exception_handler,<EOL>manager.exceptions.ComponentReloadError)<EOL><INDENT>@umbra.engine.encapsulate_processing<EOL>def reload_components_ui(self):<DEDENT>
selected_components = self.get_selected_components()<EOL>self.__engine.start_processing("<STR_LIT>", len(selected_components))<EOL>reload_failed_components = []<EOL>for component in selected_components:<EOL><INDENT>if component.interface.deactivatable:<EOL><INDENT>success = self.reload_component(component.name) or False<EOL>if not success:<EOL><INDENT>reload_failed_components.append(component)<EOL><DEDENT><DEDENT>else:<EOL><INDENT>self.__engine.notifications_manager.warnify(<EOL>"<STR_LIT>".format(self.__class__.__name__,<EOL>component.name))<EOL><DEDENT>self.__engine.step_processing()<EOL><DEDENT>self.__engine.stop_processing()<EOL>if not reload_failed_components:<EOL><INDENT>return True<EOL><DEDENT>else:<EOL><INDENT>raise manager.exceptions.ComponentReloadError(<EOL>"<STR_LIT>".format(self.__class__.__name__,<EOL>"<STR_LIT:U+002CU+0020>".join(<EOL>(reload_failed_component.name<EOL>for reload_failed_component<EOL>in<EOL>reload_failed_components))))<EOL><DEDENT>
Reloads user selected Components. :return: Method success. :rtype: bool :note: May require user interaction.
f13118:c0:m56
@foundations.exceptions.handle_exceptions(manager.exceptions.ComponentExistsError, Exception)<EOL><INDENT>def activate_component(self, name):<DEDENT>
if not name in self.__engine.components_manager.components:<EOL><INDENT>raise manager.exceptions.ComponentExistsError(<EOL>"<STR_LIT>".format(self.__class__.__name__,<EOL>name))<EOL><DEDENT>component = self.__engine.components_manager.components[name]<EOL>if component.interface.activated:<EOL><INDENT>LOGGER.warning("<STR_LIT>".format(self.__class__.__name__, name))<EOL>return False<EOL><DEDENT>LOGGER.debug("<STR_LIT>".format(component.name))<EOL>component.interface.activate(self.__engine)<EOL>if component.category in ("<STR_LIT>", "<STR_LIT>"):<EOL><INDENT>component.interface.initialize()<EOL><DEDENT>elif component.category == "<STR_LIT>":<EOL><INDENT>component.interface.initialize_ui()<EOL>component.interface.add_widget()<EOL><DEDENT>LOGGER.info("<STR_LIT>".format(self.__class__.__name__, component.name))<EOL>self.activated_component.emit(name)<EOL>self.refresh_nodes.emit()<EOL>return True<EOL>
Activates given Component. :param name: Component name. :type name: unicode :return: Method success. :rtype: bool
f13118:c0:m57
@foundations.exceptions.handle_exceptions(manager.exceptions.ComponentExistsError,<EOL>manager.exceptions.ComponentDeactivationError)<EOL><INDENT>def deactivate_component(self, name):<DEDENT>
if not name in self.__engine.components_manager.components:<EOL><INDENT>raise manager.exceptions.ComponentExistsError(<EOL>"<STR_LIT>".format(self.__class__.__name__,<EOL>name))<EOL><DEDENT>component = self.__engine.components_manager.components[name]<EOL>if not component.interface.activated:<EOL><INDENT>LOGGER.warning("<STR_LIT>".format(self.__class__.__name__, name))<EOL>return False<EOL><DEDENT>LOGGER.debug("<STR_LIT>".format(component.name))<EOL>if component.interface.deactivatable:<EOL><INDENT>if component.category in ("<STR_LIT>", "<STR_LIT>"):<EOL><INDENT>component.interface.uninitialize()<EOL><DEDENT>elif component.category == "<STR_LIT>":<EOL><INDENT>component.interface.uninitialize_ui()<EOL>component.interface.remove_widget()<EOL><DEDENT>component.interface.deactivate()<EOL>LOGGER.info("<STR_LIT>".format(self.__class__.__name__, component.name))<EOL>self.deactivated_component.emit(name)<EOL>self.refresh_nodes.emit()<EOL>return True<EOL><DEDENT>else:<EOL><INDENT>raise manager.exceptions.ComponentDeactivationError(<EOL>"<STR_LIT>".format(self.__class__.__name__, component.name))<EOL><DEDENT>
Deactivates given Component. :param name: Component name. :type name: unicode :return: Method success. :rtype: bool
f13118:c0:m58
@foundations.exceptions.handle_exceptions(manager.exceptions.ComponentExistsError,<EOL>manager.exceptions.ComponentReloadError)<EOL><INDENT>def reload_component(self, name):<DEDENT>
if not name in self.__engine.components_manager.components:<EOL><INDENT>raise manager.exceptions.ComponentExistsError(<EOL>"<STR_LIT>".format(self.__class__.__name__,<EOL>name))<EOL><DEDENT>component = self.__engine.components_manager.components[name]<EOL>LOGGER.debug("<STR_LIT>".format(component.name))<EOL>if component.interface.deactivatable:<EOL><INDENT>dependents = list(reversed(self.__engine.components_manager.list_dependents(component.name)))<EOL>if filter(lambda x: not self.__engine.components_manager[x].deactivatable, dependents):<EOL><INDENT>LOGGER.warning(<EOL>"<STR_LIT>".format(<EOL>self.__class__.__name__, component.name))<EOL>return False<EOL><DEDENT>LOGGER.info("<STR_LIT>".format(self.__class__.__name__,<EOL>component.name,<EOL>"<STR_LIT:U+002CU+0020>".join(dependents)))<EOL>LOGGER.debug("<STR_LIT>".format(component.name))<EOL>dependents.append(component.name)<EOL>for dependent in dependents:<EOL><INDENT>if self.__engine.components_manager[dependent].activated:<EOL><INDENT>self.deactivate_component(dependent)<EOL><DEDENT>self.__engine.process_events()<EOL><DEDENT>LOGGER.debug("<STR_LIT>".format(component.name))<EOL>self.__engine.components_manager.reload_component(component.name)<EOL>LOGGER.debug("<STR_LIT>".format(component.name))<EOL>for dependent in reversed(dependents):<EOL><INDENT>if not self.__engine.components_manager[dependent].activated:<EOL><INDENT>self.activate_component(dependent)<EOL><DEDENT>self.__engine.process_events()<EOL><DEDENT>LOGGER.info("<STR_LIT>".format(self.__class__.__name__, component.name))<EOL>self.reloaded_component.emit(component.name)<EOL>return True<EOL><DEDENT>else:<EOL><INDENT>raise manager.exceptions.ComponentReloadError(<EOL>"<STR_LIT>".format(self.__class__.__name__,<EOL>component.name))<EOL><DEDENT>
Reloads given Component. :param name: Component name. :type name: unicode :return: Method success. :rtype: bool
f13118:c0:m59
def get_components(self):
return self.__engine.components_manager.components<EOL>
Returns the Components. :return: Components. :rtype: list
f13118:c0:m60
def list_components(self):
return self.__engine.components_manager.list_components()<EOL>
Lists the Components names. :return: Components names. :rtype: list
f13118:c0:m61
def set_components(self):
node_flags = attributes_flags = int(Qt.ItemIsSelectable | Qt.ItemIsEnabled)<EOL>root_node = umbra.ui.nodes.DefaultNode(name="<STR_LIT>")<EOL>paths = {}<EOL>for path in self.__engine.components_manager.paths:<EOL><INDENT>basename = os.path.basename(path)<EOL>if not paths.get(basename):<EOL><INDENT>paths[basename] = {}<EOL><DEDENT>paths[basename].update(dict((name, component)<EOL>for (name, component) in self.__engine.components_manager<EOL>if basename == os.path.basename(os.path.dirname(component.directory))))<EOL><DEDENT>for path, components in paths.iteritems():<EOL><INDENT>path_node = PathNode(name=path.title(),<EOL>parent=root_node,<EOL>node_flags=node_flags,<EOL>attributes_flags=attributes_flags)<EOL>for component in components.itervalues():<EOL><INDENT>if not component.interface:<EOL><INDENT>continue<EOL><DEDENT>component_node = ComponentNode(component,<EOL>name=component.title,<EOL>parent=path_node,<EOL>node_flags=node_flags,<EOL>attributes_flags=attributes_flags,<EOL>activated=umbra.ui.nodes.GraphModelAttribute(name="<STR_LIT>",<EOL>flags=attributes_flags,<EOL>roles={<EOL>Qt.DisplayRole: foundations.strings.to_string(<EOL>component.interface.activated),<EOL>Qt.DecorationRole: os.path.join(<EOL>self.__ui_resources_directory,<EOL>component.interface.activated and<EOL>self.__ui_activated_image or self.__ui_deactivated_image)}))<EOL>component_node.roles[Qt.DecorationRole] = os.path.join(self.__ui_resources_directory,<EOL>"<STR_LIT>".format(component.category,<EOL>self.__ui_category_affixe))<EOL><DEDENT><DEDENT>root_node.sort_children()<EOL>self.__model.initialize_model(root_node)<EOL>return True<EOL>
Sets the Components Model nodes.
f13118:c0:m62
def get_selected_nodes(self):
return self.__view.get_selected_nodes()<EOL>
Returns the View selected nodes. :return: View selected nodes. :rtype: dict
f13118:c0:m63
def get_selected_components_nodes(self):
return [node for node in self.get_selected_nodes() if node.family == "<STR_LIT>"]<EOL>
Returns the View selected Components nodes. :return: View selected Components nodes. :rtype: list
f13118:c0:m64
def get_selected_components(self):
return [node.component for node in self.get_selected_components_nodes()]<EOL>
Returns the View selected Components. :return: View selected Components. :rtype: list
f13118:c0:m65
def __init__(self, parent, model=None, read_only=False, message=None):
LOGGER.debug("<STR_LIT>".format(self.__class__.__name__))<EOL>umbra.ui.views.Abstract_QTreeView.__init__(self, parent, read_only, message)<EOL>self.__container = parent<EOL>self.__tree_view_indentation = <NUM_LIT:15><EOL>self.setModel(model)<EOL>Components_QTreeView.__initialize_ui(self)<EOL>
Initializes the class. :param parent: Object parent. :type parent: QObject :param model: Model. :type model: QObject :param read_only: View is read only. :type read_only: bool :param message: View default message when Model is empty. :type message: unicode
f13119:c0:m0
@property<EOL><INDENT>def container(self):<DEDENT>
return self.__container<EOL>
Property for **self.__container** attribute. :return: self.__container. :rtype: QObject
f13119:c0:m1
@container.setter<EOL><INDENT>@foundations.exceptions.handle_exceptions(foundations.exceptions.ProgrammingError)<EOL>def container(self, value):<DEDENT>
raise foundations.exceptions.ProgrammingError(<EOL>"<STR_LIT>".format(self.__class__.__name__, "<STR_LIT>"))<EOL>
Setter for **self.__container** attribute. :param value: Attribute value. :type value: QObject
f13119:c0:m2
@container.deleter<EOL><INDENT>@foundations.exceptions.handle_exceptions(foundations.exceptions.ProgrammingError)<EOL>def container(self):<DEDENT>
raise foundations.exceptions.ProgrammingError(<EOL>"<STR_LIT>".format(self.__class__.__name__, "<STR_LIT>"))<EOL>
Deleter for **self.__container** attribute.
f13119:c0:m3
@property<EOL><INDENT>def tree_view_indentation(self):<DEDENT>
return self.__tree_view_indentation<EOL>
Property for **self.__tree_view_indentation** attribute. :return: self.__tree_view_indentation. :rtype: int
f13119:c0:m4
@tree_view_indentation.setter<EOL><INDENT>@foundations.exceptions.handle_exceptions(foundations.exceptions.ProgrammingError)<EOL>def tree_view_indentation(self, value):<DEDENT>
raise foundations.exceptions.ProgrammingError(<EOL>"<STR_LIT>".format(self.__class__.__name__, "<STR_LIT>"))<EOL>
Setter for **self.__tree_view_indentation** attribute. :param value: Attribute value. :type value: int
f13119:c0:m5
@tree_view_indentation.deleter<EOL><INDENT>@foundations.exceptions.handle_exceptions(foundations.exceptions.ProgrammingError)<EOL>def tree_view_indentation(self):<DEDENT>
raise foundations.exceptions.ProgrammingError(<EOL>"<STR_LIT>".format(self.__class__.__name__, "<STR_LIT>"))<EOL>
Deleter for **self.__tree_view_indentation** attribute.
f13119:c0:m6
def setModel(self, model):
if not model:<EOL><INDENT>return<EOL><DEDENT>LOGGER.debug("<STR_LIT>".format(model))<EOL>umbra.ui.views.Abstract_QTreeView.setModel(self, model)<EOL>self.model().modelAboutToBeReset.connect(self.__model__modelAboutToBeReset)<EOL>self.model().modelReset.connect(self.__model__modelReset)<EOL>
Reimplements the **umbra.ui.views.Abstract_QTreeView.setModel** method. :param model: Model to set. :type model: QObject
f13119:c0:m7
def __model__modelAboutToBeReset(self):
pass<EOL>
Defines the slot triggered by the Model when about to be reset.
f13119:c0:m8
def __model__modelReset(self):
pass<EOL>
Defines the slot triggered by the Model when reset.
f13119:c0:m9
def __initialize_ui(self):
self.setAutoScroll(False)<EOL>self.setDragDropMode(QAbstractItemView.NoDragDrop)<EOL>self.setEditTriggers(QAbstractItemView.NoEditTriggers)<EOL>self.setIndentation(self.__tree_view_indentation)<EOL>self.setSelectionMode(QAbstractItemView.ExtendedSelection)<EOL>self.setSortingEnabled(True)<EOL>self.sortByColumn(<NUM_LIT:0>, Qt.AscendingOrder)<EOL>self.__set_default_ui_state()<EOL>self.model().modelReset.connect(self.__set_default_ui_state)<EOL>
Initializes the Widget ui.
f13119:c0:m10
def __set_default_ui_state(self):
LOGGER.debug("<STR_LIT>")<EOL>if not self.model():<EOL><INDENT>return<EOL><DEDENT>self.expandAll()<EOL>for column in range(len(self.model().horizontal_headers)):<EOL><INDENT>self.resizeColumnToContents(column)<EOL><DEDENT>
Sets the Widget default ui state.
f13119:c0:m11
def __init__(self, parent=None, root_node=None, horizontal_headers=None, vertical_headers=None):
LOGGER.debug("<STR_LIT>".format(self.__class__.__name__))<EOL>umbra.ui.models.GraphModel.__init__(self, parent, root_node, horizontal_headers, vertical_headers)<EOL>
Initializes the class. :param parent: Object parent. :type parent: QObject :param root_node: Root node. :type root_node: AbstractCompositeNode :param horizontal_headers: Headers. :type horizontal_headers: OrderedDict :param vertical_headers: Headers. :type vertical_headers: OrderedDict
f13120:c0:m0
def initialize_model(self, root_node):
LOGGER.debug("<STR_LIT>".format(root_node))<EOL>self.beginResetModel()<EOL>self.root_node = root_node<EOL>self.enable_model_triggers(True)<EOL>self.endResetModel()<EOL>return True<EOL>
Initializes the Model using given root node. :param root_node: Graph root node. :type root_node: DefaultNode :return: Method success :rtype: bool
f13120:c0:m1
def __init__(self,<EOL>editor=None,<EOL>name=None,<EOL>parent=None,<EOL>children=None,<EOL>roles=None,<EOL>node_flags=int(Qt.ItemIsSelectable | Qt.ItemIsEnabled),<EOL>attributes_flags=int(Qt.ItemIsSelectable | Qt.ItemIsEnabled),<EOL>**kwargs):
LOGGER.debug("<STR_LIT>".format(self.__class__.__name__))<EOL>umbra.ui.nodes.GraphModelNode.__init__(self, name, parent, children, roles, node_flags, **kwargs)<EOL>self.__editor = None<EOL>self.editor = editor<EOL>EditorNode.__initialize_node(self, attributes_flags)<EOL>
Initializes the class. :param name: Node name. :type name: unicode :param parent: Node parent. :type parent: GraphModelNode :param children: Children. :type children: list :param roles: Roles. :type roles: dict :param node_flags: Node flags. :type node_flags: int :param attributes_flags: Attributes flags. :type attributes_flags: int :param \*\*kwargs: Keywords arguments. :type \*\*kwargs: \*\*
f13121:c0:m0
@property<EOL><INDENT>def editor(self):<DEDENT>
return self.__editor<EOL>
Property for **self.__editor** attribute. :return: self.__editor. :rtype: Editor
f13121:c0:m1
@editor.setter<EOL><INDENT>@foundations.exceptions.handle_exceptions(AssertionError)<EOL>def editor(self, value):<DEDENT>
if value is not None:<EOL><INDENT>assert type(value) is Editor, "<STR_LIT>".format("<STR_LIT>", value)<EOL><DEDENT>self.__editor = value<EOL>
Setter for **self.__editor** attribute. :param value: Attribute value. :type value: Editor
f13121:c0:m2
@editor.deleter<EOL><INDENT>@foundations.exceptions.handle_exceptions(foundations.exceptions.ProgrammingError)<EOL>def editor(self):<DEDENT>
raise foundations.exceptions.ProgrammingError(<EOL>"<STR_LIT>".format(self.__class__.__name__, "<STR_LIT>"))<EOL>
Deleter for **self.__editor** attribute.
f13121:c0:m3
def __initialize_node(self, attributes_flags=int(Qt.ItemIsSelectable | Qt.ItemIsEnabled)):
pass<EOL>
Initializes the node. :param attributes_flags: Attributes flags. :type attributes_flags: int
f13121:c0:m4
def __init__(self,<EOL>path=None,<EOL>name=None,<EOL>parent=None,<EOL>roles=None,<EOL>node_flags=int(Qt.ItemIsSelectable | Qt.ItemIsEnabled),<EOL>attributes_flags=int(Qt.ItemIsSelectable | Qt.ItemIsEnabled),<EOL>**kwargs):
LOGGER.debug("<STR_LIT>".format(self.__class__.__name__))<EOL>umbra.ui.nodes.GraphModelNode.__init__(self, name, parent, None, roles, node_flags, **kwargs)<EOL>self.__path = None<EOL>self.path = path<EOL>FileNode.__initialize_node(self, attributes_flags)<EOL>
Initializes the class. :param path: File path. :type path: unicode :param name: Node name. :type name: unicode :param parent: Node parent. :type parent: GraphModelNode :param roles: Roles. :type roles: dict :param node_flags: Node flags. :type node_flags: int :param attributes_flags: Attributes flags. :type attributes_flags: int :param \*\*kwargs: Keywords arguments. :type \*\*kwargs: \*\*
f13121:c1:m0
@property<EOL><INDENT>def path(self):<DEDENT>
return self.__path<EOL>
Property for **self.__path** attribute. :return: self.__path. :rtype: unicode
f13121:c1:m1
@path.setter<EOL><INDENT>@foundations.exceptions.handle_exceptions(AssertionError)<EOL>def path(self, value):<DEDENT>
if value is not None:<EOL><INDENT>assert type(value) is unicode, "<STR_LIT>".format("<STR_LIT:path>", value)<EOL><DEDENT>self.__path = value<EOL>
Setter for **self.__path** attribute. :param value: Attribute value. :type value: unicode
f13121:c1:m2
@path.deleter<EOL><INDENT>@foundations.exceptions.handle_exceptions(foundations.exceptions.ProgrammingError)<EOL>def path(self):<DEDENT>
raise foundations.exceptions.ProgrammingError(<EOL>"<STR_LIT>".format(self.__class__.__name__, "<STR_LIT:path>"))<EOL>
Deleter for **self.__path** attribute.
f13121:c1:m3
def __initialize_node(self, attributes_flags=int(Qt.ItemIsSelectable | Qt.ItemIsEnabled)):
pass<EOL>
Initializes the node. :param attributes_flags: Attributes flags. :type attributes_flags: int
f13121:c1:m4
def __init__(self,<EOL>path=None,<EOL>name=None,<EOL>parent=None,<EOL>children=None,<EOL>roles=None,<EOL>node_flags=int(Qt.ItemIsSelectable | Qt.ItemIsEnabled),<EOL>attributes_flags=int(Qt.ItemIsSelectable | Qt.ItemIsEnabled),<EOL>**kwargs):
LOGGER.debug("<STR_LIT>".format(self.__class__.__name__))<EOL>umbra.ui.nodes.GraphModelNode.__init__(self, name, parent, children, roles, node_flags, **kwargs)<EOL>self.__path = None<EOL>self.path = path<EOL>DirectoryNode.__initialize_node(self, attributes_flags)<EOL>
Initializes the class. :param path: Directory path. :type path: unicode :param name: Node name. :type name: unicode :param parent: Node parent. :type parent: GraphModelNode :param children: Children. :type children: list :param roles: Roles. :type roles: dict :param node_flags: Node flags. :type node_flags: int :param attributes_flags: Attributes flags. :type attributes_flags: int :param \*\*kwargs: Keywords arguments. :type \*\*kwargs: \*\*
f13121:c2:m0
@property<EOL><INDENT>def path(self):<DEDENT>
return self.__path<EOL>
Property for **self.__path** attribute. :return: self.__path. :rtype: unicode
f13121:c2:m1
@path.setter<EOL><INDENT>@foundations.exceptions.handle_exceptions(AssertionError)<EOL>def path(self, value):<DEDENT>
if value is not None:<EOL><INDENT>assert type(value) is unicode, "<STR_LIT>".format("<STR_LIT:path>", value)<EOL>assert os.path.exists(value), "<STR_LIT>".format("<STR_LIT:source>", value)<EOL><DEDENT>self.__path = value<EOL>
Setter for **self.__path** attribute. :param value: Attribute value. :type value: unicode
f13121:c2:m2
@path.deleter<EOL><INDENT>@foundations.exceptions.handle_exceptions(foundations.exceptions.ProgrammingError)<EOL>def path(self):<DEDENT>
raise foundations.exceptions.ProgrammingError(<EOL>"<STR_LIT>".format(self.__class__.__name__, "<STR_LIT:path>"))<EOL>
Deleter for **self.__path** attribute.
f13121:c2:m3
def __initialize_node(self, attributes_flags=int(Qt.ItemIsSelectable | Qt.ItemIsEnabled)):
pass<EOL>
Initializes the node. :param attributes_flags: Attributes flags. :type attributes_flags: int
f13121:c2:m4
def __init__(self,<EOL>path=None,<EOL>name=None,<EOL>parent=None,<EOL>children=None,<EOL>roles=None,<EOL>node_flags=int(Qt.ItemIsSelectable | Qt.ItemIsEnabled),<EOL>attributes_flags=int(Qt.ItemIsSelectable | Qt.ItemIsEnabled),<EOL>**kwargs):
LOGGER.debug("<STR_LIT>".format(self.__class__.__name__))<EOL>umbra.ui.nodes.GraphModelNode.__init__(self, name, parent, children, roles, node_flags, **kwargs)<EOL>self.__path = None<EOL>self.path = path<EOL>ProjectNode.__initialize_node(self, attributes_flags)<EOL>
Initializes the class. :param path: Project path. :type path: unicode :param name: Node name. :type name: unicode :param parent: Node parent. :type parent: GraphModelNode :param children: Children. :type children: list :param roles: Roles. :type roles: dict :param node_flags: Node flags. :type node_flags: int :param attributes_flags: Attributes flags. :type attributes_flags: int :param \*\*kwargs: Keywords arguments. :type \*\*kwargs: \*\*
f13121:c3:m0
@property<EOL><INDENT>def path(self):<DEDENT>
return self.__path<EOL>
Property for **self.__path** attribute. :return: self.__path. :rtype: unicode
f13121:c3:m1
@path.setter<EOL><INDENT>@foundations.exceptions.handle_exceptions(AssertionError)<EOL>def path(self, value):<DEDENT>
if value is not None:<EOL><INDENT>assert type(value) is unicode, "<STR_LIT>".format("<STR_LIT:path>", value)<EOL>assert os.path.exists(value), "<STR_LIT>".format("<STR_LIT:source>", value)<EOL><DEDENT>self.__path = value<EOL>
Setter for **self.__path** attribute. :param value: Attribute value. :type value: unicode
f13121:c3:m2
@path.deleter<EOL><INDENT>@foundations.exceptions.handle_exceptions(foundations.exceptions.ProgrammingError)<EOL>def path(self):<DEDENT>
raise foundations.exceptions.ProgrammingError(<EOL>"<STR_LIT>".format(self.__class__.__name__, "<STR_LIT:path>"))<EOL>
Deleter for **self.__path** attribute.
f13121:c3:m3
def __initialize_node(self, attributes_flags=int(Qt.ItemIsSelectable | Qt.ItemIsEnabled)):
pass<EOL>
Initializes the node. :param attributes_flags: Attributes flags. :type attributes_flags: int
f13121:c3:m4
def __init__(self,<EOL>name=None,<EOL>parent=None,<EOL>children=None,<EOL>roles=None,<EOL>node_flags=int(Qt.ItemIsSelectable | Qt.ItemIsEnabled),<EOL>attributes_flags=int(Qt.ItemIsSelectable | Qt.ItemIsEnabled),<EOL>**kwargs):
LOGGER.debug("<STR_LIT>".format(self.__class__.__name__))<EOL>umbra.ui.nodes.GraphModelNode.__init__(self, name, parent, children, roles, node_flags, **kwargs)<EOL>PatternNode.__initialize_node(self, attributes_flags)<EOL>
Initializes the class. :param name: Node name. :type name: unicode :param parent: Node parent. :type parent: GraphModelNode :param children: Children. :type children: list :param roles: Roles. :type roles: dict :param node_flags: Node flags. :type node_flags: int :param attributes_flags: Attributes flags. :type attributes_flags: int :param \*\*kwargs: Keywords arguments. :type \*\*kwargs: \*\*
f13121:c4:m0
def __initialize_node(self, attributes_flags=int(Qt.ItemIsSelectable | Qt.ItemIsEnabled)):
pass<EOL>
Initializes the node. :param attributes_flags: Attributes flags. :type attributes_flags: int
f13121:c4:m1
def __init__(self,<EOL>name=None,<EOL>parent=None,<EOL>children=None,<EOL>roles=None,<EOL>node_flags=int(Qt.ItemIsSelectable | Qt.ItemIsEnabled),<EOL>attributes_flags=int(Qt.ItemIsSelectable | Qt.ItemIsEnabled),<EOL>**kwargs):
LOGGER.debug("<STR_LIT>".format(self.__class__.__name__))<EOL>umbra.ui.nodes.GraphModelNode.__init__(self, name, parent, children, roles, node_flags, **kwargs)<EOL>SearchFileNode.__initialize_node(self, attributes_flags)<EOL>
Initializes the class. :param name: Node name. :type name: unicode :param parent: Node parent. :type parent: GraphModelNode :param children: Children. :type children: list :param roles: Roles. :type roles: dict :param node_flags: Node flags. :type node_flags: int :param attributes_flags: Attributes flags. :type attributes_flags: int :param \*\*kwargs: Keywords arguments. :type \*\*kwargs: \*\*
f13121:c5:m0
def __initialize_node(self, attributes_flags=int(Qt.ItemIsSelectable | Qt.ItemIsEnabled)):
pass<EOL>
Initializes the node. :param attributes_flags: Attributes flags. :type attributes_flags: int
f13121:c5:m1
def __init__(self,<EOL>name=None,<EOL>parent=None,<EOL>children=None,<EOL>roles=None,<EOL>node_flags=int(Qt.ItemIsSelectable | Qt.ItemIsEnabled),<EOL>attributes_flags=int(Qt.ItemIsSelectable | Qt.ItemIsEnabled),<EOL>**kwargs):
LOGGER.debug("<STR_LIT>".format(self.__class__.__name__))<EOL>umbra.ui.nodes.GraphModelNode.__init__(self, name, parent, children, roles, node_flags, **kwargs)<EOL>SearchOccurenceNode.__initialize_node(self, attributes_flags)<EOL>
Initializes the class. :param name: Node name. :type name: unicode :param parent: Node parent. :type parent: GraphModelNode :param children: Children. :type children: list :param roles: Roles. :type roles: dict :param node_flags: Node flags. :type node_flags: int :param attributes_flags: Attributes flags. :type attributes_flags: int :param \*\*kwargs: Keywords arguments. :type \*\*kwargs: \*\*
f13121:c6:m0
def __initialize_node(self, attributes_flags=int(Qt.ItemIsSelectable | Qt.ItemIsEnabled)):
pass<EOL>
Initializes the node. :param attributes_flags: Attributes flags. :type attributes_flags: int
f13121:c6:m1
def __init__(self,<EOL>name=None,<EOL>parent=None,<EOL>children=None,<EOL>roles=None,<EOL>node_flags=int(Qt.ItemIsSelectable | Qt.ItemIsEnabled),<EOL>attributes_flags=int(Qt.ItemIsSelectable | Qt.ItemIsEnabled),<EOL>**kwargs):
LOGGER.debug("<STR_LIT>".format(self.__class__.__name__))<EOL>umbra.ui.nodes.GraphModelNode.__init__(self, name, parent, children, roles, node_flags, **kwargs)<EOL>ReplaceResultNode.__initialize_node(self, attributes_flags)<EOL>
Initializes the class. :param name: Node name. :type name: unicode :param parent: Node parent. :type parent: GraphModelNode :param children: Children. :type children: list :param roles: Roles. :type roles: dict :param node_flags: Node flags. :type node_flags: int :param attributes_flags: Attributes flags. :type attributes_flags: int :param \*\*kwargs: Keywords arguments. :type \*\*kwargs: \*\*
f13121:c7:m0
def __initialize_node(self, attributes_flags=int(Qt.ItemIsSelectable | Qt.ItemIsEnabled)):
pass<EOL>
Initializes the node. :param attributes_flags: Attributes flags. :type attributes_flags: int
f13121:c7:m1
def __init__(self, **kwargs):
LOGGER.debug("<STR_LIT>".format(self.__class__.__name__))<EOL>foundations.data_structures.Structure.__init__(self, **kwargs)<EOL>
Initializes the class. :param \*\*kwargs: line, column, length, text. :type \*\*kwargs: dict
f13122:c0:m0
def __init__(self, **kwargs):
LOGGER.debug("<STR_LIT>".format(self.__class__.__name__))<EOL>foundations.data_structures.Structure.__init__(self, **kwargs)<EOL>
Initializes the class. :param \*\*kwargs: file, pattern, settings, occurrences. :type \*\*kwargs: dict
f13122:c1:m0
def __init__(self, **kwargs):
LOGGER.debug("<STR_LIT>".format(self.__class__.__name__))<EOL>foundations.data_structures.Structure.__init__(self, **kwargs)<EOL>
Initializes the class. :param \*\*kwargs: content, document. :type \*\*kwargs: dict
f13122:c2:m0
def __init__(self, parent, pattern=None, location=None, settings=None):
LOGGER.debug("<STR_LIT>".format(self.__class__.__name__))<EOL>QThread.__init__(self, parent)<EOL>self.__container = parent<EOL>self.__pattern = None<EOL>self.pattern = pattern<EOL>self.__location = None<EOL>self.location = location<EOL>self.__settings = None<EOL>self.settings = settings<EOL>self.__search_results = None<EOL>self.__interrupt = False<EOL>self.__lock = QMutex()<EOL>
Initializes the class. :param parent: Object parent. :type parent: QObject
f13122:c3:m0
@property<EOL><INDENT>def container(self):<DEDENT>
return self.__container<EOL>
Property for **self.__container** attribute. :return: self.__container. :rtype: QObject
f13122:c3:m1
@container.setter<EOL><INDENT>@foundations.exceptions.handle_exceptions(foundations.exceptions.ProgrammingError)<EOL>def container(self, value):<DEDENT>
raise foundations.exceptions.ProgrammingError(<EOL>"<STR_LIT>".format(self.__class__.__name__, "<STR_LIT>"))<EOL>
Setter for **self.__container** attribute. :param value: Attribute value. :type value: QObject
f13122:c3:m2
@container.deleter<EOL><INDENT>@foundations.exceptions.handle_exceptions(foundations.exceptions.ProgrammingError)<EOL>def container(self):<DEDENT>
raise foundations.exceptions.ProgrammingError(<EOL>"<STR_LIT>".format(self.__class__.__name__, "<STR_LIT>"))<EOL>
Deleter for **self.__container** attribute.
f13122:c3:m3
@property<EOL><INDENT>def pattern(self):<DEDENT>
return self.__pattern<EOL>
Property for **self.__pattern** attribute. :return: self.__pattern. :rtype: unicode
f13122:c3:m4
@pattern.setter<EOL><INDENT>@foundations.exceptions.handle_exceptions(AssertionError)<EOL>def pattern(self, value):<DEDENT>
if value is not None:<EOL><INDENT>assert type(value) in (unicode, QString),"<STR_LIT>".format("<STR_LIT>", value)<EOL><DEDENT>self.__pattern = value<EOL>
Setter for **self.__pattern** attribute. :param value: Attribute value. :type value: unicode
f13122:c3:m5
@pattern.deleter<EOL><INDENT>@foundations.exceptions.handle_exceptions(foundations.exceptions.ProgrammingError)<EOL>def pattern(self):<DEDENT>
raise foundations.exceptions.ProgrammingError(<EOL>"<STR_LIT>".format(self.__class__.__name__, "<STR_LIT>"))<EOL>
Deleter for **self.__pattern** attribute.
f13122:c3:m6
@property<EOL><INDENT>def location(self):<DEDENT>
return self.__location<EOL>
Property for **self.__location** attribute. :return: self.__location. :rtype: Location
f13122:c3:m7