signature stringlengths 8 3.44k | body stringlengths 0 1.41M | docstring stringlengths 1 122k | id stringlengths 5 17 |
|---|---|---|---|
@filters_in_format.deleter<EOL><INDENT>@foundations.exceptions.handle_exceptions(foundations.exceptions.ProgrammingError)<EOL>def filters_in_format(self):<DEDENT> | raise foundations.exceptions.ProgrammingError(<EOL>"<STR_LIT>".format(self.__class__.__name__, "<STR_LIT>"))<EOL> | Deleter for **self.__filters_in_format** attribute. | f13126:c0:m36 |
@property<EOL><INDENT>def default_filter_out(self):<DEDENT> | return self.__default_filter_out<EOL> | Property for **self.__default_filter_out** attribute.
:return: self.__default_filter_out.
:rtype: unicode | f13126:c0:m37 |
@default_filter_out.setter<EOL><INDENT>@foundations.exceptions.handle_exceptions(AssertionError)<EOL>def default_filter_out(self, value):<DEDENT> | if value is not None:<EOL><INDENT>assert type(value) is unicode, "<STR_LIT>".format(<EOL>"<STR_LIT>", value)<EOL>assert os.path.exists(value), "<STR_LIT>".format(<EOL>"<STR_LIT>", value)<EOL><DEDENT>self.__default_filter_out = value<EOL> | Setter for **self.__default_filter_out** attribute.
:param value: Attribute value.
:type value: unicode | f13126:c0:m38 |
@default_filter_out.deleter<EOL><INDENT>@foundations.exceptions.handle_exceptions(foundations.exceptions.ProgrammingError)<EOL>def default_filter_out(self):<DEDENT> | raise foundations.exceptions.ProgrammingError(<EOL>"<STR_LIT>".format(self.__class__.__name__, "<STR_LIT>"))<EOL> | Deleter for **self.__default_filter_out** attribute. | f13126:c0:m39 |
@property<EOL><INDENT>def filters_out_format(self):<DEDENT> | return self.__filters_out_format<EOL> | Property for **self.__filters_out_format** attribute.
:return: self.__filters_out_format.
:rtype: unicode | f13126:c0:m40 |
@filters_out_format.setter<EOL><INDENT>@foundations.exceptions.handle_exceptions(AssertionError)<EOL>def filters_out_format(self, value):<DEDENT> | if value is not None:<EOL><INDENT>assert type(value) is unicode, "<STR_LIT>".format(<EOL>"<STR_LIT>", value)<EOL>assert os.path.exists(value), "<STR_LIT>".format(<EOL>"<STR_LIT>", value)<EOL><DEDENT>self.__filters_out_format = value<EOL> | Setter for **self.__filters_out_format** attribute.
:param value: Attribute value.
:type value: unicode | f13126:c0:m41 |
@filters_out_format.deleter<EOL><INDENT>@foundations.exceptions.handle_exceptions(foundations.exceptions.ProgrammingError)<EOL>def filters_out_format(self):<DEDENT> | raise foundations.exceptions.ProgrammingError(<EOL>"<STR_LIT>".format(self.__class__.__name__, "<STR_LIT>"))<EOL> | Deleter for **self.__filters_out_format** attribute. | f13126:c0:m42 |
@property<EOL><INDENT>def default_target(self):<DEDENT> | return self.__default_target<EOL> | Property for **self.__default_target** attribute.
:return: self.__default_target.
:rtype: unicode | f13126:c0:m43 |
@default_target.setter<EOL><INDENT>@foundations.exceptions.handle_exceptions(AssertionError)<EOL>def default_target(self, value):<DEDENT> | if value is not None:<EOL><INDENT>assert type(value) is unicode, "<STR_LIT>".format(<EOL>"<STR_LIT>", value)<EOL>assert os.path.exists(value), "<STR_LIT>".format("<STR_LIT>", value)<EOL><DEDENT>self.__default_target = value<EOL> | Setter for **self.__default_target** attribute.
:param value: Attribute value.
:type value: unicode | f13126:c0:m44 |
@default_target.deleter<EOL><INDENT>@foundations.exceptions.handle_exceptions(foundations.exceptions.ProgrammingError)<EOL>def default_target(self):<DEDENT> | raise foundations.exceptions.ProgrammingError(<EOL>"<STR_LIT>".format(self.__class__.__name__, "<STR_LIT>"))<EOL> | Deleter for **self.__default_target** attribute. | f13126:c0:m45 |
@property<EOL><INDENT>def targets_format(self):<DEDENT> | return self.__targets_format<EOL> | Property for **self.__targets_format** attribute.
:return: self.__targets_format.
:rtype: unicode | f13126:c0:m46 |
@targets_format.setter<EOL><INDENT>@foundations.exceptions.handle_exceptions(AssertionError)<EOL>def targets_format(self, value):<DEDENT> | if value is not None:<EOL><INDENT>assert type(value) is unicode, "<STR_LIT>".format(<EOL>"<STR_LIT>", value)<EOL>assert os.path.exists(value), "<STR_LIT>".format("<STR_LIT>", value)<EOL><DEDENT>self.__targets_format = value<EOL> | Setter for **self.__targets_format** attribute.
:param value: Attribute value.
:type value: unicode | f13126:c0:m47 |
@targets_format.deleter<EOL><INDENT>@foundations.exceptions.handle_exceptions(foundations.exceptions.ProgrammingError)<EOL>def targets_format(self):<DEDENT> | raise foundations.exceptions.ProgrammingError(<EOL>"<STR_LIT>".format(self.__class__.__name__, "<STR_LIT>"))<EOL> | Deleter for **self.__targets_format** attribute. | f13126:c0:m48 |
@property<EOL><INDENT>def default_line_number_width(self):<DEDENT> | return self.__default_line_number_width<EOL> | Property for **self.__default_line_number_width** attribute.
:return: self.__default_line_number_width.
:rtype: int | f13126:c0:m49 |
@default_line_number_width.setter<EOL><INDENT>@foundations.exceptions.handle_exceptions(AssertionError)<EOL>def default_line_number_width(self, value):<DEDENT> | if value is not None:<EOL><INDENT>assert type(value) is int, "<STR_LIT>".format(<EOL>"<STR_LIT>", value)<EOL>assert value > <NUM_LIT:0>, "<STR_LIT>".format(<EOL>"<STR_LIT>", value)<EOL><DEDENT>self.__default_line_number_width = value<EOL> | Setter for **self.__default_line_number_width** attribute.
:param value: Attribute value.
:type value: int | f13126:c0:m50 |
@default_line_number_width.deleter<EOL><INDENT>@foundations.exceptions.handle_exceptions(foundations.exceptions.ProgrammingError)<EOL>def default_line_number_width(self):<DEDENT> | raise foundations.exceptions.ProgrammingError(<EOL>"<STR_LIT>".format(self.__class__.__name__, "<STR_LIT>"))<EOL> | Deleter for **self.__default_line_number_width** attribute. | f13126:c0:m51 |
@property<EOL><INDENT>def default_line_color(self):<DEDENT> | return self.__default_line_color<EOL> | Property for **self.__default_line_color** attribute.
:return: self.__default_line_color.
:rtype: QColor | f13126:c0:m52 |
@default_line_color.setter<EOL><INDENT>@foundations.exceptions.handle_exceptions(AssertionError)<EOL>def default_line_color(self, value):<DEDENT> | if value is not None:<EOL><INDENT>assert type(value) is QColor, "<STR_LIT>".format(<EOL>"<STR_LIT>", value)<EOL><DEDENT>self.__default_line_color = value<EOL> | Setter for **self.__default_line_color** attribute.
:param value: Attribute value.
:type value: QColor | f13126:c0:m53 |
@default_line_color.deleter<EOL><INDENT>@foundations.exceptions.handle_exceptions(foundations.exceptions.ProgrammingError)<EOL>def default_line_color(self):<DEDENT> | raise foundations.exceptions.ProgrammingError(<EOL>"<STR_LIT>".format(self.__class__.__name__, "<STR_LIT>"))<EOL> | Deleter for **self.__default_line_color** attribute. | f13126:c0:m54 |
@property<EOL><INDENT>def ignore_hidden_files(self):<DEDENT> | return self.__ignore_hidden_files<EOL> | Property for **self.__ignore_hidden_files** attribute.
:return: self.__ignore_hidden_files.
:rtype: bool | f13126:c0:m55 |
@ignore_hidden_files.setter<EOL><INDENT>@foundations.exceptions.handle_exceptions(foundations.exceptions.ProgrammingError)<EOL>def ignore_hidden_files(self, value):<DEDENT> | raise foundations.exceptions.ProgrammingError(<EOL>"<STR_LIT>".format(self.__class__.__name__, "<STR_LIT>"))<EOL> | Setter for **self.__ignore_hidden_files** attribute.
:param value: Attribute value.
:type value: bool | f13126:c0:m56 |
@ignore_hidden_files.deleter<EOL><INDENT>@foundations.exceptions.handle_exceptions(foundations.exceptions.ProgrammingError)<EOL>def ignore_hidden_files(self):<DEDENT> | raise foundations.exceptions.ProgrammingError(<EOL>"<STR_LIT>".format(self.__class__.__name__, "<STR_LIT>"))<EOL> | Deleter for **self.__ignore_hidden_files** attribute. | f13126:c0:m57 |
@property<EOL><INDENT>def search_worker_thread(self):<DEDENT> | return self.__search_worker_thread<EOL> | Property for **self.__search_worker_thread** attribute.
:return: self.__search_worker_thread.
:rtype: QThread | f13126:c0:m58 |
@search_worker_thread.setter<EOL><INDENT>@foundations.exceptions.handle_exceptions(foundations.exceptions.ProgrammingError)<EOL>def search_worker_thread(self, value):<DEDENT> | raise foundations.exceptions.ProgrammingError(<EOL>"<STR_LIT>".format(self.__class__.__name__, "<STR_LIT>"))<EOL> | Setter for **self.__search_worker_thread** attribute.
:param value: Attribute value.
:type value: QThread | f13126:c0:m59 |
@search_worker_thread.deleter<EOL><INDENT>@foundations.exceptions.handle_exceptions(foundations.exceptions.ProgrammingError)<EOL>def search_worker_thread(self):<DEDENT> | raise foundations.exceptions.ProgrammingError(<EOL>"<STR_LIT>".format(self.__class__.__name__, "<STR_LIT>"))<EOL> | Deleter for **self.__search_worker_thread** attribute. | f13126:c0:m60 |
def show(self): | selected_text = self.__container.get_current_editor().get_selected_text()<EOL>selected_text and SearchAndReplace.insert_pattern(selected_text, self.__search_patterns_model)<EOL>self.Search_comboBox.line_edit().selectAll()<EOL>self.Search_comboBox.setFocus()<EOL>super(SearchInFiles, self).show()<EOL>self.raise_()<EOL> | Reimplements the :meth:`QWidget.show` method. | f13126:c0:m61 |
def closeEvent(self, event): | self.__interrupt_search()<EOL>super(SearchInFiles, self).closeEvent(event)<EOL> | Reimplements the :meth:`QWidget.closeEvent` method.
:param event: QEvent.
:type event: QEvent | f13126:c0:m62 |
def __initialize_ui(self): | umbra.ui.common.set_window_default_icon(self)<EOL>self.__model = SearchResultsModel(self)<EOL>self.__delegate = RichText_QStyledItemDelegate(self)<EOL>self.Search_Results_treeView.setParent(None)<EOL>self.Search_Results_treeView = SearchResults_QTreeView(self,<EOL>self.__model,<EOL>message="<STR_LIT>")<EOL>self.Search_Results_treeView.setItemDelegate(self.__delegate)<EOL>self.Search_Results_treeView.setObjectName("<STR_LIT>")<EOL>self.Search_Results_frame_gridLayout.addWidget(self.Search_Results_treeView, <NUM_LIT:0>, <NUM_LIT:0>)<EOL>self.__view = self.Search_Results_treeView<EOL>self.__view.setContextMenuPolicy(Qt.ActionsContextMenu)<EOL>self.__view_add_actions()<EOL>self.__search_patterns_model = self.__container.search_and_replace.search_patterns_model<EOL>self.Search_comboBox.setModel(self.__container.search_and_replace.search_patterns_model)<EOL>self.Search_comboBox.setInsertPolicy(QComboBox.InsertAtTop)<EOL>self.Search_comboBox.completer().setCaseSensitivity(Qt.CaseSensitive)<EOL>self.__replace_with_patterns_model = self.__container.search_and_replace.replace_with_patterns_model<EOL>self.Replace_With_comboBox.setModel(self.__container.search_and_replace.replace_with_patterns_model)<EOL>self.Replace_With_comboBox.setInsertPolicy(QComboBox.InsertAtTop)<EOL>self.Replace_With_comboBox.completer().setCaseSensitivity(Qt.CaseSensitive)<EOL>self.Where_lineEdit.setParent(None)<EOL>self.Where_lineEdit = Search_QLineEdit(self)<EOL>self.Where_lineEdit.setObjectName("<STR_LIT>")<EOL>self.Where_frame_gridLayout.addWidget(self.Where_lineEdit, <NUM_LIT:0>, <NUM_LIT:0>)<EOL>self.__locations_menu = QMenu()<EOL>for title, location in self.__locations.iteritems():<EOL><INDENT>self.__locations_menu.addAction(self.__container.engine.actions_manager.register_action(<EOL>"<STR_LIT>".format(title),<EOL>text="<STR_LIT>".format(title),<EOL>slot=functools.partial(self.__add_location, location)))<EOL><DEDENT>self.Where_lineEdit.search_active_label.set_menu(self.__locations_menu)<EOL>self.Where_lineEdit.setPlaceholderText("<STR_LIT>")<EOL>self.installEventFilter(ValidationFilter(self))<EOL>self.__view.selectionModel().selectionChanged.connect(self.__view_selectionModel__selectionChanged)<EOL>self.__view.doubleClicked.connect(self.__view__doubleClicked)<EOL>self.__search_patterns_model.pattern_inserted.connect(functools.partial(<EOL>self.__patterns_model__pattern_inserted, self.Search_comboBox))<EOL>self.__replace_with_patterns_model.pattern_inserted.connect(functools.partial(<EOL>self.__patterns_model__pattern_inserted, self.Replace_With_comboBox))<EOL>self.Search_pushButton.clicked.connect(self.__Search_pushButton__clicked)<EOL>self.Close_pushButton.clicked.connect(self.__Close_pushButton__clicked)<EOL> | Initializes the Widget ui. | f13126:c0:m63 |
def __view_add_actions(self): | self.__view.addAction(self.__container.engine.actions_manager.register_action(<EOL>"<STR_LIT>",<EOL>slot=self.__view_replace_all_action__triggered))<EOL>self.__view.addAction(self.__container.engine.actions_manager.register_action(<EOL>"<STR_LIT>",<EOL>slot=self.__view_replace_selected_action__triggered))<EOL>separator_action = QAction(self.__view)<EOL>separator_action.setSeparator(True)<EOL>self.__view.addAction(separator_action)<EOL>self.__view.addAction(self.__container.engine.actions_manager.register_action(<EOL>"<STR_LIT>",<EOL>slot=self.__view_save_all_action__triggered))<EOL>self.__view.addAction(self.__container.engine.actions_manager.register_action(<EOL>"<STR_LIT>",<EOL>slot=self.__view_save_selected_action__triggered))<EOL> | Sets the View actions. | f13126:c0:m64 |
def __view_replace_all_action__triggered(self, checked): | all_nodes = filter(lambda x: x.family in ("<STR_LIT>", "<STR_LIT>"), self.__model.root_node.children)<EOL>if all_nodes:<EOL><INDENT>return self.replace(all_nodes)<EOL><DEDENT> | Defines the slot triggered by **'Actions|Umbra|Components|factory.script_editor|Search In Files|Replace All'** action.
:param checked: Action checked state.
:type checked: bool
:return: Method success.
:rtype: bool | f13126:c0:m65 |
def __view_replace_selected_action__triggered(self, checked): | selected_nodes = filter(<EOL>lambda x: x.family in ("<STR_LIT>", "<STR_LIT>"), self.__view.get_selected_nodes())<EOL>if selected_nodes:<EOL><INDENT>return self.replace(filter(lambda x: x.parent not in selected_nodes, selected_nodes))<EOL><DEDENT> | Defines the slot triggered by **'Actions|Umbra|Components|factory.script_editor|Search In Files|Replace Selected'** action.
:param checked: Action checked state.
:type checked: bool
:return: Method success.
:rtype: bool | f13126:c0:m66 |
def __view_save_all_action__triggered(self, checked): | all_nodes = filter(lambda x: x.family is "<STR_LIT>", self.__model.root_node.children)<EOL>if all_nodes:<EOL><INDENT>return self.save_files(all_nodes)<EOL><DEDENT> | Defines the slot triggered by **'Actions|Umbra|Components|factory.script_editor|Search In Files|Save All'** action.
:param checked: Action checked state.
:type checked: bool
:return: Method success.
:rtype: bool | f13126:c0:m67 |
def __view_save_selected_action__triggered(self, checked): | selected_nodes = filter(lambda x: x.family is "<STR_LIT>", self.__view.get_selected_nodes())<EOL>if selected_nodes:<EOL><INDENT>return self.save_files(selected_nodes)<EOL><DEDENT> | Defines the slot triggered by **'Actions|Umbra|Components|factory.script_editor|Search In Files|Save Selected'** action.
:param checked: Action checked state.
:type checked: bool
:return: Method success.
:rtype: bool | f13126:c0:m68 |
def __patterns_model__pattern_inserted(self, combo_box, index): | combo_box.setCurrentIndex(index.row())<EOL> | Defines the slot triggered by a pattern when inserted into a patterns Model.
:param combo_box: Pattern Model attached combo_box.
:type combo_box: QComboBox
:param index: Inserted pattern index.
:type index: QModelIndex | f13126:c0:m69 |
def __Search_pushButton__clicked(self, checked): | self.search()<EOL> | Defines the slot triggered by **Search_pushButton** Widget when clicked.
:param checked: Checked state.
:type checked: bool | f13126:c0:m70 |
def __Close_pushButton__clicked(self, checked): | self.close()<EOL> | Defines the slot triggered by **Close_pushButton** Widget when clicked.
:param checked: Checked state.
:type checked: bool | f13126:c0:m71 |
def __view__doubleClicked(self, index): | node = self.__model.get_node(index)<EOL>if node.family == "<STR_LIT>":<EOL><INDENT>file = node.parent.file<EOL>occurence = node<EOL><DEDENT>elif node.family in ("<STR_LIT>", "<STR_LIT>"):<EOL><INDENT>file = node.file<EOL>occurence = None<EOL><DEDENT>self.__highlight_occurence(file, occurence)<EOL> | Defines the slot triggered by a View when double clicked.
:param index: Clicked item index.
:type index: QModelIndex | f13126:c0:m72 |
def __view_selectionModel__selectionChanged(self, selected_items, deselected_items): | indexes = selected_items.indexes()<EOL>if not indexes:<EOL><INDENT>return<EOL><DEDENT>node = self.__model.get_node(indexes.pop())<EOL>if node.family == "<STR_LIT>":<EOL><INDENT>file = node.parent.file<EOL>occurence = node<EOL><DEDENT>elif node.family in ("<STR_LIT>", "<STR_LIT>"):<EOL><INDENT>file = node.file<EOL>occurence = None<EOL><DEDENT>if self.__container.get_editor(file):<EOL><INDENT>self.__highlight_occurence(file, occurence)<EOL><DEDENT> | Defines the slot triggered by the View **selectionModel** when selection changed.
:param selected_items: Selected items.
:type selected_items: QItemSelection
:param deselected_items: Deselected items.
:type deselected_items: QItemSelection | f13126:c0:m73 |
def __search_worker_thread__searchFinished(self, search_results): | self.set_search_results(search_results)<EOL>self.__container.engine.stop_processing()<EOL>metrics = self.__model.get_metrics()<EOL>self.__container.engine.notifications_manager.notify(<EOL>"<STR_LIT>".format(self.__class__.__name__,<EOL>metrics["<STR_LIT>"],<EOL>metrics["<STR_LIT>"]))<EOL> | Defines the slot triggered by :attr:`SearchInFiles.grepWorkerThread` attribute worker thread
when the search is finished.
:param search_results: Search results.
:type search_results: list | f13126:c0:m74 |
def __add_location(self, type, *args): | if type == "<STR_LIT>":<EOL><INDENT>location = umbra.ui.common.store_last_browsed_path((QFileDialog.getExistingDirectory(self,<EOL>"<STR_LIT>",<EOL>RuntimeGlobals.last_browsed_path)))<EOL><DEDENT>elif type == "<STR_LIT:file>":<EOL><INDENT>location = umbra.ui.common.store_last_browsed_path((QFileDialog.getOpenFileName(self,<EOL>"<STR_LIT>",<EOL>RuntimeGlobals.last_browsed_path,<EOL>"<STR_LIT>")))<EOL><DEDENT>elif type == "<STR_LIT>":<EOL><INDENT>location = self.__targets_format.format(self.__default_target)<EOL><DEDENT>elif type == "<STR_LIT>":<EOL><INDENT>location = self.__filters_in_format.format(self.__default_filter_in)<EOL><DEDENT>elif type == "<STR_LIT>":<EOL><INDENT>location = self.__filters_out_format.format(self.__default_filter_out)<EOL><DEDENT>location and self.Where_lineEdit.setText("<STR_LIT:U+002CU+0020>".join(filter(bool, (foundations.strings.to_string(<EOL>self.Where_lineEdit.text()), location))))<EOL> | Defines the slot triggered by **Where_lineEdit** Widget when a context menu entry is clicked.
:param type: Location type.
:type type: unicode
:param \*args: Arguments.
:type \*args: \* | f13126:c0:m75 |
def __format_occurence(self, occurence): | color = "<STR_LIT>"<EOL>span_format = "<STR_LIT>".format(color.format(self.__default_line_color.red(),<EOL>self.__default_line_color.green(),<EOL>self.__default_line_color.blue()))<EOL>line = foundations.strings.to_string(occurence.text)<EOL>start = span_format.format(line[:occurence.column])<EOL>pattern = "<STR_LIT>".format(line[occurence.column:occurence.column + occurence.length])<EOL>end = span_format.format(line[occurence.column + occurence.length:])<EOL>return "<STR_LIT>".join((start, pattern, end))<EOL> | Formats the given occurence and returns the matching rich html text.
:param occurence: Occurence to format.
:type occurence: Occurence
:return: Rich text.
:rtype: unicode | f13126:c0:m76 |
def __format_replace_metrics(self, file, metrics): | color = "<STR_LIT>"<EOL>span_format = "<STR_LIT>".format(color.format(self.__default_line_color.red(),<EOL>self.__default_line_color.green(),<EOL>self.__default_line_color.blue()))<EOL>dir_name, base_name = (os.path.dirname(file), os.path.basename(file))<EOL>return "<STR_LIT>".join((span_format.format("<STR_LIT:'>"),<EOL>span_format.format(dir_name),<EOL>span_format.format(os.path.sep),<EOL>base_name,<EOL>span_format.format("<STR_LIT>"),<EOL>foundations.strings.to_string(metrics),<EOL>span_format.format("<STR_LIT>")))<EOL> | Formats the given replace metrics and returns the matching rich html text.
:param file: File.
:type file: unicode
:param metrics: Replace metrics to format.
:type metrics: unicode
:return: Rich text.
:rtype: unicode | f13126:c0:m77 |
def __highlight_occurence(self, file, occurence): | if not self.__container.get_editor(file):<EOL><INDENT>cache_data = self.__files_cache.get_content(file)<EOL>if cache_data:<EOL><INDENT>document = cache_data.document or self.__get_document(cache_data.content)<EOL>self.__container.load_document(document, file)<EOL>self.__uncache(file)<EOL><DEDENT>else:<EOL><INDENT>self.__container.load_file(file)<EOL><DEDENT><DEDENT>else:<EOL><INDENT>self.__container.set_current_editor(file)<EOL><DEDENT>if not occurence:<EOL><INDENT>return<EOL><DEDENT>cursor = self.__container.get_current_editor().textCursor()<EOL>cursor.setPosition(occurence.position, QTextCursor.MoveAnchor)<EOL>cursor.setPosition(occurence.position + occurence.length, QTextCursor.KeepAnchor)<EOL>self.__container.get_current_editor().setTextCursor(cursor)<EOL> | Highlights given file occurence.
:param file: File containing the occurence.
:type file: unicode
:param occurence: Occurence to highlight.
:type occurence: Occurence or SearchOccurenceNode | f13126:c0:m78 |
def __get_document(self, content): | document = QTextDocument(QString(content))<EOL>document.clearUndoRedoStacks()<EOL>document.setModified(False)<EOL>return document<EOL> | Returns a `QTextDocument <http://doc.qt.nokia.com/qtextdocument.html>`_ class instance
with given content.
:return: Document.
:rtype: QTextDocument | f13126:c0:m79 |
def __replace_within_document(self, document, occurrences, replacement_pattern): | cursor = QTextCursor(document)<EOL>cursor.beginEditBlock()<EOL>offset = count = <NUM_LIT:0><EOL>for occurence in sorted(occurrences, key=lambda x: x.position):<EOL><INDENT>cursor.setPosition(offset + occurence.position, QTextCursor.MoveAnchor)<EOL>cursor.setPosition(offset + occurence.position + occurence.length, QTextCursor.KeepAnchor)<EOL>cursor.insertText(replacement_pattern)<EOL>offset += len(replacement_pattern) - occurence.length<EOL>count += <NUM_LIT:1><EOL><DEDENT>cursor.endEditBlock()<EOL>return count<EOL> | Replaces given pattern occurrences in given document using given settings.
:param document: Document.
:type document: QTextDocument
:param replacement_pattern: Replacement pattern.
:type replacement_pattern: unicode
:return: Replaced occurrences count.
:rtype: int | f13126:c0:m80 |
def __get_settings(self): | return {"<STR_LIT>": self.Case_Sensitive_checkBox.isChecked(),<EOL>"<STR_LIT>": self.Whole_Word_checkBox.isChecked(),<EOL>"<STR_LIT>": self.Regular_Expressions_checkBox.isChecked()}<EOL> | Returns the current search and replace settings.
:return: Settings.
:rtype: dict | f13126:c0:m81 |
def __interrupt_search(self): | if self.__search_worker_thread:<EOL><INDENT>self.__search_worker_thread.quit()<EOL>self.__search_worker_thread.wait()<EOL>self.__container.engine.stop_processing(warning=False)<EOL><DEDENT> | Interrupt the current search. | f13126:c0:m82 |
def __cache(self, file, content, document): | self.__files_cache.add_content(**{file: CacheData(content=content, document=document)})<EOL> | Caches given file.
:param file: File to cache.
:type file: unicode
:param content: File content.
:type content: list
:param document: File document.
:type document: QTextDocument | f13126:c0:m83 |
def __uncache(self, file): | if file in self.__files_cache:<EOL><INDENT>self.__files_cache.remove_content(file)<EOL><DEDENT> | Uncaches given file.
:param file: File to uncache.
:type file: unicode | f13126:c0:m84 |
def set_search_results(self, search_results): | root_node = umbra.ui.nodes.DefaultNode(name="<STR_LIT>")<EOL>for search_result in search_results:<EOL><INDENT>search_file_node = SearchFileNode(name=search_result.file,<EOL>parent=root_node)<EOL>search_file_node.update(search_result)<EOL>width =max(self.__default_line_number_width,<EOL>max([len(foundations.strings.to_string(occurence.line)) for occurence in<EOL>search_result.occurrences]))<EOL>for occurence in search_result.occurrences:<EOL><INDENT>formatter = "<STR_LIT>".format(width)<EOL>name = "<STR_LIT>".format(formatter.format(occurence.line + <NUM_LIT:1>).replace("<STR_LIT:U+0020>", "<STR_LIT>"),<EOL>self.__format_occurence(occurence))<EOL>search_occurence_node = SearchOccurenceNode(name=name,<EOL>parent=search_file_node)<EOL>search_occurence_node.update(occurence)<EOL><DEDENT><DEDENT>self.__model.initialize_model(root_node)<EOL>return True<EOL> | Sets the Model Nodes using given search results.
:param search_results: Search results.
:type search_results: list
:return: Method success.
:rtype: bool | f13126:c0:m85 |
def set_replace_results(self, replace_results): | root_node = umbra.ui.nodes.DefaultNode(name="<STR_LIT>")<EOL>for file, metrics in sorted(replace_results.iteritems()):<EOL><INDENT>replace_result_node = ReplaceResultNode(name=self.__format_replace_metrics(file, metrics),<EOL>parent=root_node,<EOL>file=file)<EOL><DEDENT>self.__model.initialize_model(root_node)<EOL>return True<EOL> | Sets the Model Nodes using given replace results.
:param replace_results: Replace results.
:type replace_results: list
:return: Method success.
:rtype: bool | f13126:c0:m86 |
def search(self): | self.__interrupt_search()<EOL>search_pattern = self.Search_comboBox.currentText()<EOL>replacement_pattern = self.Replace_With_comboBox.currentText()<EOL>if not search_pattern:<EOL><INDENT>return False<EOL><DEDENT>SearchAndReplace.insert_pattern(search_pattern, self.__search_patterns_model)<EOL>SearchAndReplace.insert_pattern(replacement_pattern, self.__replace_with_patterns_model)<EOL>location = umbra.ui.common.parse_location(<EOL>foundations.strings.to_string(self.Where_lineEdit.text()) or<EOL>self.__targets_format.format(self.__default_target))<EOL>self.__ignore_hidden_files and location.filters_out.append("<STR_LIT>")<EOL>settings = self.__get_settings()<EOL>self.__search_worker_thread = Search_worker(self, search_pattern, location, settings)<EOL>self.__search_worker_thread.searchFinished.connect(self.__search_worker_thread__searchFinished)<EOL>self.__container.engine.worker_threads.append(self.__search_worker_thread)<EOL>self.__container.engine.start_processing("<STR_LIT>")<EOL>self.__search_worker_thread.start()<EOL>return True<EOL> | Searchs user defined locations for search pattern.
:return: Method success.
:rtype: bool | f13126:c0:m87 |
def replace(self, nodes): | files = {}<EOL>for node in nodes:<EOL><INDENT>if node.family == "<STR_LIT>":<EOL><INDENT>files[node.file] = node.children<EOL><DEDENT>elif node.family == "<STR_LIT>":<EOL><INDENT>file = node.parent.file<EOL>if not file in files:<EOL><INDENT>files[file] = []<EOL><DEDENT>files[file].append(node)<EOL><DEDENT><DEDENT>replacement_pattern = self.Replace_With_comboBox.currentText()<EOL>SearchAndReplace.insert_pattern(replacement_pattern, self.__replace_with_patterns_model)<EOL>replace_results = {}<EOL>for file, occurrences in files.iteritems():<EOL><INDENT>editor = self.__container.get_editor(file)<EOL>if editor:<EOL><INDENT>document = editor.document()<EOL><DEDENT>else:<EOL><INDENT>cache_data = self.__files_cache.get_content(file)<EOL>if cache_data is None:<EOL><INDENT>LOGGER.warning(<EOL>"<STR_LIT>".format(self.__class__.__name__, file))<EOL>continue<EOL><DEDENT>content = self.__files_cache.get_content(file).content<EOL>document = self.__get_document(content)<EOL>self.__cache(file, content, document)<EOL><DEDENT>replace_results[file] = self.__replace_within_document(document, occurrences, replacement_pattern)<EOL><DEDENT>self.set_replace_results(replace_results)<EOL>self.__container.engine.notifications_manager.notify(<EOL>"<STR_LIT>".format(self.__class__.__name__,<EOL>sum(replace_results.values()),<EOL>len(replace_results.keys())))<EOL> | Replaces user defined files search pattern occurrences with replacement pattern using given nodes.
:param nodes: Nodes.
:type nodes: list
:return: Method success.
:rtype: bool | f13126:c0:m88 |
def save_files(self, nodes): | metrics = {"<STR_LIT>": <NUM_LIT:0>, "<STR_LIT>": <NUM_LIT:0>}<EOL>for node in nodes:<EOL><INDENT>file = node.file<EOL>if self.__container.get_editor(file):<EOL><INDENT>if self.__container.save_file(file):<EOL><INDENT>metrics["<STR_LIT>"] += <NUM_LIT:1><EOL>self.__uncache(file)<EOL><DEDENT><DEDENT>else:<EOL><INDENT>cache_data = self.__files_cache.get_content(file)<EOL>if cache_data is None:<EOL><INDENT>LOGGER.warning(<EOL>"<STR_LIT>".format(self.__class__.__name__, file))<EOL>continue<EOL><DEDENT>if cache_data.document:<EOL><INDENT>file_handle = File(file)<EOL>file_handle.content = [cache_data.document.toPlainText().toUtf8()]<EOL>if file_handle.write():<EOL><INDENT>metrics["<STR_LIT>"] += <NUM_LIT:1><EOL>self.__uncache(file)<EOL><DEDENT><DEDENT>else:<EOL><INDENT>LOGGER.warning(<EOL>"<STR_LIT>".format(self.__class__.__name__,<EOL>file))<EOL><DEDENT><DEDENT><DEDENT>self.__container.engine.notifications_manager.notify(<EOL>"<STR_LIT>".format(self.__class__.__name__,<EOL>metrics["<STR_LIT>"],<EOL>metrics["<STR_LIT>"]))<EOL> | Saves user defined files using give nodes.
:param nodes: Nodes.
:type nodes: list
:return: Method success.
:rtype: bool | f13126:c0:m89 |
def __init__(self, parent=None, name=None, *args, **kwargs): | LOGGER.debug("<STR_LIT>".format(self.__class__.__name__))<EOL>super(ScriptEditor, self).__init__(parent, name, *args, **kwargs)<EOL>self.deactivatable = False<EOL>self.__dock_area = <NUM_LIT:1><EOL>self.__engine = None<EOL>self.__settings = None<EOL>self.__settings_section = None<EOL>self.__development_layout = UiConstants.development_layout<EOL>self.__grammars_directory = "<STR_LIT>"<EOL>self.__extension = "<STR_LIT>"<EOL>self.__model = None<EOL>self.__languages_model = None<EOL>self.__default_project = "<STR_LIT>"<EOL>self.__default_language = "<STR_LIT>"<EOL>self.__default_script_language = "<STR_LIT>"<EOL>self.__default_file_name = "<STR_LIT>"<EOL>self.__default_file_extension = "<STR_LIT>"<EOL>self.__default_window_title = "<STR_LIT>"<EOL>self.__default_script_editor_directory = "<STR_LIT>"<EOL>self.__default_session_directory = "<STR_LIT>"<EOL>self.__default_script_editor_file = "<STR_LIT>"<EOL>self.__factory_default_script_editor_file = "<STR_LIT>"<EOL>self.__script_editor_file = None<EOL>self.__maximum_recent_files = <NUM_LIT:10><EOL>self.__recent_files_actions = None<EOL>self.__search_and_replace = None<EOL>self.__search_in_files = None<EOL>self.__indent_width = <NUM_LIT:20><EOL>self.__default_fonts_settings = {"<STR_LIT>": ("<STR_LIT>", <NUM_LIT:10>),<EOL>"<STR_LIT>": ("<STR_LIT>", <NUM_LIT:12>),<EOL>"<STR_LIT>": ("<STR_LIT>", <NUM_LIT:10>)}<EOL>self.__console = None<EOL>self.__memory_handler_stack_depth = None<EOL>self.__menu_bar = None<EOL>self.__file_menu = None<EOL>self.__edit_menu = None<EOL>self.__source_menu = None<EOL>self.__navigate_menu = None<EOL>self.__search_menu = None<EOL>self.__command_menu = None<EOL>self.__view_menu = None<EOL> | Initializes the class.
:param parent: Object parent.
:type parent: QObject
:param name: Component name.
:type name: unicode
:param \*args: Arguments.
:type \*args: \*
:param \*\*kwargs: Keywords arguments.
:type \*\*kwargs: \*\* | f13127:c0:m0 |
@property<EOL><INDENT>def dock_area(self):<DEDENT> | return self.__dock_area<EOL> | Property for **self.__dock_area** attribute.
:return: self.__dock_area.
:rtype: int | f13127:c0:m1 |
@dock_area.setter<EOL><INDENT>@foundations.exceptions.handle_exceptions(foundations.exceptions.ProgrammingError)<EOL>def dock_area(self, value):<DEDENT> | raise foundations.exceptions.ProgrammingError(<EOL>"<STR_LIT>".format(self.__class__.__name__, "<STR_LIT>"))<EOL> | Setter for **self.__dock_area** attribute.
:param value: Attribute value.
:type value: int | f13127:c0:m2 |
@dock_area.deleter<EOL><INDENT>@foundations.exceptions.handle_exceptions(foundations.exceptions.ProgrammingError)<EOL>def dock_area(self):<DEDENT> | raise foundations.exceptions.ProgrammingError(<EOL>"<STR_LIT>".format(self.__class__.__name__, "<STR_LIT>"))<EOL> | Deleter for **self.__dock_area** attribute. | f13127:c0:m3 |
@property<EOL><INDENT>def engine(self):<DEDENT> | return self.__engine<EOL> | Property for **self.__engine** attribute.
:return: self.__engine.
:rtype: QObject | f13127:c0:m4 |
@engine.setter<EOL><INDENT>@foundations.exceptions.handle_exceptions(foundations.exceptions.ProgrammingError)<EOL>def engine(self, value):<DEDENT> | raise foundations.exceptions.ProgrammingError(<EOL>"<STR_LIT>".format(self.__class__.__name__, "<STR_LIT>"))<EOL> | Setter for **self.__engine** attribute.
:param value: Attribute value.
:type value: QObject | f13127:c0:m5 |
@engine.deleter<EOL><INDENT>@foundations.exceptions.handle_exceptions(foundations.exceptions.ProgrammingError)<EOL>def engine(self):<DEDENT> | raise foundations.exceptions.ProgrammingError(<EOL>"<STR_LIT>".format(self.__class__.__name__, "<STR_LIT>"))<EOL> | Deleter for **self.__engine** attribute. | f13127:c0:m6 |
@property<EOL><INDENT>def settings(self):<DEDENT> | return self.__settings<EOL> | Property for **self.__settings** attribute.
:return: self.__settings.
:rtype: QSettings | f13127:c0:m7 |
@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 | f13127:c0:m8 |
@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. | f13127:c0:m9 |
@property<EOL><INDENT>def settings_section(self):<DEDENT> | return self.__settings_section<EOL> | Property for **self.__settings_section** attribute.
:return: self.__settings_section.
:rtype: unicode | f13127:c0:m10 |
@settings_section.setter<EOL><INDENT>@foundations.exceptions.handle_exceptions(foundations.exceptions.ProgrammingError)<EOL>def settings_section(self, value):<DEDENT> | raise foundations.exceptions.ProgrammingError(<EOL>"<STR_LIT>".format(self.__class__.__name__, "<STR_LIT>"))<EOL> | Setter for **self.__settings_section** attribute.
:param value: Attribute value.
:type value: unicode | f13127:c0:m11 |
@settings_section.deleter<EOL><INDENT>@foundations.exceptions.handle_exceptions(foundations.exceptions.ProgrammingError)<EOL>def settings_section(self):<DEDENT> | raise foundations.exceptions.ProgrammingError(<EOL>"<STR_LIT>".format(self.__class__.__name__, "<STR_LIT>"))<EOL> | Deleter for **self.__settings_section** attribute. | f13127:c0:m12 |
@property<EOL><INDENT>def development_layout(self):<DEDENT> | return self.__development_layout<EOL> | Property for **self.__development_layout** attribute.
:return: self.__development_layout.
:rtype: unicode | f13127:c0:m13 |
@development_layout.setter<EOL><INDENT>@foundations.exceptions.handle_exceptions(foundations.exceptions.ProgrammingError)<EOL>def development_layout(self, value):<DEDENT> | raise foundations.exceptions.ProgrammingError(<EOL>"<STR_LIT>".format(self.__class__.__name__, "<STR_LIT>"))<EOL> | Setter for **self.__development_layout** attribute.
:param value: Attribute value.
:type value: unicode | f13127:c0:m14 |
@development_layout.deleter<EOL><INDENT>@foundations.exceptions.handle_exceptions(foundations.exceptions.ProgrammingError)<EOL>def development_layout(self):<DEDENT> | raise foundations.exceptions.ProgrammingError(<EOL>"<STR_LIT>".format(self.__class__.__name__, "<STR_LIT>"))<EOL> | Deleter for **self.__development_layout** attribute. | f13127:c0:m15 |
@property<EOL><INDENT>def grammars_directory(self):<DEDENT> | return self.__grammars_directory<EOL> | Property for **self.__grammars_directory** attribute.
:return: self.__grammars_directory.
:rtype: unicode | f13127:c0:m16 |
@grammars_directory.setter<EOL><INDENT>@foundations.exceptions.handle_exceptions(foundations.exceptions.ProgrammingError)<EOL>def grammars_directory(self, value):<DEDENT> | raise foundations.exceptions.ProgrammingError(<EOL>"<STR_LIT>".format(self.__class__.__name__, "<STR_LIT>"))<EOL> | Setter for **self.__grammars_directory** attribute.
:param value: Attribute value.
:type value: unicode | f13127:c0:m17 |
@grammars_directory.deleter<EOL><INDENT>@foundations.exceptions.handle_exceptions(foundations.exceptions.ProgrammingError)<EOL>def grammars_directory(self):<DEDENT> | raise foundations.exceptions.ProgrammingError(<EOL>"<STR_LIT>".format(self.__class__.__name__, "<STR_LIT>"))<EOL> | Deleter for **self.__grammars_directory** attribute. | f13127:c0:m18 |
@property<EOL><INDENT>def extension(self):<DEDENT> | return self.__extension<EOL> | Property for **self.__extension** attribute.
:return: self.__extension.
:rtype: unicode | f13127:c0:m19 |
@extension.setter<EOL><INDENT>@foundations.exceptions.handle_exceptions(foundations.exceptions.ProgrammingError)<EOL>def extension(self, value):<DEDENT> | raise foundations.exceptions.ProgrammingError(<EOL>"<STR_LIT>".format(self.__class__.__name__, "<STR_LIT>"))<EOL> | Setter for **self.__extension** attribute.
:param value: Attribute value.
:type value: unicode | f13127:c0:m20 |
@extension.deleter<EOL><INDENT>@foundations.exceptions.handle_exceptions(foundations.exceptions.ProgrammingError)<EOL>def extension(self):<DEDENT> | raise foundations.exceptions.ProgrammingError(<EOL>"<STR_LIT>".format(self.__class__.__name__, "<STR_LIT>"))<EOL> | Deleter for **self.__extension** attribute. | f13127:c0:m21 |
@property<EOL><INDENT>def model(self):<DEDENT> | return self.__model<EOL> | Property for **self.__model** attribute.
:return: self.__model.
:rtype: ProjectsModel | f13127: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: ProjectsModel | f13127: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. | f13127:c0:m24 |
@property<EOL><INDENT>def languages_model(self):<DEDENT> | return self.__languages_model<EOL> | Property for **self.__languages_model** attribute.
:return: self.__languages_model.
:rtype: LanguagesModel | f13127:c0:m25 |
@languages_model.setter<EOL><INDENT>@foundations.exceptions.handle_exceptions(foundations.exceptions.ProgrammingError)<EOL>def languages_model(self, value):<DEDENT> | raise foundations.exceptions.ProgrammingError(<EOL>"<STR_LIT>".format(self.__class__.__name__, "<STR_LIT>"))<EOL> | Setter for **self.__languages_model** attribute.
:param value: Attribute value.
:type value: LanguagesModel | f13127:c0:m26 |
@languages_model.deleter<EOL><INDENT>@foundations.exceptions.handle_exceptions(foundations.exceptions.ProgrammingError)<EOL>def languages_model(self):<DEDENT> | raise foundations.exceptions.ProgrammingError(<EOL>"<STR_LIT>".format(self.__class__.__name__, "<STR_LIT>"))<EOL> | Deleter for **self.__languages_model** attribute. | f13127:c0:m27 |
@property<EOL><INDENT>def default_project(self):<DEDENT> | return self.__default_project<EOL> | Property for **self.__default_project** attribute.
:return: self.__default_project.
:rtype: unicode | f13127:c0:m28 |
@default_project.setter<EOL><INDENT>@foundations.exceptions.handle_exceptions(foundations.exceptions.ProgrammingError)<EOL>def default_project(self, value):<DEDENT> | raise foundations.exceptions.ProgrammingError(<EOL>"<STR_LIT>".format(self.__class__.__name__, "<STR_LIT>"))<EOL> | Setter for **self.__default_project** attribute.
:param value: Attribute value.
:type value: unicode | f13127:c0:m29 |
@default_project.deleter<EOL><INDENT>@foundations.exceptions.handle_exceptions(foundations.exceptions.ProgrammingError)<EOL>def default_project(self):<DEDENT> | raise foundations.exceptions.ProgrammingError(<EOL>"<STR_LIT>".format(self.__class__.__name__, "<STR_LIT>"))<EOL> | Deleter for **self.__default_project** attribute. | f13127:c0:m30 |
@property<EOL><INDENT>def default_language(self):<DEDENT> | return self.__default_language<EOL> | Property for **self.__default_language** attribute.
:return: self.__default_language.
:rtype: unicode | f13127:c0:m31 |
@default_language.setter<EOL><INDENT>@foundations.exceptions.handle_exceptions(foundations.exceptions.ProgrammingError)<EOL>def default_language(self, value):<DEDENT> | raise foundations.exceptions.ProgrammingError(<EOL>"<STR_LIT>".format(self.__class__.__name__, "<STR_LIT>"))<EOL> | Setter for **self.__default_language** attribute.
:param value: Attribute value.
:type value: unicode | f13127:c0:m32 |
@default_language.deleter<EOL><INDENT>@foundations.exceptions.handle_exceptions(foundations.exceptions.ProgrammingError)<EOL>def default_language(self):<DEDENT> | raise foundations.exceptions.ProgrammingError(<EOL>"<STR_LIT>".format(self.__class__.__name__, "<STR_LIT>"))<EOL> | Deleter for **self.__default_language** attribute. | f13127:c0:m33 |
@property<EOL><INDENT>def default_script_language(self):<DEDENT> | return self.__default_script_language<EOL> | Property for **self.__default_script_language** attribute.
:return: self.__default_script_language.
:rtype: unicode | f13127:c0:m34 |
@default_script_language.setter<EOL><INDENT>@foundations.exceptions.handle_exceptions(foundations.exceptions.ProgrammingError)<EOL>def default_script_language(self, value):<DEDENT> | raise foundations.exceptions.ProgrammingError(<EOL>"<STR_LIT>".format(self.__class__.__name__, "<STR_LIT>"))<EOL> | Setter for **self.__default_script_language** attribute.
:param value: Attribute value.
:type value: unicode | f13127:c0:m35 |
@default_script_language.deleter<EOL><INDENT>@foundations.exceptions.handle_exceptions(foundations.exceptions.ProgrammingError)<EOL>def default_script_language(self):<DEDENT> | raise foundations.exceptions.ProgrammingError(<EOL>"<STR_LIT>".format(self.__class__.__name__, "<STR_LIT>"))<EOL> | Deleter for **self.__default_script_language** attribute. | f13127:c0:m36 |
@property<EOL><INDENT>def default_file_name(self):<DEDENT> | return self.__default_file_name<EOL> | Property for **self.__default_file_name** attribute.
:return: self.__default_file_name.
:rtype: unicode | f13127:c0:m37 |
@default_file_name.setter<EOL><INDENT>@foundations.exceptions.handle_exceptions(foundations.exceptions.ProgrammingError)<EOL>def default_file_name(self, value):<DEDENT> | raise foundations.exceptions.ProgrammingError(<EOL>"<STR_LIT>".format(self.__class__.__name__, "<STR_LIT>"))<EOL> | Setter for **self.__default_file_name** attribute.
:param value: Attribute value.
:type value: unicode | f13127:c0:m38 |
@default_file_name.deleter<EOL><INDENT>@foundations.exceptions.handle_exceptions(foundations.exceptions.ProgrammingError)<EOL>def default_file_name(self):<DEDENT> | raise foundations.exceptions.ProgrammingError(<EOL>"<STR_LIT>".format(self.__class__.__name__, "<STR_LIT>"))<EOL> | Deleter for **self.__default_file_name** attribute. | f13127:c0:m39 |
@property<EOL><INDENT>def default_file_extension(self):<DEDENT> | return self.__default_file_extension<EOL> | Property for **self.__default_file_extension** attribute.
:return: self.__default_file_extension.
:rtype: unicode | f13127:c0:m40 |
@default_file_extension.setter<EOL><INDENT>@foundations.exceptions.handle_exceptions(foundations.exceptions.ProgrammingError)<EOL>def default_file_extension(self, value):<DEDENT> | raise foundations.exceptions.ProgrammingError(<EOL>"<STR_LIT>".format(self.__class__.__name__, "<STR_LIT>"))<EOL> | Setter for **self.__default_file_extension** attribute.
:param value: Attribute value.
:type value: unicode | f13127:c0:m41 |
@default_file_extension.deleter<EOL><INDENT>@foundations.exceptions.handle_exceptions(foundations.exceptions.ProgrammingError)<EOL>def default_file_extension(self):<DEDENT> | raise foundations.exceptions.ProgrammingError(<EOL>"<STR_LIT>".format(self.__class__.__name__, "<STR_LIT>"))<EOL> | Deleter for **self.__default_file_extension** attribute. | f13127:c0:m42 |
@property<EOL><INDENT>def default_window_title(self):<DEDENT> | return self.__default_window_title<EOL> | Property for **self.__default_window_title** attribute.
:return: self.__default_window_title.
:rtype: unicode | f13127:c0:m43 |
@default_window_title.setter<EOL><INDENT>@foundations.exceptions.handle_exceptions(foundations.exceptions.ProgrammingError)<EOL>def default_window_title(self, value):<DEDENT> | raise foundations.exceptions.ProgrammingError(<EOL>"<STR_LIT>".format(self.__class__.__name__, "<STR_LIT>"))<EOL> | Setter for **self.__default_window_title** attribute.
:param value: Attribute value.
:type value: unicode | f13127:c0:m44 |
@default_window_title.deleter<EOL><INDENT>@foundations.exceptions.handle_exceptions(foundations.exceptions.ProgrammingError)<EOL>def default_window_title(self):<DEDENT> | raise foundations.exceptions.ProgrammingError(<EOL>"<STR_LIT>".format(self.__class__.__name__, "<STR_LIT>"))<EOL> | Deleter for **self.__default_window_title** attribute. | f13127:c0:m45 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.