- 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 == "notebook") tp = HANDLER_NOTEBOOK;
- else if (s == "notebookpage") tp = HANDLER_NOTEBOOKPAGE;
- 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++)