tba.
dataTypes is a dictionary which maps certain types to different Widget-classes
method to generate one special widget for a given attribute of the given asset
Parameters: |
|
---|---|
Returns: | the newly generated widget |
Return type: | GenericUI & QWidget |
wrapper around getUiElement to generate one generic-widget for each attribute of the given asset
Parameters: | asset (AbstractAsset) – the asset which should create the attributes |
---|---|
Returns: | a Widget which holds all generic-widgets |
Return type: | QWidget |
GenericUI is a class which defines different functions to set or get an attribute of an asset.
the idea behind this object is that by changing the class-variables:
getter
setter
changeSignal
most of the custom widgets can update their values and provide a possibility to automatically edit the underlying asset-object
In certain cases these three attributes might not be enough and the functions:
getGuiValue
getAssetValue
setGuiValue
setAssetValue
can be reimplemented.
changeSignal is the name of the QtCore.,SIGNAL method which is emitted when in case the value in the ui changes, due to a user input.eg:: valueChanged (int)
method is used to get the value of the underlying asset function can be reimplemented by subclasses
Returns: | the underlying asset-attribute value |
---|---|
Return type: | variant object |
method is used to get the value of the ui-element function can be reimplemented by subclasses
Returns: | the underlying ui-elements value |
---|---|
Return type: | variant object |
getter is the name of the QWidget method to get a value from the Ui.eg:: value
method is used toset the value of asset-attribute to the value of the underlying ui-element function can be reimplemented by subclasses
Returns: | the asset-attributes value |
---|---|
Return type: | variant object |
method is used toset the value of the ui-element to the asset-attributes value function can be reimplemented by subclasses
Returns: | the underlying ui-elements value |
---|---|
Return type: | variant object |
setter is the name of the QWidget method to change a value in the Ui.eg:: setValue
PlVersionBox is derived by QComboBox and GenericUI
it sets the class-variables:
setter = 'versionSetter'
getter = 'versionGetter'
changeSignal = 'currentIndexChanged (int)'
is a wrapper around updateAssetDict
Returns: | the output of updateAssetDict |
---|---|
Return type: | dictionary |
method will update the whole assetDict of an asset with the assetDict of the selected version
Returns: | the assetDict of the underlying asset |
---|---|
Return type: | dictionary |
PlUserBox is derived by QComboBox and GenericUI
it sets the class-variables:
setter = 'userSetter'
getter = 'userGetter'
changeSignal = 'currentIndexChanged (int)'
assigns or deassigns users from the underlying asset
Returns: | the user of the underlying asset |
---|---|
Return type: | User or None |
PlListWidget is derived by QWidget and GenericUI
it sets the class-variables:
setter = 'nil'
getter = 'nil'
changeSignal = 'currentRowChanged (int)'
the PlListWidget is a container-widget for three types of widget:
listViewWidget -> type 0 : lists all list entries, no user-interaction possible
connectionWidget -> type 1 : allows the user to set input or output connection types
dependencyWidget -> type 2 : allows the user to connect other assets to this node
depending on the inputList the Layout will be setup differently.
method gathers if an input-connection-type should be set or if there should be added a outputtype after gathering it will call either the addInputType or addOutputType on the underlying asset
method will connect the selected list-entry in the right list to the underlying asset
method will connect the selected list-entry in the right list to the underlying asset
method gathers if an input-connection-type or an outputtype should be removed after gathering it will call either the removeInputType or removeOutputType on the underlying asset
method will disconnect the selected list-entry in the left list from the underlying asset
PlDateEdit is derived by QDateEdit and GenericUI
it sets the class-variables:
setter = 'dateSetter'
getter = 'dateGetter'
changeSignal = 'dateChanged (const QDate&)'