53 #include "sceneElement.hh"
54 #include "elementInOut.hh"
56 #include "connection.hh"
57 #include "connectionPoint.hh"
58 #include "../parser/inout.hh"
59 #include "../parser/element.hh"
60 #include "../parser/context.hh"
80 QFont font = typeText_->font ();
81 font.setItalic (
true);
82 font.setPointSize (8);
83 typeText_->setFont (font);
85 font = descText_->font ();
86 if (_io->
name() ==
"data")
87 font.setPointSize (10);
89 font.setPointSize (8);
90 descText_->setFont (font);
108 std::cerr <<
"Illegal use of copy constructor in class ElementInOut, which is not implemented yet!" << std::endl;
133 if (element_ == _e->element_)
164 connections_.append (_conn);
172 connections_.removeAll (_conn);
bool canConvert(QString _type1, QString _type2)
Can the given types be converted to each other.
bool validConnection(ElementInOut *_e)
Can this input/output be connected to _e.
virtual void removeConnection(Connection *_conn)
Remove the Connection.
void setHorizontalStretch(bool _stretch)
Should this widget be stretchable in horizontal direction.
const QString & shortDescription() const
Short description.
const QString & name() const
Name.
ElementInOut(InOut *_io, SceneElement *_parent)
Constructor.
const Element * element() const
Element of this input/output.
bool isBefore(SceneElement *_e)
Will this element be executed before _e bacause of its connections?
Context * context() const
Context of element.
QList< Connection * > connections() const
Connections.
SceneElement * element()
Scene element.
virtual void addConnection(Connection *_conn)
Add the connection.
virtual ~ElementInOut()
Destructor.
virtual Type type() const =0
Type.
QString typeString() const
Type.
const QString & longDescription() const
Long description.
bool isAfter(SceneElement *_e)
Will this element be executed after _e bacause of its connections?