GetCtrl(l)->DeleteAllItems();
std::vector<tree::Node*>::iterator i;
- //Adds the first item (filter)
- GetCtrl(l)->InsertItem(0, "Filter:");
+ //Adds the first item (filter)
+ GetCtrl(l)->InsertItem(0, _T("Filter:"));
for (i=sel.begin(); i!=sel.end(); ++i)
{
GimmickDebugMessage(2,
//Setting the color according to the parent
if(l==0)
{
- item.SetBackgroundColour(wxColourDatabase().Find(mColorPalette[colorId]));
- mColorMap.insert(NodeColorPair(*j,wxColourDatabase().Find(mColorPalette[colorId])));
- if(colorId<64)
- {
- colorId++;
- }
- else
+ item.SetBackgroundColour
+ (wxColourDatabase().Find
+ (crea::std2wx(mColorPalette[colorId])));
+ mColorMap.insert
+ (NodeColorPair
+ (*j,wxColourDatabase().Find
+ (crea::std2wx(mColorPalette[colorId]))));
+ if(colorId<64)
+ {
+ colorId++;
+ }
+ else
{
- colorId=0;
+ colorId=0;
}
}
else if(l!=mLevelList.size()-1)
- {
- item.SetBackgroundColour(mColorMap[*i]);
+ {
+ item.SetBackgroundColour(mColorMap[*i]);
mColorMap.insert(NodeColorPair(*j,mColorMap[*i]));
}
else
| wxLIST_MASK_TEXT |wxLIST_MASK_IMAGE | wxLIST_MASK_DATA | wxLIST_MASK_WIDTH | wxLIST_MASK_FORMAT);
}
- GetCtrl(level)->InsertItem(0,"Filter:");
+ GetCtrl(level)->InsertItem(0,_T("Filter:"));
}
}
{
if ( GetCtrl(level) == ctrl ) break;
}
- std::string filter=event.m_item.m_text.c_str();
+ std::string filter = crea::wx2std(event.m_item.m_text.c_str());
std::string att;