42 #ifdef CHECK_MEMORY_LEAKS
44 #endif // CHECK_MEMORY_LEAKS
65 std::string name = scheme.
name;
110 const std::vector<std::string>&
126 vs.
name =
"standard";
127 gSchemeStorage.
add(vs);
131 vs.
name =
"faster standard";
134 gSchemeStorage.
add(vs);
138 vs.
name =
"real world";
145 gSchemeStorage.
add(vs);
149 int noSaved = app->reg().readIntEntry(
"VisualizationSettings",
"settingNo", 0);
150 for (
int i = 0; i < noSaved; ++i) {
151 std::string name =
"visset#" +
toString(i);
152 std::string setting = app->reg().readStringEntry(
"VisualizationSettings", name.c_str(),
"");
157 app->reg().readStringEntry(
"VisualizationSettings", name.c_str(),
"");
160 int xmlSize = app->reg().readIntEntry(name.c_str(),
"xmlSize", 0);
161 std::string content =
"";
163 while (xmlSize > 0) {
164 std::string part = app->reg().readStringEntry(name.c_str(), (
"xml" +
toString(index)).c_str(),
"");
169 xmlSize -= (
int) part.size();
172 if (content !=
"" && xmlSize == 0) {
187 const std::vector<std::string>& names =
getNames();
188 app->reg().writeIntEntry(
"VisualizationSettings",
"settingNo", (FXint) names.size() -
myNumInitialSettings);
190 for (std::vector<std::string>::const_iterator i = names.begin() +
myNumInitialSettings; i != names.end(); ++i, ++gidx) {
192 std::string sname =
"visset#" +
toString(gidx);
194 app->reg().writeStringEntry(
"VisualizationSettings", sname.c_str(), item.
name.c_str());
198 app->reg().writeIntEntry(sname.c_str(),
"xmlSize", (FXint)(content.size()));
199 const unsigned maxSize = 1500;
200 for (
unsigned int i = 0; i < content.size(); i += maxSize) {
201 const std::string b = content.substr(i, maxSize);
202 app->reg().writeStringEntry(sname.c_str(), (
"xml" +
toString(i / maxSize)).c_str(), b.c_str());