1 #include <creatisIOComparator.h>
5 Comparator::Comparator(tree::Node *i_tree, std::string i_tag) : m_discr(i_tag): bdiscr(false)
7 std::map< std::string, std::string> attr;
8 i_tree->GetDescriptor().BuildAttributeMap(attr);
9 std::map<std::string, std::string>::iterator it_att = attr.begin();
10 for(; it_att != attr.end(); it_att++)
12 if (it_att->first == m_discr)
18 tree::Node::ChildrenListType::reverse_iterator j;
19 for (j = (*i)->GetChildrenList().rbegin();
20 j!= (*i)->GetChildrenList().rend();
23 GimmickDebugMessage(1,
30 item.SetMask(wxLIST_MASK_STATE |
32 // wxLIST_MASK_IMAGE |
34 // wxLIST_MASK_WIDTH |
38 ItemData* data = new ItemData();
46 GetCtrl(l)->InsertItem(item);
49 for (int k=0; k<GetCtrl(l)->GetColumnCount(); ++k)
52 // Temporary correction : it works but no explanation about the problem FCY
56 val = (*j)->GetAttribute("NumberOfChildren");
59 val = (*j)->GetAttribute(mLevelList[l].key[k]);