compilation fixes for the wxListItemAttr

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4823 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
1999-12-04 22:57:59 +00:00
parent bdc72a2268
commit aaa37c0d23
3 changed files with 283 additions and 290 deletions

View File

@@ -244,14 +244,13 @@ void wxFileData::SetNewName( const wxString &name, const wxString &fname )
void wxFileData::MakeItem( wxListItem &item )
{
item.m_text = m_name;
item.m_colour = wxBLACK;
if (IsExe()) item.m_colour = wxRED;
if (IsDir()) item.m_colour = wxBLUE;
if (IsDir()) item.m_image = 0; else item.m_image = -1;
if (IsExe()) item.SetTextColour(*wxRED);
if (IsDir()) item.SetTextColour(*wxBLUE);
item.m_image = IsDir() ? 0 : -1;
if (IsLink())
{
wxColour *dg = wxTheColourDatabase->FindColour( "MEDIUM GREY" );
item.m_colour = dg;
item.SetTextColour(*dg);
}
item.m_data = (long)this;
}