Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
OpenGEODE
Commits
4e10d4ea
Commit
4e10d4ea
authored
Sep 10, 2016
by
Maxime Perrotin
Browse files
Attach propery channel connection to parent
parent
9a446880
Changes
2
Hide whitespace changes
Inline
Side-by-side
opengeode/Connectors.py
View file @
4e10d4ea
...
...
@@ -301,7 +301,7 @@ class Signalroute(Connection):
self
.
label_out
.
document
().
contentsChanged
.
connect
(
self
.
change_siglist
)
for
each
in
(
self
.
label_in
,
self
.
label_out
):
each
.
show
()
self
.
reshape
()
#
self.reshape()
@
Slot
()
def
change_siglist
(
self
):
...
...
@@ -414,13 +414,12 @@ class Channel(Signalroute):
@
property
def
start_point
(
self
):
''' Compute connection origin - redefined function '''
return
self
.
parent
.
mapFromScene
(
self
.
_start_point
)
return
self
.
_start_point
@
start_point
.
setter
def
start_point
(
self
,
scene_coord
):
# type: QPointF
''' value is in scene coordinates '''
print
'set start point'
self
.
_start_point
=
scene_coord
self
.
_start_point
=
self
.
parent
.
mapFromScene
(
scene_coord
)
@
property
def
end_point
(
self
):
...
...
opengeode/Pr.py
View file @
4e10d4ea
...
...
@@ -411,10 +411,10 @@ def _channel(symbol, recursive=True, **kwargs):
result
.
append
(
'SIGNALROUTE c'
)
Indent
.
indent
+=
1
if
symbol
.
out_sig
:
result
.
append
(
'FROM {} TO ENV WITH {};'
.
format
(
unicode
(
symbol
.
p
rocess
),
result
.
append
(
'FROM {} TO ENV WITH {};'
.
format
(
unicode
(
symbol
.
p
arent
),
symbol
.
out_sig
))
if
symbol
.
in_sig
:
result
.
append
(
'FROM ENV TO {} WITH {};'
.
format
(
unicode
(
symbol
.
p
rocess
),
result
.
append
(
'FROM ENV TO {} WITH {};'
.
format
(
unicode
(
symbol
.
p
arent
),
symbol
.
in_sig
))
Indent
.
indent
-=
1
return
result
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment