|
From: Andreas T. <cor...@us...> - 2005-08-05 18:59:53
|
Update of /cvsroot/wxdevcenter/wxDevCenter/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25883/src Modified Files: Application.cpp Plugin.cpp Log Message: Corrections related to unix. Index: Application.cpp =================================================================== RCS file: /cvsroot/wxdevcenter/wxDevCenter/src/Application.cpp,v retrieving revision 1.24 retrieving revision 1.25 diff -C2 -d -r1.24 -r1.25 *** Application.cpp 2 Aug 2005 12:50:54 -0000 1.24 --- Application.cpp 5 Aug 2005 18:59:11 -0000 1.25 *************** *** 427,430 **** --- 427,435 ---- wxDir::GetAllFiles(strPathRoot.BeforeLast(wxT('/')), &arFiles, strPathRoot.AfterLast(wxT('/')) + wxT(".ico"), wxDIR_FILES); + wxBitmap EmptyBitmap(16, 16, 24); + wxIcon EmptyIcon; + EmptyIcon.CopyFromBitmap(EmptyBitmap); + IB.AddIcon(EmptyIcon); + for(unsigned int n=0; n<arFiles.GetCount(); n++) IB.AddIcon(arFiles[n], wxBITMAP_TYPE_ANY); Index: Plugin.cpp =================================================================== RCS file: /cvsroot/wxdevcenter/wxDevCenter/src/Plugin.cpp,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** Plugin.cpp 3 Aug 2005 19:21:22 -0000 1.4 --- Plugin.cpp 5 Aug 2005 18:59:11 -0000 1.5 *************** *** 445,467 **** wxLogDebug("Preload feature descriptions :"); ! dir.Open(Application::GetApp().GetConfig().GetFeaturesPath()); ! bCont = dir.GetFirst(&str, wxEmptyString, wxDIR_DIRS); ! while(bCont) { ! wxLogDebug(wxT(" -> %s"), str.GetData()); ! PreLoadFeature(str); ! bCont = dir.GetNext(&str); } ! wxLogDebug("Preload plugin descriptions :"); ! dir.Open(Application::GetApp().GetConfig().GetPluginsPath()); ! bCont = dir.GetFirst(&str, wxEmptyString, wxDIR_DIRS); ! while(bCont) { ! wxLogDebug(wxT(" -> %s"), str.GetData()); ! PreLoadPlugin(str); ! bCont = dir.GetNext(&str); } - } --- 445,470 ---- wxLogDebug("Preload feature descriptions :"); ! if(dir.Open(Application::GetApp().GetConfig().GetFeaturesPath())) { ! bCont = dir.GetFirst(&str, wxEmptyString, wxDIR_DIRS); ! while(bCont) ! { ! wxLogDebug(wxT(" -> %s"), str.GetData()); ! PreLoadFeature(str); ! bCont = dir.GetNext(&str); ! } } ! wxLogDebug("Preload plugin descriptions :"); ! if(dir.Open(Application::GetApp().GetConfig().GetPluginsPath())) { ! bCont = dir.GetFirst(&str, wxEmptyString, wxDIR_DIRS); ! while(bCont) ! { ! wxLogDebug(wxT(" -> %s"), str.GetData()); ! PreLoadPlugin(str); ! bCont = dir.GetNext(&str); ! } } } |