signature
stringlengths
8
3.44k
body
stringlengths
0
1.41M
docstring
stringlengths
1
122k
id
stringlengths
5
17
@property<EOL><INDENT>def default_script_editor_directory(self):<DEDENT>
return self.__default_script_editor_directory<EOL>
Property for **self.__default_script_editor_directory** attribute. :return: self.__default_script_editor_directory. :rtype: unicode
f13127:c0:m46
@default_script_editor_directory.setter<EOL><INDENT>@foundations.exceptions.handle_exceptions(foundations.exceptions.ProgrammingError)<EOL>def default_script_editor_directory(self, value):<DEDENT>
raise foundations.exceptions.ProgrammingError(<EOL>"<STR_LIT>".format(self.__class__.__name__, "<STR_LIT>"))<EOL>
Setter for **self.__default_script_editor_directory** attribute. :param value: Attribute value. :type value: unicode
f13127:c0:m47
@default_script_editor_directory.deleter<EOL><INDENT>@foundations.exceptions.handle_exceptions(foundations.exceptions.ProgrammingError)<EOL>def default_script_editor_directory(self):<DEDENT>
raise foundations.exceptions.ProgrammingError(<EOL>"<STR_LIT>".format(self.__class__.__name__,<EOL>"<STR_LIT>"))<EOL>
Deleter for **self.__default_script_editor_directory** attribute.
f13127:c0:m48
@property<EOL><INDENT>def default_session_directory(self):<DEDENT>
return self.__default_session_directory<EOL>
Property for **self.__default_session_directory** attribute. :return: self.__default_session_directory. :rtype: unicode
f13127:c0:m49
@default_session_directory.setter<EOL><INDENT>@foundations.exceptions.handle_exceptions(foundations.exceptions.ProgrammingError)<EOL>def default_session_directory(self, value):<DEDENT>
raise foundations.exceptions.ProgrammingError(<EOL>"<STR_LIT>".format(self.__class__.__name__, "<STR_LIT>"))<EOL>
Setter for **self.__default_session_directory** attribute. :param value: Attribute value. :type value: unicode
f13127:c0:m50
@default_session_directory.deleter<EOL><INDENT>@foundations.exceptions.handle_exceptions(foundations.exceptions.ProgrammingError)<EOL>def default_session_directory(self):<DEDENT>
raise foundations.exceptions.ProgrammingError(<EOL>"<STR_LIT>".format(self.__class__.__name__, "<STR_LIT>"))<EOL>
Deleter for **self.__default_session_directory** attribute.
f13127:c0:m51
@property<EOL><INDENT>def default_script_editor_file(self):<DEDENT>
return self.__default_script_editor_file<EOL>
Property for **self.__default_script_editor_file** attribute. :return: self.__default_script_editor_file. :rtype: unicode
f13127:c0:m52
@default_script_editor_file.setter<EOL><INDENT>@foundations.exceptions.handle_exceptions(foundations.exceptions.ProgrammingError)<EOL>def default_script_editor_file(self, value):<DEDENT>
raise foundations.exceptions.ProgrammingError(<EOL>"<STR_LIT>".format(self.__class__.__name__, "<STR_LIT>"))<EOL>
Setter for **self.__default_script_editor_file** attribute. :param value: Attribute value. :type value: unicode
f13127:c0:m53
@default_script_editor_file.deleter<EOL><INDENT>@foundations.exceptions.handle_exceptions(foundations.exceptions.ProgrammingError)<EOL>def default_script_editor_file(self):<DEDENT>
raise foundations.exceptions.ProgrammingError(<EOL>"<STR_LIT>".format(self.__class__.__name__, "<STR_LIT>"))<EOL>
Deleter for **self.__default_script_editor_file** attribute.
f13127:c0:m54
@property<EOL><INDENT>def factory_default_script_editor_file(self):<DEDENT>
return self.__factory_default_script_editor_file<EOL>
Property for **self.__factory_default_script_editor_file** attribute. :return: self.__factory_default_script_editor_file. :rtype: unicode
f13127:c0:m55
@factory_default_script_editor_file.setter<EOL><INDENT>@foundations.exceptions.handle_exceptions(foundations.exceptions.ProgrammingError)<EOL>def factory_default_script_editor_file(self, value):<DEDENT>
raise foundations.exceptions.ProgrammingError(<EOL>"<STR_LIT>".format(self.__class__.__name__, "<STR_LIT>"))<EOL>
Setter for **self.__factory_default_script_editor_file** attribute. :param value: Attribute value. :type value: unicode
f13127:c0:m56
@factory_default_script_editor_file.deleter<EOL><INDENT>@foundations.exceptions.handle_exceptions(foundations.exceptions.ProgrammingError)<EOL>def factory_default_script_editor_file(self):<DEDENT>
raise foundations.exceptions.ProgrammingError(<EOL>"<STR_LIT>".format(self.__class__.__name__,<EOL>"<STR_LIT>"))<EOL>
Deleter for **self.__factory_default_script_editor_file** attribute.
f13127:c0:m57
@property<EOL><INDENT>def script_editor_file(self):<DEDENT>
return self.__script_editor_file<EOL>
Property for **self.__script_editor_file** attribute. :return: self.__script_editor_file. :rtype: unicode
f13127:c0:m58
@script_editor_file.setter<EOL><INDENT>@foundations.exceptions.handle_exceptions(AssertionError)<EOL>def script_editor_file(self, value):<DEDENT>
if value is not None:<EOL><INDENT>assert type(value) is unicode, "<STR_LIT>".format(<EOL>"<STR_LIT>", value)<EOL><DEDENT>self.__script_editor_file = value<EOL>
Setter for **self.__script_editor_file** attribute. :param value: Attribute value. :type value: unicode
f13127:c0:m59
@script_editor_file.deleter<EOL><INDENT>@foundations.exceptions.handle_exceptions(foundations.exceptions.ProgrammingError)<EOL>def script_editor_file(self):<DEDENT>
raise foundations.exceptions.ProgrammingError(<EOL>"<STR_LIT>".format(self.__class__.__name__, "<STR_LIT>"))<EOL>
Deleter for **self.__script_editor_file** attribute.
f13127:c0:m60
@property<EOL><INDENT>def maximum_recent_files(self):<DEDENT>
return self.__maximum_recent_files<EOL>
Property for **self.__maximum_recent_files** attribute. :return: self.__maximum_recent_files. :rtype: int
f13127:c0:m61
@maximum_recent_files.setter<EOL><INDENT>@foundations.exceptions.handle_exceptions(foundations.exceptions.ProgrammingError)<EOL>def maximum_recent_files(self, value):<DEDENT>
raise foundations.exceptions.ProgrammingError(<EOL>"<STR_LIT>".format(self.__class__.__name__, "<STR_LIT>"))<EOL>
Setter for **self.__maximum_recent_files** attribute. :param value: Attribute value. :type value: int
f13127:c0:m62
@maximum_recent_files.deleter<EOL><INDENT>@foundations.exceptions.handle_exceptions(foundations.exceptions.ProgrammingError)<EOL>def maximum_recent_files(self):<DEDENT>
raise foundations.exceptions.ProgrammingError(<EOL>"<STR_LIT>".format(self.__class__.__name__, "<STR_LIT>"))<EOL>
Deleter for **self.__maximum_recent_files** attribute.
f13127:c0:m63
@property<EOL><INDENT>def recent_files_actions(self):<DEDENT>
return self.__recent_files_actions<EOL>
Property for **self.__recent_files_actions** attribute. :return: self.__recent_files_actions. :rtype: list
f13127:c0:m64
@recent_files_actions.setter<EOL><INDENT>@foundations.exceptions.handle_exceptions(foundations.exceptions.ProgrammingError)<EOL>def recent_files_actions(self, value):<DEDENT>
raise foundations.exceptions.ProgrammingError(<EOL>"<STR_LIT>".format(self.__class__.__name__, "<STR_LIT>"))<EOL>
Setter for **self.__recent_files_actions** attribute. :param value: Attribute value. :type value: list
f13127:c0:m65
@recent_files_actions.deleter<EOL><INDENT>@foundations.exceptions.handle_exceptions(foundations.exceptions.ProgrammingError)<EOL>def recent_files_actions(self):<DEDENT>
raise foundations.exceptions.ProgrammingError(<EOL>"<STR_LIT>".format(self.__class__.__name__, "<STR_LIT>"))<EOL>
Deleter for **self.__recent_files_actions** attribute.
f13127:c0:m66
@property<EOL><INDENT>def search_and_replace(self):<DEDENT>
return self.__search_and_replace<EOL>
Property for **self.__search_and_replace** attribute. :return: self.__search_and_replace. :rtype: SearchAndReplace
f13127:c0:m67
@search_and_replace.setter<EOL><INDENT>@foundations.exceptions.handle_exceptions(foundations.exceptions.ProgrammingError)<EOL>def search_and_replace(self, value):<DEDENT>
raise foundations.exceptions.ProgrammingError(<EOL>"<STR_LIT>".format(self.__class__.__name__, "<STR_LIT>"))<EOL>
Setter for **self.__search_and_replace** attribute. :param value: Attribute value. :type value: SearchAndReplace
f13127:c0:m68
@search_and_replace.deleter<EOL><INDENT>@foundations.exceptions.handle_exceptions(foundations.exceptions.ProgrammingError)<EOL>def search_and_replace(self):<DEDENT>
raise foundations.exceptions.ProgrammingError(<EOL>"<STR_LIT>".format(self.__class__.__name__, "<STR_LIT>"))<EOL>
Deleter for **self.__search_and_replace** attribute.
f13127:c0:m69
@property<EOL><INDENT>def search_in_files(self):<DEDENT>
return self.__search_in_files<EOL>
Property for **self.__search_in_files** attribute. :return: self.__search_in_files. :rtype: SearchInFiles
f13127:c0:m70
@search_in_files.setter<EOL><INDENT>@foundations.exceptions.handle_exceptions(foundations.exceptions.ProgrammingError)<EOL>def search_in_files(self, value):<DEDENT>
raise foundations.exceptions.ProgrammingError(<EOL>"<STR_LIT>".format(self.__class__.__name__, "<STR_LIT>"))<EOL>
Setter for **self.__search_in_files** attribute. :param value: Attribute value. :type value: SearchInFiles
f13127:c0:m71
@search_in_files.deleter<EOL><INDENT>@foundations.exceptions.handle_exceptions(foundations.exceptions.ProgrammingError)<EOL>def search_in_files(self):<DEDENT>
raise foundations.exceptions.ProgrammingError(<EOL>"<STR_LIT>".format(self.__class__.__name__, "<STR_LIT>"))<EOL>
Deleter for **self.__search_in_files** attribute.
f13127:c0:m72
@property<EOL><INDENT>def indent_width(self):<DEDENT>
return self.__indent_width<EOL>
Property for **self.__indent_width** attribute. :return: self.__indent_width. :rtype: int
f13127:c0:m73
@indent_width.setter<EOL><INDENT>@foundations.exceptions.handle_exceptions(foundations.exceptions.ProgrammingError)<EOL>def indent_width(self, value):<DEDENT>
raise foundations.exceptions.ProgrammingError(<EOL>"<STR_LIT>".format(self.__class__.__name__, "<STR_LIT>"))<EOL>
Setter for **self.__indent_width** attribute. :param value: Attribute value. :type value: int
f13127:c0:m74
@indent_width.deleter<EOL><INDENT>@foundations.exceptions.handle_exceptions(foundations.exceptions.ProgrammingError)<EOL>def indent_width(self):<DEDENT>
raise foundations.exceptions.ProgrammingError(<EOL>"<STR_LIT>".format(self.__class__.__name__, "<STR_LIT>"))<EOL>
Deleter for **self.__indent_width** attribute.
f13127:c0:m75
@property<EOL><INDENT>def default_fonts_settings(self):<DEDENT>
return self.__default_fonts_settings<EOL>
Property for **self.__default_fonts_settings** attribute. :return: self.__default_fonts_settings. :rtype: dict
f13127:c0:m76
@default_fonts_settings.setter<EOL><INDENT>@foundations.exceptions.handle_exceptions(foundations.exceptions.ProgrammingError)<EOL>def default_fonts_settings(self, value):<DEDENT>
raise foundations.exceptions.ProgrammingError(<EOL>"<STR_LIT>".format(self.__class__.__name__, "<STR_LIT>"))<EOL>
Setter for **self.__default_fonts_settings** attribute. :param value: Attribute value. :type value: dict
f13127:c0:m77
@default_fonts_settings.deleter<EOL><INDENT>@foundations.exceptions.handle_exceptions(foundations.exceptions.ProgrammingError)<EOL>def default_fonts_settings(self):<DEDENT>
raise foundations.exceptions.ProgrammingError(<EOL>"<STR_LIT>".format(self.__class__.__name__, "<STR_LIT>"))<EOL>
Deleter for **self.__default_fonts_settings** attribute.
f13127:c0:m78
@property<EOL><INDENT>def console(self):<DEDENT>
return self.__console<EOL>
Property for **self.__console** attribute. :return: self.__console. :rtype: dict
f13127:c0:m79
@console.setter<EOL><INDENT>@foundations.exceptions.handle_exceptions(foundations.exceptions.ProgrammingError)<EOL>def console(self, value):<DEDENT>
raise foundations.exceptions.ProgrammingError(<EOL>"<STR_LIT>".format(self.__class__.__name__, "<STR_LIT>"))<EOL>
Setter for **self.__console** attribute. :param value: Attribute value. :type value: dict
f13127:c0:m80
@console.deleter<EOL><INDENT>@foundations.exceptions.handle_exceptions(foundations.exceptions.ProgrammingError)<EOL>def console(self):<DEDENT>
raise foundations.exceptions.ProgrammingError(<EOL>"<STR_LIT>".format(self.__class__.__name__, "<STR_LIT>"))<EOL>
Deleter for **self.__console** attribute.
f13127:c0:m81
@property<EOL><INDENT>def memory_handler_stack_depth(self):<DEDENT>
return self.__memory_handler_stack_depth<EOL>
Property for **self.__memory_handler_stack_depth** attribute. :return: self.__memory_handler_stack_depth. :rtype: int
f13127:c0:m82
@memory_handler_stack_depth.setter<EOL><INDENT>@foundations.exceptions.handle_exceptions(foundations.exceptions.ProgrammingError)<EOL>def memory_handler_stack_depth(self, value):<DEDENT>
raise foundations.exceptions.ProgrammingError(<EOL>"<STR_LIT>".format(self.__class__.__name__, "<STR_LIT>"))<EOL>
Setter for **self.__memory_handler_stack_depth** attribute. :param value: Attribute value. :type value: int
f13127:c0:m83
@memory_handler_stack_depth.deleter<EOL><INDENT>@foundations.exceptions.handle_exceptions(foundations.exceptions.ProgrammingError)<EOL>def memory_handler_stack_depth(self):<DEDENT>
raise foundations.exceptions.ProgrammingError(<EOL>"<STR_LIT>".format(self.__class__.__name__, "<STR_LIT>"))<EOL>
Deleter for **self.__memory_handler_stack_depth** attribute.
f13127:c0:m84
@property<EOL><INDENT>def menu_bar(self):<DEDENT>
return self.__menu_bar<EOL>
Property for **self.__menu_bar** attribute. :return: self.__menu_bar. :rtype: QToolbar
f13127:c0:m85
@menu_bar.setter<EOL><INDENT>@foundations.exceptions.handle_exceptions(foundations.exceptions.ProgrammingError)<EOL>def menu_bar(self, value):<DEDENT>
raise foundations.exceptions.ProgrammingError(<EOL>"<STR_LIT>".format(self.__class__.__name__, "<STR_LIT>"))<EOL>
Setter for **self.__menu_bar** attribute. :param value: Attribute value. :type value: QToolbar
f13127:c0:m86
@menu_bar.deleter<EOL><INDENT>@foundations.exceptions.handle_exceptions(foundations.exceptions.ProgrammingError)<EOL>def menu_bar(self):<DEDENT>
raise foundations.exceptions.ProgrammingError(<EOL>"<STR_LIT>".format(self.__class__.__name__, "<STR_LIT>"))<EOL>
Deleter for **self.__menu_bar** attribute.
f13127:c0:m87
@property<EOL><INDENT>def file_menu(self):<DEDENT>
return self.__file_menu<EOL>
Property for **self.__file_menu** attribute. :return: self.__file_menu. :rtype: QMenu
f13127:c0:m88
@file_menu.setter<EOL><INDENT>@foundations.exceptions.handle_exceptions(foundations.exceptions.ProgrammingError)<EOL>def file_menu(self, value):<DEDENT>
raise foundations.exceptions.ProgrammingError(<EOL>"<STR_LIT>".format(self.__class__.__name__, "<STR_LIT>"))<EOL>
Setter for **self.__file_menu** attribute. :param value: Attribute value. :type value: QMenu
f13127:c0:m89
@file_menu.deleter<EOL><INDENT>@foundations.exceptions.handle_exceptions(foundations.exceptions.ProgrammingError)<EOL>def file_menu(self):<DEDENT>
raise foundations.exceptions.ProgrammingError(<EOL>"<STR_LIT>".format(self.__class__.__name__, "<STR_LIT>"))<EOL>
Deleter for **self.__file_menu** attribute.
f13127:c0:m90
@property<EOL><INDENT>def edit_menu(self):<DEDENT>
return self.__edit_menu<EOL>
Property for **self.__edit_menu** attribute. :return: self.__edit_menu. :rtype: QMenu
f13127:c0:m91
@edit_menu.setter<EOL><INDENT>@foundations.exceptions.handle_exceptions(foundations.exceptions.ProgrammingError)<EOL>def edit_menu(self, value):<DEDENT>
raise foundations.exceptions.ProgrammingError(<EOL>"<STR_LIT>".format(self.__class__.__name__, "<STR_LIT>"))<EOL>
Setter for **self.__edit_menu** attribute. :param value: Attribute value. :type value: QMenu
f13127:c0:m92
@edit_menu.deleter<EOL><INDENT>@foundations.exceptions.handle_exceptions(foundations.exceptions.ProgrammingError)<EOL>def edit_menu(self):<DEDENT>
raise foundations.exceptions.ProgrammingError(<EOL>"<STR_LIT>".format(self.__class__.__name__, "<STR_LIT>"))<EOL>
Deleter for **self.__edit_menu** attribute.
f13127:c0:m93
@property<EOL><INDENT>def source_menu(self):<DEDENT>
return self.__source_menu<EOL>
Property for **self.__source_menu** attribute. :return: self.__source_menu. :rtype: QMenu
f13127:c0:m94
@source_menu.setter<EOL><INDENT>@foundations.exceptions.handle_exceptions(foundations.exceptions.ProgrammingError)<EOL>def source_menu(self, value):<DEDENT>
raise foundations.exceptions.ProgrammingError(<EOL>"<STR_LIT>".format(self.__class__.__name__, "<STR_LIT>"))<EOL>
Setter for **self.__source_menu** attribute. :param value: Attribute value. :type value: QMenu
f13127:c0:m95
@source_menu.deleter<EOL><INDENT>@foundations.exceptions.handle_exceptions(foundations.exceptions.ProgrammingError)<EOL>def source_menu(self):<DEDENT>
raise foundations.exceptions.ProgrammingError(<EOL>"<STR_LIT>".format(self.__class__.__name__, "<STR_LIT>"))<EOL>
Deleter for **self.__source_menu** attribute.
f13127:c0:m96
@property<EOL><INDENT>def navigate_menu(self):<DEDENT>
return self.__navigate_menu<EOL>
Property for **self.__navigate_menu** attribute. :return: self.__navigate_menu. :rtype: QMenu
f13127:c0:m97
@navigate_menu.setter<EOL><INDENT>@foundations.exceptions.handle_exceptions(foundations.exceptions.ProgrammingError)<EOL>def navigate_menu(self, value):<DEDENT>
raise foundations.exceptions.ProgrammingError(<EOL>"<STR_LIT>".format(self.__class__.__name__, "<STR_LIT>"))<EOL>
Setter for **self.__navigate_menu** attribute. :param value: Attribute value. :type value: QMenu
f13127:c0:m98
@navigate_menu.deleter<EOL><INDENT>@foundations.exceptions.handle_exceptions(foundations.exceptions.ProgrammingError)<EOL>def navigate_menu(self):<DEDENT>
raise foundations.exceptions.ProgrammingError(<EOL>"<STR_LIT>".format(self.__class__.__name__, "<STR_LIT>"))<EOL>
Deleter for **self.__navigate_menu** attribute.
f13127:c0:m99
@property<EOL><INDENT>def search_menu(self):<DEDENT>
return self.__search_menu<EOL>
Property for **self.__search_menu** attribute. :return: self.__search_menu. :rtype: QMenu
f13127:c0:m100
@search_menu.setter<EOL><INDENT>@foundations.exceptions.handle_exceptions(foundations.exceptions.ProgrammingError)<EOL>def search_menu(self, value):<DEDENT>
raise foundations.exceptions.ProgrammingError(<EOL>"<STR_LIT>".format(self.__class__.__name__, "<STR_LIT>"))<EOL>
Setter for **self.__search_menu** attribute. :param value: Attribute value. :type value: QMenu
f13127:c0:m101
@search_menu.deleter<EOL><INDENT>@foundations.exceptions.handle_exceptions(foundations.exceptions.ProgrammingError)<EOL>def search_menu(self):<DEDENT>
raise foundations.exceptions.ProgrammingError(<EOL>"<STR_LIT>".format(self.__class__.__name__, "<STR_LIT>"))<EOL>
Deleter for **self.__search_menu** attribute.
f13127:c0:m102
@property<EOL><INDENT>def command_menu(self):<DEDENT>
return self.__command_menu<EOL>
Property for **self.__command_menu** attribute. :return: self.__command_menu. :rtype: QMenu
f13127:c0:m103
@command_menu.setter<EOL><INDENT>@foundations.exceptions.handle_exceptions(foundations.exceptions.ProgrammingError)<EOL>def command_menu(self, value):<DEDENT>
raise foundations.exceptions.ProgrammingError(<EOL>"<STR_LIT>".format(self.__class__.__name__, "<STR_LIT>"))<EOL>
Setter for **self.__command_menu** attribute. :param value: Attribute value. :type value: QMenu
f13127:c0:m104
@command_menu.deleter<EOL><INDENT>@foundations.exceptions.handle_exceptions(foundations.exceptions.ProgrammingError)<EOL>def command_menu(self):<DEDENT>
raise foundations.exceptions.ProgrammingError(<EOL>"<STR_LIT>".format(self.__class__.__name__, "<STR_LIT>"))<EOL>
Deleter for **self.__command_menu** attribute.
f13127:c0:m105
@property<EOL><INDENT>def view_menu(self):<DEDENT>
return self.__view_menu<EOL>
Property for **self.__view_menu** attribute. :return: self.__view_menu. :rtype: QMenu
f13127:c0:m106
@view_menu.setter<EOL><INDENT>@foundations.exceptions.handle_exceptions(foundations.exceptions.ProgrammingError)<EOL>def view_menu(self, value):<DEDENT>
raise foundations.exceptions.ProgrammingError(<EOL>"<STR_LIT>".format(self.__class__.__name__, "<STR_LIT>"))<EOL>
Setter for **self.__view_menu** attribute. :param value: Attribute value. :type value: QMenu
f13127:c0:m107
@view_menu.deleter<EOL><INDENT>@foundations.exceptions.handle_exceptions(foundations.exceptions.ProgrammingError)<EOL>def view_menu(self):<DEDENT>
raise foundations.exceptions.ProgrammingError(<EOL>"<STR_LIT>".format(self.__class__.__name__, "<STR_LIT>"))<EOL>
Deleter for **self.__view_menu** attribute.
f13127:c0:m108
def activate(self, engine):
LOGGER.debug("<STR_LIT>".format(self.__class__.__name__))<EOL>self.__engine = engine<EOL>self.__settings = self.__engine.settings<EOL>self.__settings_section = self.name<EOL>self.__default_script_editor_directory = os.path.join(self.__engine.user_application_data_directory,<EOL>Constants.io_directory,<EOL>self.__defaul...
Activates the Component. :param engine: Container to attach the Component to. :type engine: QObject :return: Method success. :rtype: bool
f13127:c0:m109
@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. :return: Method success. :rtype: bool
f13127:c0:m110
def initialize_ui(self):
LOGGER.debug("<STR_LIT>".format(self.__class__.__name__))<EOL>self.__model = ProjectsModel(self, default_project=self.__default_project)<EOL>self.Script_Editor_tabWidget = ScriptEditor_QTabWidget(self.__engine)<EOL>self.Script_Editor_tabWidget_frame_gridLayout.addWidget(self.Script_Editor_tabWidget, <NUM_LIT:0>, <NUM_L...
Initializes the Component ui. :return: Method success. :rtype: bool
f13127:c0:m111
@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. :return: Method success. :rtype: bool
f13127:c0:m112
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
f13127:c0:m113
def remove_widget(self):
LOGGER.debug("<STR_LIT>".format(self.__class__.__name__))<EOL>self.__engine.removeDockWidget(self)<EOL>self.setParent(None)<EOL>return True<EOL>
Removes the Component Widget from the engine. :return: Method success. :rtype: bool
f13127:c0:m114
def on_startup(self):
LOGGER.debug("<STR_LIT>".format(self.__class__.__name__))<EOL>factory_default_script_editor_file = umbra.ui.common.get_resource_path(<EOL>self.__factory_default_script_editor_file)<EOL>if foundations.common.path_exists(factory_default_script_editor_file) andnot foundations.common.path_exists(self.__default_script_edito...
Defines the slot triggered on Framework startup.
f13127:c0:m115
def on_close(self):
LOGGER.debug("<STR_LIT>".format(self.__class__.__name__))<EOL>map(self.unregister_file, self.list_files())<EOL>if self.store_session() and self.close_all_files(leave_first_editor=False):<EOL><INDENT>return True<EOL><DEDENT>
Defines the slot triggered on Framework close.
f13127:c0:m116
def __initialize_menu_bar(self):
self.__file_menu = QMenu("<STR_LIT>", parent=self.__menu_bar)<EOL>self.__file_menu.addAction(self.__engine.actions_manager.register_action(<EOL>"<STR_LIT>",<EOL>shortcut=QKeySequence.New,<EOL>slot=self.__new_file_action__triggered))<EOL>self.__file_menu.addAction(self.__engine.actions_manager.register_action(<EOL>"<STR...
Initializes Component menu_bar.
f13127:c0:m117
@foundations.trace.untracable<EOL><INDENT>def __Script_Editor_Output_plainTextEdit_set_ui(self):<DEDENT>
self.Script_Editor_Output_plainTextEdit.setReadOnly(True)<EOL>self.Script_Editor_Output_plainTextEdit.highlighter = umbra.ui.highlighters.DefaultHighlighter(<EOL>self.Script_Editor_Output_plainTextEdit.document(),<EOL>LOGGING_LANGUAGE.rules,<EOL>LOGGING_LANGUAGE.theme)<EOL>self.Script_Editor_Output_plainTextEdit.setTab...
Sets the **Script_Editor_Output_plainTextEdit** Widget.
f13127:c0:m118
@foundations.trace.untracable<EOL><INDENT>def __Script_Editor_Output_plainTextEdit_set_default_view_state(self):<DEDENT>
self.Script_Editor_Output_plainTextEdit.moveCursor(QTextCursor.End)<EOL>self.Script_Editor_Output_plainTextEdit.ensureCursorVisible()<EOL>
Sets the **Script_Editor_Output_plainTextEdit** Widget default View state.
f13127:c0:m119
@foundations.trace.untracable<EOL><INDENT>def __Script_Editor_Output_plainTextEdit_refresh_ui(self):<DEDENT>
memory_handler_stack_depth = len(self.__engine.logging_session_handler_stream.stream)<EOL>if memory_handler_stack_depth != self.__memory_handler_stack_depth:<EOL><INDENT>for line in self.__engine.logging_session_handler_stream.stream[<EOL>self.__memory_handler_stack_depth:memory_handler_stack_depth]:<EOL><INDENT>self.S...
Updates the **Script_Editor_Output_plainTextEdit** Widget.
f13127:c0:m120
def __Script_Editor_Output_plainTextEdit_contextMenuEvent(self, event):
menu = self.Script_Editor_Output_plainTextEdit.createStandardContextMenu()<EOL>menu.addSeparator()<EOL>menu.addAction(self.__engine.actions_manager.register_action(<EOL>"<STR_LIT>",<EOL>slot=self.__edit_selected_path_action__triggered))<EOL>menu.exec_(event.globalPos())<EOL>
Reimplements the :meth:`QPlainTextEdit.contextMenuEvent` method. :param event: QEvent. :type event: QEvent
f13127:c0:m121
def __Script_Editor_tabWidget_set_ui(self):
self.Script_Editor_tabWidget.setTabsClosable(True)<EOL>self.Script_Editor_tabWidget.setMovable(True)<EOL>
Sets the **Script_Editor_tabWidget** Widget.
f13127:c0:m122
def __Script_Editor_tabWidget__tabCloseRequested(self, index):
LOGGER.debug("<STR_LIT>".format(index))<EOL>self.Script_Editor_tabWidget.setCurrentIndex(index)<EOL>return self.close_file()<EOL>
Defines the slot triggered by **Script_Editor_tabWidget** Widget when a tab is requested to be closed. :param index: Tab index. :type index: int
f13127:c0:m123
def __Script_Editor_tabWidget__currentChanged(self, index):
LOGGER.debug("<STR_LIT>".format(index))<EOL>self.Editor_Status_editorStatus._EditorStatus__Languages_comboBox_set_default_view_state()<EOL>self.__set_window_title()<EOL>
Defines the slot triggered by **Script_Editor_tabWidget** Widget when the current tab is changed. :param index: Tab index. :type index: int
f13127:c0:m124
def __Script_Editor_tabWidget__content_dropped(self, event):
self.__handle_dropped_content(event)<EOL>
Defines the slot triggered by content when dropped in the **Script_Editor_tabWidget** Widget. :param event: Event. :type event: QEvent
f13127:c0:m125
def __Script_Editor_tabWidget_tabBar__tabMoved(self, to_index, from_index):
editor = self.get_current_editor()<EOL>if not editor:<EOL><INDENT>return<EOL><DEDENT>editor_node = foundations.common.get_first_item(self.__model.get_editor_nodes(editor))<EOL>file_node = editor_node.parent<EOL>project_node = file_node.parent<EOL>self.__model.move_node(project_node, from_index, to_index)<EOL>
Defines the slot triggered by a **Script_Editor_tabWidget** Widget tab when moved. :param to_index: Index to. :type to_index: int :param from_index: Index from. :type from_index: int
f13127:c0:m126
def __engine__content_dropped(self, event):
self.__handle_dropped_content(event)<EOL>
Defines the slot triggered by content when dropped into the engine. :param event: Event. :type event: QEvent
f13127:c0:m127
def __engine_layouts_manager__layout_restored(self, current_layout):
self.Editor_Status_editorStatus.setVisible(not self.isHidden())<EOL>
Defines the slot triggered by the engine layout when changed. :param current_layout: Current layout. :type current_layout: unicode
f13127:c0:m128
def __engine_file_system_events_manager__file_changed(self, file):
file = foundations.strings.to_string(file)<EOL>self.search_in_files._SearchInFiles__uncache(file)<EOL>self.reload_file(file)<EOL>
Defines the slot triggered by the **file_system_events_manager** when a file is changed. :param file: File changed. :type file: unicode
f13127:c0:m129
def __engine_file_system_events_manager__file_invalidated(self, file):
file = foundations.strings.to_string(file)<EOL>self.search_in_files._SearchInFiles__uncache(file)<EOL>editor = self.get_editor(file)<EOL>editor and editor.set_modified(True)<EOL>
Defines the slot triggered by the **file_system_events_manager** when a file is invalidated. :param file: File changed. :type file: unicode
f13127:c0:m130
def __engine_file_system_events_manager__directory_changed(self, directory):
for project_node in self.__model.list_project_nodes():<EOL><INDENT>if project_node.path == directory:<EOL><INDENT>self.__model.update_project_nodes(project_node)<EOL><DEDENT>else:<EOL><INDENT>for node in foundations.walkers.nodes_walker(project_node):<EOL><INDENT>if node.path == directory:<EOL><INDENT>self.__model.upda...
Defines the slot triggered by the **file_system_events_manager** when a directory is changed. :param directory: Directory changed. :type directory: unicode
f13127:c0:m131
def __engine_file_system_events_manager__directory_invalidated(self, directory):
for project_node in self.__model.list_project_nodes():<EOL><INDENT>if project_node.path == directory:<EOL><INDENT>self.__model.unregister_project(project_node)<EOL>break<EOL><DEDENT><DEDENT>
Defines the slot triggered by the **file_system_events_manager** when a directory is invalidated. :param directory: Directory invalidated. :type directory: unicode
f13127:c0:m132
def __script_editor__visibilityChanged(self, visibility):
self.Editor_Status_editorStatus.setVisible(visibility)<EOL>
Defines the slot triggered by the **script_editor** Component when visibility changed. :param visibility: Widget visibility. :type visibility: bool
f13127:c0:m133
def __new_file_action__triggered(self, checked):
return self.new_file()<EOL>
Defines the slot triggered by **'Actions|Umbra|Components|factory.script_editor|&File|&New'** action. :param checked: Checked state. :type checked: bool :return: Method success. :rtype: bool
f13127:c0:m134
def __model__file_registered(self, file_node):
self.register_node_path(file_node)<EOL>
Defines the slot triggered by Model when a file is registered. :param file_node: Registered file FileNode. :type file_node: FileNode
f13127:c0:m135
def __model__file_unregistered(self, file_node):
self.unregister_node_path(file_node)<EOL>
Defines the slot triggered by Model when a file is unregistered. :param file_node: Unregistered file FileNode. :type file_node: FileNode
f13127:c0:m136
def __model__directory_registered(self, directory_node):
self.register_node_path(directory_node)<EOL>
Defines the slot triggered by Model when a directory is registered. :param directory_node: Registered directory DirectoryNode. :type directory_node: DirectoryNode
f13127:c0:m137
def __model__directory_unregistered(self, directory_node):
self.unregister_node_path(directory_node)<EOL>
Defines the slot triggered by Model when a directory is unregistered. :param directory_node: Unregistered directory DirectoryNode. :type directory_node: DirectoryNode
f13127:c0:m138
def __model__project_registered(self, project_node):
self.register_node_path(project_node)<EOL>
Defines the slot triggered by Model when a project is registered. :param project_node: Registered project ProjectNode. :type project_node: ProjectNode
f13127:c0:m139
def __model__project_unregistered(self, project_node):
self.unregister_node_path(project_node)<EOL>
Defines the slot triggered by Model when a project is unregistered. :param project_node: Unregistered project ProjectNode. :type project_node: ProjectNode
f13127:c0:m140
def __model__editor_registered(self, editor_node):
self.add_editor_tab(editor_node.editor)<EOL>
Defines the slot triggered by Model when an editor is registered. :param editor_node: Registered editor EditorNode. :type editor_node: EditorNode
f13127:c0:m141
def __model__editor_unregistered(self, editor_node):
self.remove_editor_tab(editor_node.editor)<EOL>
Defines the slot triggered by Model when an editor is unregistered. :param editor_node: Unregistered editor EditorNode. :type editor_node: EditorNode
f13127:c0:m142
def __load_file_action__triggered(self, checked):
return self.load_file_ui()<EOL>
Defines the slot triggered by **'Actions|Umbra|Components|factory.script_editor|&File|&Load ...'** action. :param checked: Checked state. :type checked: bool :return: Method success. :rtype: bool
f13127:c0:m143
def __source_file_action__triggered(self, checked):
if self.load_file_ui():<EOL><INDENT>return self.evaluate_script()<EOL><DEDENT>
Defines the slot triggered by **'Actions|Umbra|Components|factory.script_editor|&File|Source ...'** action. :param checked: Checked state. :type checked: bool :return: Method success. :rtype: bool
f13127:c0:m144
def __add_project_action__triggered(self, checked):
return self.add_project_ui()<EOL>
Defines the slot triggered by **'Actions|Umbra|Components|factory.script_editor|&File|Add Project ...'** action. :param checked: Checked state. :type checked: bool :return: Method success. :rtype: bool
f13127:c0:m145