<<"WxTreeView::RecursiveUpdateLevel(level "
<<level
<<")"<<std::endl);
-
int l = level - 1;
const std::vector<tree::Node*>& sel(GetSelected(level));
-
-
// to speed up inserting we hide the control temporarily
GetCtrl(l)->Hide();
GetCtrl(l)->DeleteAllItems();
-
std::vector<tree::Node*>::const_iterator i;
-
for (i=sel.begin(); i!=sel.end(); ++i)
{
GimmickDebugMessage(1,
<<"'"
<<std::endl);
int _id=0;
-
- //Adds items and sets their attributes
-
+ //Adds items and sets their attributes
GetTreeHandler()->LoadChildren(*i,1);
tree::Node::ChildrenListType::reverse_iterator j;
for (j = (*i)->GetChildrenList().rbegin();
<<(*j)->GetLabel()
<<"'"
<<std::endl);
-
wxListItem item;
item.SetMask(wxLIST_MASK_STATE |
wxLIST_MASK_TEXT |
ItemData* data = new ItemData();
data->node = *j;
data->id = _id;
-
item.SetId(_id);
item.SetData(data);
-
_id++;
GetCtrl(l)->InsertItem(item);
-
//Setting attributes
for (int k=0; k<GetCtrl(l)->GetColumnCount(); ++k)
{
std::string valtmp(val);
try
{
- boost::gregorian::date d1(boost::gregorian::from_undelimited_string(val));
+ boost::gregorian::date d1(boost::gregorian::from_undelimited_string(val));
val = to_iso_extended_string(d1);
} catch (...) {
val = valtmp;
}
item.SetText( crea::std2wx(val));
item.SetColumn(k);
-
GetCtrl(l)->SetItem(item);
} // for k
item.Clear();
-
} // for j
- } // for i
-
+ } // for i
SortLevel(l);
GetCtrl(l)->Show();
}