[RFC] KDevelop configuration setup

Andreas Pakulat apaku at gmx.de
Mon Apr 2 17:02:22 UTC 2007


On 02.04.07 11:09:40, Matt Rogers wrote:
> On Friday 30 March 2007 17:10, Andreas Pakulat wrote:
> > On 27.03.07 12:09:48, Matt Rogers wrote:
> > > The project specific configuration returned by IProject should be the
> > > local file. As mentioned on the wiki, there should be little to add
> > > to the global project configuration file after the project is
> > > created. If something in the global file needs to be changed, then we
> > > should provide separate ways to do that, IMHO.
> >
> > One question still: Should the project configurations of the "other
> > developers" be changed accordingly? That would create quite some
> > complexity in the whole logic.
> >
> > In case I'm unclear: Lets say we have a project P, with the following
> > project config file
> >
> > ProjectName=P
> > ProjectManager=KDevQMakeManager
> > IndenationConfig=CStyle
> >
> > Now Developer A and Developer B are checking out the project from vcs
> > and opening it, this created <projectdir>/.kdev4/<projectname>.kdev4
> > with the values from above. No both can change any of the settings and
> > saving would save the in the hidden file.
> >
> > Lets say "the Boss" decides they should use IndenationConfig=OtherStyle
> > and changes the P.kdev4 file. Both developers checkout the new file, but
> > currently their local hidden file takes precedence. They'd need to go to
> > the configuration dialog and select "Use defaults" for the indentation
> > widget.
> 
> And this is the way it should be.

I do have some code here that hopefully works by overriding
usrSetDefaults and usrUseDefaults in KConfigSkeleton. I can't really
test it atm, because KConfigGroup has no support for KUrl and I have no
idea how to add it, because QVariant::userType() returns QVariant::Url
for a KUrl-wrapping QVariant. Which is wrong, it should return a
different value (IIRC sth. like 271).

Andreas

-- 
Someone is speaking well of you.




More information about the KDevelop-devel mailing list