61 QDomDocument domDoc = domElement.ownerDocument();
62 QDomElement domNewElem = domDoc.createElement(
"Color");
64 domNewElem.setAttribute(
"r",
_color.
r);
65 domNewElem.setAttribute(
"g",
_color.
g);
66 domNewElem.setAttribute(
"b",
_color.
b);
68 domElement.appendChild(domNewElem);
77 elemCur = domElement.firstChild().toElement();
78 if (!elemCur.isNull())
80 tagName = elemCur.tagName();
83 if (tagName ==
"Color")
int fromXML(DOM_Element domElement)
TYColorInterface & operator=(const TYColorInterface &other)
virtual void setColor(const OColor &color)
bool operator==(const TYColorInterface &other) const
bool operator!=(const TYColorInterface &other) const
virtual ~TYColorInterface()
void deepCopy(const TYColorInterface *pOther, bool copyId=true, bool pUseCopyTag=false)
DOM_Element toXML(DOM_Element &domElement)