hi,<br>we discussed with milian about moving the default renameFile/Folder to the default iprojectfilemanager implementation.<br><br>the code would look like that:<br><br>bool IProjectFileManager::renameFile(ProjectFileItem* it, const KUrl& newUrl)<br>
{<br> KIO::CopyJob* job=KIO::move(it->url(), newUrl);<br> bool ret=KIO::NetAccess::synchronousRun(job, 0);<br> <br> if(ret) {<br> it->project()->removeFromFileSet(IndexedString(it->url()));<br>
it->setText(newUrl.fileName(KUrl::IgnoreTrailingSlash));<br> it->setUrl(newUrl);<br> it->project()->addToFileSet(IndexedString(it->url()));<br> }<br> return ret;<br>}<br><br>The problem is that if we use it, we have to make kdevprojectinterface to link against language.<br>
<br>Do we want that?<br><br>thanks,<br>Aleix<br>