- PropertyInfo pi;
- pi.Name = tkn.GetNextToken();
- tkn.GetNextToken();
- wxString typ = tkn.GetNextToken();
- if (tkn.HasMoreTokens()) pi.MoreInfo = tkn.GetNextToken();
- /* ADD NEW PROPERTY TYPES HERE
- (search for other occurences of this comment in _all_ files) */
- if (typ == "color") pi.Type = PROP_COLOR;
- else if (typ == "flags") pi.Type = PROP_FLAGS;
- else if (typ == "bool") pi.Type = PROP_BOOL;
- else if (typ == "integer") pi.Type = PROP_INTEGER;
- else if (typ == "coord") pi.Type = PROP_COORD;
- else if (typ == "dimension") pi.Type = PROP_DIMENSION;
- else if (typ == "not_implemented") pi.Type = PROP_NOT_IMPLEMENTED;
- else /*if (typ == "text")*/ pi.Type = PROP_TEXT;
-
- bool fnd = FALSE;
- for (size_t j = 0; j < Props.GetCount(); j++)
- {
- if (Props[j].Name == pi.Name)
- {
- if (Props[j].Type == pi.Type && pi.Type == PROP_FLAGS)
- Props[j].MoreInfo << ',' << pi.MoreInfo;
- else
- Props[j] = pi;
- fnd = TRUE;
- }
- }
-
- if (!fnd) Props.Add(pi);
+ if (arr[i].NodeClass.IsEmpty() || arr[i].Abstract) continue;
+
+ if (arr[i].Type == _T("panel"))
+ hnd = new NodeHandlerPanel(&(arr[i]));
+ else if (arr[i].Type == _T("sizer"))
+ hnd = new NodeHandlerSizer(&(arr[i]));
+ else if (arr[i].Type == _T("sizeritem"))
+ hnd = new NodeHandlerSizerItem(&(arr[i]));
+ else if (arr[i].Type == _T("notebook"))
+ hnd = new NodeHandlerNotebook(&(arr[i]));
+ else if (arr[i].Type == _T("notebookpage"))
+ hnd = new NodeHandlerNotebookPage(&(arr[i]));
+ else
+ hnd = new NodeHandler(&(arr[i]));
+ if (hnd) ms_Handlers.Append(hnd);