mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-05-21 13:06:28 +02:00
[ui] Add the notion of Node Documentation
This commit is contained in:
parent
2ebcf19382
commit
0e606eef4e
4 changed files with 55 additions and 0 deletions
|
@ -474,6 +474,9 @@ class BaseNode(BaseObject):
|
|||
t, idx = self._name.split("_")
|
||||
return "{}{}".format(t, idx if int(idx) > 1 else "")
|
||||
|
||||
def getDocumentation(self):
|
||||
return self.nodeDesc.documentation
|
||||
|
||||
@property
|
||||
def packageFullName(self):
|
||||
return '-'.join([self.packageName, self.packageVersion])
|
||||
|
@ -766,6 +769,7 @@ class BaseNode(BaseObject):
|
|||
name = Property(str, getName, constant=True)
|
||||
label = Property(str, getLabel, constant=True)
|
||||
nodeType = Property(str, nodeType.fget, constant=True)
|
||||
documentation = Property(str, getDocumentation, constant=True)
|
||||
positionChanged = Signal()
|
||||
position = Property(Variant, position.fget, position.fset, notify=positionChanged)
|
||||
x = Property(float, lambda self: self._position.x, notify=positionChanged)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue