A
lgorithmique
N
umérique
D
istribuée
Private GIT Repository
projects
/
blast.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
adding link between ifaces and clk
[blast.git]
/
InterfaceItem.cpp
diff --git
a/InterfaceItem.cpp
b/InterfaceItem.cpp
index 18397f33cd0564239b9003e980bbec8d47630b22..1ef3aae76b5c3de65eeb940cb3dc78c958da847e 100644
(file)
--- a/
InterfaceItem.cpp
+++ b/
InterfaceItem.cpp
@@
-11,7
+11,7
@@
InterfaceItem::InterfaceItem(double _position,
int _orientation,
ConnectedInterface *_refInter,
AbstractBoxItem* _owner,
int _orientation,
ConnectedInterface *_refInter,
AbstractBoxItem* _owner,
- Parameters* _params) {
+ Parameters* _params
, bool forceVisible
) {
positionRatio = _position;
orientation = _orientation;
refInter = _refInter;
positionRatio = _position;
orientation = _orientation;
refInter = _refInter;
@@
-24,7
+24,7
@@
InterfaceItem::InterfaceItem(double _position,
nameWidth = fmName.width(refInter->getName());
nameHeight = fmName.height();
// by default, only data interface are visible
nameWidth = fmName.width(refInter->getName());
nameHeight = fmName.height();
// by default, only data interface are visible
- if (
refInter->getPurpose() == AbstractInterface::Data
) {
+ if (
(forceVisible) || (refInter->getPurpose() == AbstractInterface::Data)
) {
visible = true;
}
else {
visible = true;
}
else {