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