editor.py
Others:
Bases: umbra.ui.widgets.codeEditor_QPlainTextEdit.CodeEditor_QPlainTextEdit
Defines the default editor used by the umbra.components.factory.scriptEditor.scriptEditor.ScriptEditor Component Interface class.
Initializes the class.
Parameters: |
|
---|
This signal is emited by the Editor class when the current title is changed. ( pyqtSignal )
This signal is emited by the Editor class when the current file is loaded. ( pyqtSignal )
This signal is emited by the Editor class when the current file is reloaded. ( pyqtSignal )
This signal is emited by the Editor class when the current file is closed. ( pyqtSignal )
This signal is emited by the Editor class when the current editor document content has changed. ( pyqtSignal )
This signal is emited by the Editor class when the current editor document content has been modified. ( pyqtSignal )
Property for self.__defaultFontsSettings attribute.
Returns: | self.__defaultFontsSettings. |
---|---|
Return type: | dict |
Property for self.__isUntitled attribute.
Returns: | self.__isUntitled. |
---|---|
Return type: | bool |
Property for self.__defaultFileName attribute.
Returns: | self.__defaultFileName. |
---|---|
Return type: | unicode |
Property for self.__defaultFileExtension attribute.
Returns: | self.__defaultFileExtension. |
---|---|
Return type: | unicode |
Sets the editor title.
Parameters: | title (unicode) – Editor title. |
---|---|
Returns: | Method success. |
Return type: | bool |
Sets the editor file.
Parameters: | |
---|---|
Returns: | Method success. |
Return type: | bool |
Returns the current editor file short name.
Returns: | File short name. |
---|---|
Return type: | unicode |
Returns an untitled editor file name.
Returns: | Untitled file name. |
---|---|
Return type: | unicode |
Loads given document into the editor.
Parameters: | |
---|---|
Returns: | Method success. |
Return type: | bool |
Reads and loads given file into the editor.
Parameters: | File (unicode) – File to load. |
---|---|
Returns: | Method success. |
Return type: | bool |
Reloads the current editor file.
Parameters: | isModified (bool) – File modified state. |
---|---|
Returns: | Method success. |
Return type: | bool |
Saves the editor file content either using given file or user chosen file.
Returns: | Method success. |
---|---|
Return type: | bool |
Note: | May require user interaction. |