models.py
Others:
Bases: umbra.ui.models.GraphModel
Defines the Model used by umbra.components.factory.scriptEditor.scriptEditor.ScriptEditor Component Interface class.
Initializes the class.
Parameters: |
|
---|
This signal is emited by the ProjectsModel class when a file is registered. ( pyqtSignal )
Returns: | Registered file FileNode. |
---|---|
Return type: | FileNode |
This signal is emited by the ProjectsModel class when a file is unregistered. ( pyqtSignal )
Returns: | Unregistered file FileNode. |
---|---|
Return type: | FileNode |
This signal is emited by the ProjectsModel class when an editor is registered. ( pyqtSignal )
Returns: | Registered editor EditorNode. |
---|---|
Return type: | EditorNode |
This signal is emited by the ProjectsModel class when an editor is unregistered. ( pyqtSignal )
Returns: | Unregistered editor EditorNode. |
---|---|
Return type: | EditorNode |
This signal is emited by the ProjectsModel class when a directory is registered. ( pyqtSignal )
Returns: | Registered directory DirectoryNode. |
---|---|
Return type: | DirectoryNode |
This signal is emited by the ProjectsModel class when a directory is unregistered. ( pyqtSignal )
Returns: | Unregistered directory DirectoryNode. |
---|---|
Return type: | DirectoryNode |
This signal is emited by the ProjectsModel class when a project is registered. ( pyqtSignal )
Returns: | Registered project ProjectNode. |
---|---|
Return type: | ProjectNode |
This signal is emited by the ProjectsModel class when a project is unregistered. ( pyqtSignal )
Returns: | Unregistered project ProjectNode. |
---|---|
Return type: | ProjectNode |
Property for self.__defaultProject attribute.
Returns: | self.__defaultProject. |
---|---|
Return type: | unicode |
Property for self.__defaultProjectNode attribute.
Returns: | self.__defaultProjectNode. |
---|---|
Return type: | unicode |
Returns the Model umbra.components.factory.scriptEditor.nodes.EditorNode class nodes.
Parameters: | node (AbstractNode or AbstractCompositeNode or Object) – Node to start walking from. |
---|---|
Returns: | EditorNode nodes. |
Return type: | list |
Returns the Model umbra.components.factory.scriptEditor.nodes.FileNode class nodes.
Parameters: | node (AbstractNode or AbstractCompositeNode or Object) – Node to start walking from. |
---|---|
Returns: | FileNode nodes. |
Return type: | list |
Returns the Model umbra.components.factory.scriptEditor.nodes.DirectoryNode class nodes.
Returns: | DirectoryNode nodes. |
---|---|
Return type: | list |
Returns the Model umbra.components.factory.scriptEditor.nodes.ProjectNode class nodes.
Parameters: | ignoreDefaultProjectNode (bool) – Default ProjectNode will be ignored. |
---|---|
Returns: | ProjectNode nodes. |
Return type: | list |
Returns the Model editors.
Parameters: | node (AbstractNode or AbstractCompositeNode or Object) – Node to start walking from. |
---|---|
Returns: | Editors. |
Return type: | list |
Returns the Model files.
Parameters: | node (AbstractNode or AbstractCompositeNode or Object) – Node to start walking from. |
---|---|
Returns: | FileNode nodes. |
Return type: | list |
Returns the Model directories.
Returns: | DirectoryNode nodes. |
---|---|
Return type: | list |
Returns the Model projects.
Parameters: | ignoreDefaultProjectNode (bool) – Default ProjectNode will be ignored. |
---|---|
Returns: | ProjectNode nodes. |
Return type: | list |
Returns the umbra.components.factory.scriptEditor.nodes.EditorNode class Nodes with given editor.
Parameters: |
|
---|---|
Returns: | EditorNode nodes. |
Return type: | list |
Returns the umbra.components.factory.scriptEditor.nodes.FileNode class Nodes with given path.
Parameters: |
|
---|---|
Returns: | FileNode nodes. |
Return type: | list |
Returns the umbra.components.factory.scriptEditor.nodes.DirectoryNode class Nodes with given path.
Parameters: | path (unicode) – Directory path. |
---|---|
Returns: | DirectoryNode nodes. |
Return type: | list |
Returns the umbra.components.factory.scriptEditor.nodes.ProjectNode class Nodes with given path.
Parameters: | path (unicode) – Project path. |
---|---|
Returns: | ProjectNode nodes. |
Return type: | list |
Moves given parent child to given index.
Parameters: | |
---|---|
Returns: | Method success. |
Return type: | bool |
Registers given file in the Model.
Parameters: | |
---|---|
Returns: | FileNode. |
Return type: | FileNode |
Unregisters given umbra.components.factory.scriptEditor.nodes.FileNode class Node from the Model.
Parameters: |
|
---|---|
Returns: | FileNode. |
Return type: | FileNode |
Registers given directory in the Model.
Parameters: | |
---|---|
Returns: | DirectoryNode. |
Return type: | DirectoryNode |
Unregisters given umbra.components.factory.scriptEditor.nodes.DirectoryNode class Node from the Model.
Parameters: |
|
---|---|
Returns: | DirectoryNode. |
Return type: | DirectoryNode |
Registers given umbra.components.factory.scriptEditor.editor.Editor class editor in the Model.
Parameters: |
|
---|---|
Returns: | EditorNode. |
Return type: | EditorNode |
Unregisters given umbra.components.factory.scriptEditor.nodes.EditorNode class Node from the Model.
Parameters: |
|
---|---|
Returns: | EditorNode. |
Return type: | EditorNode |
Registers given path in the Model as a project.
Parameters: | |
---|---|
Returns: | ProjectNode. |
Return type: | ProjectNode |
Unregisters given umbra.components.factory.scriptProject.nodes.ProjectNode class Node from the Model.
Parameters: |
|
---|---|
Returns: | ProjectNode. |
Return type: | ProjectNode |
Returns if given Node is an authoring node.
Parameters: | node (ProjectNode or DirectoryNode or FileNode) – Node. |
---|---|
Returns: | Is authoring node. |
Return type: | bool |
Sets the Model authoring Nodes using given editor.
Parameters: | editor (Editor) – Editor to set. |
---|---|
Returns: | Method success. |
Return type: | bool |
Deletes the Model authoring Nodes associated with given editor.
Parameters: | editor (Editor) – Editor. |
---|---|
Returns: | Method success. |
Return type: | bool |
Updates given editor Model authoring nodes.
Parameters: | editor (Editor) – Editor. |
---|---|
Returns: | Method success. |
Return type: | bool |
Sets the project Model children Nodes using given root node.
Parameters: |
|
---|
Deletes the Model project Nodes associated with given node.
Parameters: | node (ProjectNode) – Node. |
---|
Bases: PyQt4.QtCore.QAbstractListModel
Defines a QAbstractListModel subclass used to store the umbra.components.factory.scriptEditor.scriptEditor.ScriptEditor Component Interface class languages.
Initializes the class.
Parameters: |
|
---|
Property for self.__languages attribute.
Returns: | self.__languages. |
---|---|
Return type: | list |
Reimplements the QAbstractListModel.rowCount() method.
Parameters: | parent (QModelIndex) – Parent. |
---|---|
Returns: | Row count. |
Return type: | int |
Reimplements the QAbstractListModel.data() method.
Parameters: |
|
---|---|
Returns: | Data. |
Return type: | QVariant |
Sorts the Model languages.
Parameters: | order – Order. ( Qt.SortOrder ) |
---|
Registers given language in the LanguagesModel.languages class property.
Parameters: | language (Language) – Language to register. |
---|---|
Returns: | Method success. |
Return type: | bool |
Unregisters language with given name from the LanguagesModel.languages class property.
Parameters: | name (unicode) – Language to unregister. |
---|---|
Returns: | Method success. |
Return type: | bool |
Bases: umbra.ui.models.GraphModel
Defines the Model used the by umbra.patterns.factory.scriptEditor.searchAndReplace.SearchAndReplace class to store the search and replace patterns.
Initializes the class.
Parameters: |
|
---|
This signal is emited by the PatternsModel class when a pattern has been inserted. ( pyqtSignal )
Returns: | Inserted pattern node. |
---|---|
Return type: | PatternNode |
This signal is emited by the PatternsModel class when a pattern has been removed. ( pyqtSignal )
Returns: | Removed pattern node. |
---|---|
Return type: | PatternNode |
Initializes the Model using given root node.
Parameters: | rootNode (DefaultNode) – Graph root node. |
---|---|
Returns: | Method success |
Return type: | bool |
Bases: umbra.ui.models.GraphModel
Defines the Model used the by umbra.patterns.factory.scriptEditor.searchInFiles.SearchInFiles class to store the search results.
Initializes the class.
Parameters: |
|
---|