20 #ifndef _YACSGUILOADER_HXX_
21 #define _YACSGUILOADER_HXX_
97 void process(std::string element,
bool newLink =
false);
100 std::map<YACS::ENGINE::Node*, PrsData>
_prsMap;
126 std::string element(el);
142 for (
int i = 0; attr[
i];
i += 2)
144 if(std::string(attr[
i]) ==
"name")
name(attr[i+1]);
145 if(std::string(attr[i]) ==
"x")
x(attr[i+1]);
146 if(std::string(attr[i]) ==
"y")
y(attr[i+1]);
147 if(std::string(attr[i]) ==
"width")
width(attr[i+1]);
148 if(std::string(attr[i]) ==
"height")
height(attr[i+1]);
149 if(std::string(attr[i]) ==
"expx")
expx(attr[i+1]);
150 if(std::string(attr[i]) ==
"expy")
expy(attr[i+1]);
151 if(std::string(attr[i]) ==
"expWidth")
expWidth(attr[i+1]);
152 if(std::string(attr[i]) ==
"expHeight")
expHeight(attr[i+1]);
153 if(std::string(attr[i]) ==
"expanded")
expanded(attr[i+1]);
154 if(std::string(attr[i]) ==
"shownState")
shownState(attr[i+1]);
176 virtual void x(
const std::string&
x)
178 x_ = QString(x.c_str()).toFloat();
181 virtual void y(
const std::string&
y)
183 y_ = QString(y.c_str()).toFloat();
188 width_ = QString(width.c_str()).toFloat();
193 height_ = QString(height.c_str()).toFloat();
196 virtual void expx(
const std::string&
x)
198 expx_ = QString(x.c_str()).toFloat();
201 virtual void expy(
const std::string&
y)
203 expy_ = QString(y.c_str()).toFloat();
208 expWidth_ = QString(x.c_str()).toFloat();
218 expanded_ = QString(expanded.c_str()).toInt();