6.123. sibl_gui.components.core.database.nodes
nodes.py
- Platform:
- Windows, Linux, Mac Os X.
- Description:
- Defines Application nodes classes related to Database objects.
Others:
6.123.1. Module Attributes
-
sibl_gui.components.core.database.nodes.LOGGER
6.123.2. Functions
-
sibl_gui.components.core.database.nodes.getTemplateUserName(title, software)[source]
Returns the Template user name.
Parameters: |
- title (unicode) – Template title.
- software (unicode) – Template software.
|
Returns: | Template user name.
|
Return type: | unicode
|
6.123.3. Classes
-
class sibl_gui.components.core.database.nodes.AbstractDatabaseNode(databaseItem, name=None, parent=None, children=None, roles=None, nodeFlags=None, attributesFlags=39, iconSize=None, iconPlaceholder=None, **kwargs)[source]
Bases: sibl_gui.ui.nodes.GraphModelNode
Defines Application Database abstract base class used by concrete Database Node classes.
Initializes the class.
Parameters: |
- databaseItem (object) – Database object.
- name (unicode) – Node name.
- parent (GraphModelNode) – Node parent.
- children (list) – Children.
- roles (dict) – Roles.
- nodeFlags (int) – Node flags.
- attributesFlags (int) – Attributes flags.
- iconSize (unicode) – Icon size.
- iconPlaceholder (QIcon) – Icon placeholder.
- **kwargs (**) – Keywords arguments.
|
-
databaseItem[source]
Property for self.__databaseItem attribute.
Returns: | self.__databaseItem. |
Return type: | object |
-
toolTipText[source]
Property for self.__toolTipText attribute.
Returns: | self.__toolTipText. |
Return type: | unicode |
-
updateNode()[source]
Updates the Node from the database item.
Returns: | Method success. |
Return type: | bool |
-
updateNodeAttributes()[source]
Updates the Node attributes from the database item attributes.
Returns: | Method success. |
Return type: | bool |
-
updateDatabaseItem()[source]
Updates the database item from the node.
Returns: | Method success. |
Return type: | bool |
-
updateDatabaseItemAttributes()[source]
Updates the database item attributes from the Node attributes.
Returns: | Method success. |
Return type: | bool |
-
updateToolTip()[source]
Updates the Node tooltip.
Returns: | Method success. |
Return type: | bool |
-
class sibl_gui.components.core.database.nodes.IblSetNode(databaseItem, name=None, parent=None, children=None, roles=None, nodeFlags=None, attributesFlags=None, iconPath=None, iconSize=None, iconPlaceholder=None, **kwargs)[source]
Bases: sibl_gui.components.core.database.nodes.AbstractDatabaseNode
Defines Ibl Sets nodes.
Initializes the class.
Parameters: |
- databaseItem (object) – Database object.
- name (unicode) – Node name.
- parent (GraphModelNode) – Node parent.
- children (list) – Children.
- roles (dict) – Roles.
- nodeFlags (int) – Node flags.
- attributesFlags (int) – Attributes flags.
- iconPath (unicode) – Icon path.
- iconSize (unicode) – Icon size.
- iconPlaceholder (QIcon) – Icon placeholder.
- **kwargs (**) – Keywords arguments.
|
-
iconPath[source]
Property for self.__iconPath attribute.
Returns: | self.__iconPath. |
Return type: | unicode |
-
updateNode()[source]
Updates the node from the database item.
Returns: | Method success. |
Return type: | bool |
-
updateNodeAttributes()[source]
Updates the node attributes from the database item attributes.
Returns: | Method success. |
Return type: | bool |
-
updateDatabaseItem()[source]
Updates the database item from the node.
Returns: | Method success. |
Return type: | bool |
-
updateToolTip()[source]
Updates the node tooltip.
Returns: | Method success. |
Return type: | bool |
-
class sibl_gui.components.core.database.nodes.TemplateNode(databaseItem, name=None, parent=None, children=None, roles=None, nodeFlags=None, attributesFlags=None, iconSize=None, iconPlaceholder=None, **kwargs)[source]
Bases: sibl_gui.components.core.database.nodes.AbstractDatabaseNode
Defines Templates nodes.
Initializes the class.
Parameters: |
- databaseItem (object) – Database object.
- name (unicode) – Node name.
- parent (GraphModelNode) – Node parent.
- children (list) – Children.
- roles (dict) – Roles.
- nodeFlags (int) – Node flags.
- attributesFlags (int) – Attributes flags.
- iconSize (unicode) – Icon size.
- iconPlaceholder (QIcon) – Icon placeholder.
- **kwargs (**) – Keywords arguments.
|
-
updateNode()[source]
Updates the node from the database item.
Returns: | Method success. |
Return type: | bool |
-
updateNodeAttributes()[source]
Updates the node attributes from the database item attributes.
Returns: | Method success. |
Return type: | bool |
-
updateDatabaseItem()[source]
Updates the database item from the node.
Returns: | Method success. |
Return type: | bool |
-
updateToolTip()[source]
Updates the node tooltip.
Returns: | Method success. |
Return type: | bool |
-
class sibl_gui.components.core.database.nodes.CollectionNode(databaseItem, name=None, parent=None, children=None, roles=None, nodeFlags=None, attributesFlags=None, iconSize=None, iconPlaceholder=None, **kwargs)[source]
Bases: sibl_gui.components.core.database.nodes.AbstractDatabaseNode
Defines Collections nodes.
Initializes the class.
Parameters: |
- databaseItem (object) – Database object.
- name (unicode) – Node name.
- parent (GraphModelNode) – Node parent.
- children (list) – Children.
- roles (dict) – Roles.
- nodeFlags (int) – Node flags.
- attributesFlags (int) – Attributes flags.
- iconSize (unicode) – Icon size.
- iconPlaceholder (QIcon) – Icon placeholder.
- **kwargs (**) – Keywords arguments.
|
-
updateNode()[source]
Updates the node from the database item.
Returns: | Method success. |
Return type: | bool |
-
updateNodeAttributes()[source]
Updates the node attributes from the database item attributes.
Returns: | Method success. |
Return type: | bool |
-
updateDatabaseItem()[source]
Updates the database item from the node.
Returns: | Method success. |
Return type: | bool |
-
updateToolTip()[source]
Updates the node tooltip.
Returns: | Method success. |
Return type: | bool |