51 #include "elementFunction.hh"
53 #include "graphicsScene.hh"
54 #include "sceneElement.hh"
55 #include "../parser/function.hh"
56 #include "../parser/element.hh"
58 #include "baseWidget.hh"
75 connect (scene_, SIGNAL (contentChanged ()),
92 QDomElement main = _doc.createElement(
"function");
93 _root.appendChild(main);
94 main.setAttribute (
"name",function_->
name ());
109 void VSI::ElementFunction::editFunction()
void loadFromXml(QXmlQuery &_xml)
Load from xml.
static BaseWidget * getBaseWidget()
Returns singleton.
Element * element() const
Element that this function belongs to.
ElementFunction(Function *_f, SceneElement *_element)
Constructor.
QString name() const
Name.
Context * context() const
Context of element.
GraphicsScene * graphicsScene()
Scene.
void saveToXml(QDomDocument &_doc, QDomElement &_root)
Save to xml.
void saveToXml(QDomDocument &_doc, QDomElement &_root)
Save to xml.
~ElementFunction()
Destructor.
void loadFromXml(QXmlQuery &_xml)
Load from xml.
void pushScene(GraphicsScene *_scene)
show a new scene (function) in editor