UI-less kdevplatform

Alexander Dymo dymo at ukrpost.ua
Thu Aug 7 11:14:09 UTC 2008


On Tuesday 05 August 2008 05:18:56 Aleix wrote:
> Hi list!
> As some of you know, these days I've been working on an application
> using kdevplatform (more precisely the duchain).
>
> As you might imagine, I don't need a UI application for that, so I've
> been playing with the shell to be able to instanciate it without
> relying on the graphics.

I think we need to find another solution to run platform app without the ui. 
Your implementation creates two possible cases - shell with ui and shell 
without ui. You have the hasUI() method to check for that and use it in the 
shell. But now all our code _has_ to do this check as well - all our plugins, 
etc have to check hasUI() before they call core()->uiController()-
>something(). This is IMHO not acceptable.

I think the easiest way would be to just run the application without showing 
the mainwindow.





More information about the KDevelop-devel mailing list