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);
QString typeString() const
Type.
Context * context() const
Context of element.
bool validConnection(ElementInOut *_e)
Can this input/output be connected to _e.
const QString & longDescription() const
Long description.
virtual ~ElementInOut()
Destructor.
void setHorizontalStretch(bool _stretch)
Should this widget be stretchable in horizontal direction.
virtual void addConnection(Connection *_conn)
Add the connection.
const QString & name() const
Name.
virtual void removeConnection(Connection *_conn)
Remove the Connection.
const QString & shortDescription() const
Short description.
SceneElement * element()
Scene element.
bool canConvert(QString _type1, QString _type2)
Can the given types be converted to each other.
bool isBefore(SceneElement *_e)
Will this element be executed before _e bacause of its connections?
virtual Type type() const =0
Type.
QList< Connection * > connections() const
Connections.
ElementInOut(InOut *_io, SceneElement *_parent)
Constructor.
const Element * element() const
Element of this input/output.
bool isAfter(SceneElement *_e)
Will this element be executed after _e bacause of its connections?