50 #ifndef VSI_ELEMENTINPUT_HH 51 #define VSI_ELEMENTINPUT_HH 56 #include <QDomDocument> 57 #include <QDomElement> 60 #include "elementInOut.hh" 61 #include "../parser/input.hh" 87 void setValid (
bool _value) { valid_ = _value; };
96 QString
value ()
const {
return value_; };
105 void set (
bool _set);
117 unsigned int state ();
120 void saveToXml (QDomDocument &_doc, QDomElement &_root);
void saveToXml(QDomDocument &_doc, QDomElement &_root)
Save to xml.
ElementInput(Input *_in, SceneElement *_parent)
Constructor.
Type type() const
Type (=Input)
bool isForceAskSet() const
Return "ForceAsk" flag.
void loadFromXml(QXmlQuery &_xml)
Load from xml.
void setForceAsk(bool _set)
"ForceAsk" flag to mark an optional input for asking during script execution
void setValid(bool _value)
Sets the valid flag (needed during code generation)
bool valid()
Returns state of valid flag (needed during code generation)
bool isSet()
Return "set" flag.
void setValue(QString _value)
Set to a user value.
QString value() const
Returns value set by user.
~ElementInput()
Destructor.
void addConnection(Connection *_conn)
Add connection.
unsigned int state()
VSI::Input state passthrough.
void removeConnection(Connection *_conn)
Remove connection.