Run Configurations API and GUI

Andreas Pakulat apaku at gmx.de
Sat Apr 4 13:05:21 UTC 2009


Hi,

as I said I'm starting on run configs (unfortunately slower than I
expected) framework. Right now I'm a little stuck as to how to best
integrate support for debuggers/memory-checkers/profiling tools into all
this.

My current API allows to register a config-type with the platform, the
type has exactly 1 method (well also a name) which creates a kjob that
will execute a given run config (see the attached headers). A run
configuration will reference its type and basically contains a
kconfiggroup which can be used by the GUI widgets to store settings and
which is used then by the type's createRunJob method to read out the
settings needed.

The gui part is currently a list of factories, that can create special
QWidget subclasses, associated to a config type.

This works perfectly to supply a custom method of running something (say
starting a webbrowser on a remote url). However it completely breaks
down when one wants to use the same configuration, but for a
debugger/memchecker/... 

The problem is that those would need to supply their own config type to
be able to override the createRunJob method. That in turn means that
you'd possibly have two configs in the GUI, one for running and another
for debugging.

-- 
Are you ever going to do the dishes?  Or will you change your major to biology?




More information about the KDevelop-devel mailing list