- if (tf[i].IsEmpty() || tf[i][0] == '#') continue;
- wxStringTokenizer tkn(tf[i], ' ');
- wxString s = tkn.GetNextToken();
- if (s == "node")
- nd = tkn.GetNextToken();
- else if (s == "childtype")
- cht = tkn.GetNextToken();
- else if (s == "icon")
- tkn.GetNextToken().ToLong(&icn);
- else if (s == "derived")
- {
- if (tkn.GetNextToken() == "from")
- {
- s = tkn.GetNextToken();
- DerivedFrom.Add(s);
- Read(s + ".df");
- }
- }
- else if (s == "abstract")
- ab = true;
- else if (s == "type")
- {
- s = tkn.GetNextToken();
- if (s == "sizer") tp = HANDLER_SIZER;
- else if (s == "sizeritem") tp = HANDLER_SIZERITEM;
- else if (s == "panel") tp = HANDLER_PANEL;
- else /*if (s == "normal")*/ tp = HANDLER_NORMAL;
- }
- else if (s == "var")
+ ms_HandlersLoaded = TRUE;
+ ms_Handlers.DeleteContents(TRUE);
+
+ NodeInfoArray& arr = NodesDb::Get()->GetNodesInfo();
+ NodeHandler *hnd;
+ for (size_t i = 0; i < arr.GetCount(); i++)