> at the moment I am creating a plugin for QtCreator to display compile
>  warnings and errors (tasks) inline. See attached screenshot.
Looks quite nice.
 
> I am trying to do this by only adding new code to QtCreator in form of a
>  QtCreator plugin. There are however several things that I could not
>  accomplish without little changes to QtCreators code itself:
Well, if there's a missing interface, method, do speak up. Don't try to hack 
around it, we quite often can add more stuff.

> To get a list of all "tasks" I had to extend the BuildManager so that I am
>  able to query the BuildManager to get a List of ProjectExplorer::Tasks. Is
>  there a way to get this list of tasks in a plugin via a public Interface?
It seems that's currently not possible. 
 
> At the moment I connect the BuildManager::tasksChanged() signal to a slot
>  where I query the BuildManager to get all the tasks. It would be nice if
>  there was a signal like BuildManager::taskAdded(const
>  ProjectManager::Task&).
Yes, such a signal sounds reasonable.

> If there is no such Interface at the moment, would it be possible for you
>  to extend the BuildManager and add such an interface?
Well, I suppose you could create a merge request with the changes you need. 

E.g. currently there are two cases when the build issues list is cleared.
a) When you start a new build
b) Pressing the clear all button in the build issues list

I don't know whether b) should also clear the editor of all inline markers. (I 
suppose it should.) You probably need signals for that too then. 



daniel
_______________________________________________
Qt-creator mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt-creator

Reply via email to