runpreferences & kconfig question

Vladimir Prus ghost at cs.msu.su
Sun Dec 7 14:33:43 UTC 2008


[adding list to CC]

On Sunday 07 December 2008 17:25:09 Aleix Pol wrote:
> On Sun, Dec 7, 2008 at 2:33 PM, Vladimir Prus <ghost at cs.msu.su> wrote:
> 
> >
> > Aleix,
> >
> > I am looking at
> >
> >        kdevplatform/shell/settings/runpreferences/runconfig.h
> >
> > and it seems like that file is the output from kconfig_compiler,
> > which is then further edited manually.
> >
> > 1. Am I right that the only point of manual editing is to
> > add a second constructor, that takes 'groupPrefix', and futher
> > does this:
> >
> >        setCurrentGroup( groupPrefix+QLatin1String( "-Run Options" ) );
> >
> > ?
> 
> Yes, kconfig_compiler classes doesn't let me change the prefix, that's why i
> created runconfig.h/cpp
> 
> >
> >
> > 2. I don't see runconfig.kcfg anywhere -- did you commit it?
> 
> There is no kcfg because it is not being used.

How can we then add a new option, should such need arise in future?

> > 3. Did you have any specific plan how to clean this up? I'm thinking
> > that we can create LaunchConfigSkeleton class, derived from
> > ProjectConfigSkeleton and specify that inside runconfig.kcfg. Any reason
> > that would not work?
> 
> Feel free to create this skeleton, but well, now it is working i think so
> maybe you want to put work on smth else

I expect a bunch of custom UI pages to be created for debugger configuration
in future, so better solution that editing output of kconfig_compiler is
desired.

- Volodya




More information about the KDevelop-devel mailing list