Hi Eike, Eike Ziller, Friday 19 June 2009: > On Jun 19, 2009, at 1:47 PM, ext Frank Siegert wrote: > > Hi creators, > > > > Is there any way to access the file (name+path) which is currently > > active in the editor from the GenericMakeStep or GenericProject > > class? > > Core::EditorManager::instance()->currentEditor() > (->file()->fileName(), that includes the path)
Thanks, that's exactly what I was looking for! The replacement is working fine now, at least in a hackish way, which is good enough for my local working copy ;) (see below) > > So I thought implementing such a replacement in GenericMakeStep::init > > would be the easiest and most local solution to the problem. But now > > I can't figure out how to access the currently active file from > > there. > > Ah, why "most local"? > /me already sees the emails that these variables should also be used > here-and-there. You might be right, but I am not familiar with qmake/cmake-based projects, so I'm not sure whether this flexibility would be of any use to them? Also, to implement this in a proper way, I'd have to make sure that I identify the file name components in a more platform-independent way, i.e. not by looking for the last forward-slash. Here I was hoping that the IFile object could take care of that abstraction, but it seems to really only know about the full filename string? > BTW, you can find us on irc://irc.freenode.org/#qt-creator :) Thanks, I'll try that (again) when I'm not behind a restrictive firewall :) All the best, Frank _______________________________________________ Qt-creator mailing list [email protected] http://lists.trolltech.com/mailman/listinfo/qt-creator
