scriptEditor.py
Others:
Bases: manager.qwidgetComponent.QWidgetComponent
This class is the sibl_gui.components.addons.scriptEditor.scriptEditor Component Interface class.
Parameters: |
|
---|
This signal is emited by the ScriptEditor class when the Ui needs to be refreshed. ( pyqtSignal )
This signal is emited by the ScriptEditor class when the recent files list has changed. ( pyqtSignal )
This signal is emited by the ScriptEditor class when a file is loaded. ( pyqtSignal )
Returns: | Loaded file. ( String ) |
---|
This signal is emited by the ScriptEditor class when a file is closed. ( pyqtSignal )
Returns: | Closed file. ( String ) |
---|
This method is the property for self.__dockArea attribute.
Returns: | self.__dockArea. ( Integer ) |
---|
This method is the property for self.__engine attribute.
Returns: | self.__engine. ( QObject ) |
---|
This method is the property for self.__settings attribute.
Returns: | self.__settings. ( QSettings ) |
---|
This method is the property for self.__settingsSection attribute.
Returns: | self.__settingsSection. ( String ) |
---|
This method is the property for self.__developmentLayout attribute.
Returns: | self.__developmentLayout. ( String ) |
---|
This method is the property for self.__grammarsDirectory attribute.
Returns: | self.__grammarsDirectory. ( String ) |
---|
This method is the property for self.__extension attribute.
Returns: | self.__extension. ( String ) |
---|
This method is the property for self.__model attribute.
Returns: | self.__model. ( ProjectsModel ) |
---|
This method is the property for self.__languagesModel attribute.
Returns: | self.__languagesModel. ( LanguagesModel ) |
---|
This method is the property for self.__defaultProject attribute.
Returns: | self.__defaultProject. ( String ) |
---|
This method is the property for self.__defaultLanguage attribute.
Returns: | self.__defaultLanguage. ( String ) |
---|
This method is the property for self.__defaultScriptLanguage attribute.
Returns: | self.__defaultScriptLanguage. ( String ) |
---|
This method is the property for self.__defaultFileName attribute.
Returns: | self.__defaultFileName. ( String ) |
---|
This method is the property for self.__defaultFileExtension attribute.
Returns: | self.__defaultFileExtension. ( String ) |
---|
This method is the property for self.__defaultWindowTitle attribute.
Returns: | self.__defaultWindowTitle. ( String ) |
---|
This method is the property for self.__defaultScriptEditorDirectory attribute.
Returns: | self.__defaultScriptEditorDirectory. ( String ) |
---|
This method is the property for self.__defaultSessionDirectory attribute.
Returns: | self.__defaultSessionDirectory. ( String ) |
---|
This method is the property for self.__defaultScriptEditorFile attribute.
Returns: | self.__defaultScriptEditorFile. ( String ) |
---|
This method is the property for self.__factoryDefaultScriptEditorFile attribute.
Returns: | self.__factoryDefaultScriptEditorFile. ( String ) |
---|
This method is the property for self.__scriptEditorFile attribute.
Returns: | self.__scriptEditorFile. ( String ) |
---|
This method is the property for self.__maximumRecentFiles attribute.
Returns: | self.__maximumRecentFiles. ( Integer ) |
---|
This method is the property for self.__recentFilesActions attribute.
Returns: | self.__recentFilesActions. ( List ) |
---|
This method is the property for self.__searchAndReplace attribute.
Returns: | self.__searchAndReplace. ( SearchAndReplace ) |
---|
This method is the property for self.__searchInFiles attribute.
Returns: | self.__searchInFiles. ( SearchInFiles ) |
---|
This method is the property for self.__indentWidth attribute.
Returns: | self.__indentWidth. ( Integer ) |
---|
This method is the property for self.__defaultFontsSettings attribute.
Returns: | self.__defaultFontsSettings. ( Dictionary ) |
---|
This method is the property for self.__console attribute.
Returns: | self.__console. ( Dictionary ) |
---|
This method is the property for self.__memoryHandlerStackDepth attribute.
Returns: | self.__memoryHandlerStackDepth. ( Integer ) |
---|
This method is the property for self.__menuBar attribute.
Returns: | self.__menuBar. ( QToolbar ) |
---|
This method is the property for self.__fileMenu attribute.
Returns: | self.__fileMenu. ( QMenu ) |
---|
This method is the property for self.__editMenu attribute.
Returns: | self.__editMenu. ( QMenu ) |
---|
This method is the property for self.__sourceMenu attribute.
Returns: | self.__sourceMenu. ( QMenu ) |
---|
This method is the property for self.__navigateMenu attribute.
Returns: | self.__navigateMenu. ( QMenu ) |
---|
This method is the property for self.__searchMenu attribute.
Returns: | self.__searchMenu. ( QMenu ) |
---|
This method is the property for self.__commandMenu attribute.
Returns: | self.__commandMenu. ( QMenu ) |
---|
This method is the property for self.__viewMenu attribute.
Returns: | self.__viewMenu. ( QMenu ) |
---|
This method activates the Component.
Parameters: | engine – Container to attach the Component to. ( QObject ) |
---|---|
Returns: | Method success. ( Boolean ) |
This method initializes the Component ui.
Returns: | Method success. ( Boolean ) |
---|
This method uninitializes the Component ui.
Returns: | Method success. ( Boolean ) |
---|
This method adds the Component Widget to the engine.
Returns: | Method success. ( Boolean ) |
---|
This method removes the Component Widget from the engine.
Returns: | Method success. ( Boolean ) |
---|
This method registers given Node path in the fileSystemEventsManager.
Parameters: | node – Node. ( FileNode / DirectoryNode / ProjectNode ) |
---|---|
Returns: | Method success. ( Boolean ) |
This method unregisters given Node path from the fileSystemEventsManager..
Parameters: | node – Node. ( FileNode / DirectoryNode / ProjectNode ) |
---|---|
Returns: | Method success. ( Boolean ) |
This method loads user chosen file(s) into Script_Editor_tabWidget Widget tab Model editor(s).
Returns: | Method success. ( Boolean ) |
---|---|
Note : | This method may require user interaction. |
This method adds user chosen project Script_Editor_tabWidget Widget tab Model.
Returns: | Method success. ( Boolean ) |
---|---|
Note : | This method may require user interaction. |
This method performs a search and replace in the current Script_Editor_tabWidget Widget tab Model editor.
Returns: | Method success. ( Boolean ) |
---|---|
Note : | This method may require user interaction. |
This method performs a search in the current user chosen files.
Returns: | Method success. ( Boolean ) |
---|---|
Note : | This method may require user interaction. |
This method returns the Script_Editor_tabWidget Widget associated with given index.
Parameters: | index – Tab index. ( Integer ) |
---|---|
Returns: | Widget. ( QWidget ) |
This method returns the Widget with focus.
Returns: | Widget with focus. ( QWidget ) |
---|
This method returns the Script_Editor_tabWidget Widget tab associated with the given editor.
Parameters: | Editor – Editor to search tab for. ( Editor ) |
---|---|
Returns: | Tab index. ( Editor ) |
This method adds a new tab to the Script_Editor_tabWidget Widget and sets the given editor as child widget.
Parameters: | editor – Editor. ( Editor ) |
---|---|
Returns: | New tab index. ( Integer ) |
This method removes the Script_Editor_tabWidget Widget tab with given editor.
Parameters: | editor – Editor. ( Editor ) |
---|---|
Returns: | Method success. ( Boolean ) |
This method finds the Script_Editor_tabWidget Widget tab associated to the given file.
Parameters: | file – File to search tab for. ( String ) |
---|---|
Returns: | Tab index. ( Editor ) |
This method returns if the Script_Editor_tabWidget Widget has at least one tab.
Returns: | Has tab. ( Boolean ) |
---|
This method returns the current Script_Editor_tabWidget Widget tab Model editor.
Returns: | Current editor. ( Editor ) |
---|
This method focus the Script_Editor_tabWidget Widget tab Model editor with given file.
Parameters: | file – File. ( String ) |
---|---|
Returns: | Method success. ( Boolean ) |
This method loads given path.
Parameters: | path – Path to load. ( String ) |
---|---|
Returns: | Method success. ( Boolean ) |
This method loads given document into a new Script_Editor_tabWidget Widget tab Model editor.
Parameters: |
|
---|---|
Returns: | Method success. ( Boolean ) |
This method adds a project.
Parameters: | path – Project path. ( String ) |
---|---|
Returns: | Method success. ( Boolean ) |
This method removes a project.
Parameters: | path – Project path. ( String ) |
---|---|
Returns: | Method success. ( Boolean ) |
This method creates a new file into a new Script_Editor_tabWidget Widget tab.
Returns: | Method success. ( Boolean ) |
---|
This method loads user chosen file in a new Script_Editor_tabWidget Widget tab Model editor.
Parameters: | file – File to load. ( String ) |
---|---|
Returns: | Method success. ( Boolean ) |
This method reloads given file Script_Editor_tabWidget Widget tab Model editor content.
Parameters: |
|
---|---|
Returns: | Method success. ( Boolean ) |
This method saves either given file or current Script_Editor_tabWidget Widget tab Model editor file.
Parameters: | file – File to save. ( String ) |
---|---|
Returns: | Method success. ( Boolean ) |
This method saves current Script_Editor_tabWidget Widget tab Model editor file as user chosen file.
Returns: | Method success. ( Boolean ) |
---|
This method saves all Script_Editor_tabWidget Widget tab Model editor files.
Returns: | Method success. ( Boolean ) |
---|
This method reverts either given file or current Script_Editor_tabWidget Widget tab Model editor file.
Parameters: | file – File to revert. ( String ) |
---|---|
Returns: | Method success. ( Boolean ) |
This method closes either given file or current Script_Editor_tabWidget Widget tab Model editor file.
Parameters: |
|
---|---|
Returns: | Method success. ( Boolean ) |
This method closes every opened files and removes their associated Script_Editor_tabWidget Widget tabs.
Returns: | Method success. ( Boolean ) |
---|
This method attemtps to close the first Script_Editor_tabWidget Widget tab Model editor file.
Returns: | Method success. ( Boolean ) |
---|
This method returns the Model directories.
Returns: | DirectoryNode nodes. ( List ) |
---|
This method returns the Model projects.
Returns: | ProjectNode nodes. ( List ) |
---|
This method returns the Model editor associated with given file.
Parameters: | file – File to search editors for. ( String ) |
---|---|
Returns: | Editor. ( Editor ) |
This method sets given language to given Model editor.
Parameters: |
|
---|---|
Returns: | Method success. ( Boolean ) |
This method moves current Script_Editor_tabWidget Widget tab Model editor cursor to user defined line.
Returns: | Method success. ( Boolean ) |
---|---|
Note : | This method may require user interaction. |
This method evaluates current Script_Editor_tabWidget Widget tab Model editor selected content in the interactive console.
Returns: | Method success. ( Boolean ) |
---|
This method evaluates current Script_Editor_tabWidget Widget tab Model editor content into the interactive console.
Returns: | Method success. ( Boolean ) |
---|
This method evaluates given code into the interactive console.
Parameters: | code – Code to evaluate. ( String ) |
---|---|
Returns: | Method success. ( Boolean ) |