KConfig XT / kconfig_compiler

Waldo Bastian bastian at kde.org
Wed Dec 1 11:41:37 GMT 2004


On Wednesday 01 December 2004 12:05, Stefan Nikolaus wrote:
> > <stefan.nikolaus at stuco.uni-oldenburg.de> geschrieben:
> >> What about defining default values for the parameters passed to the
> >> configuration object. Some of the member functions already define
> >> default group names.
> >> For each member function that takes a variable group name, we define a
> >> parameter and a corresponding group in the .kcfg file.
>
> For kdelibs/kdeui this idea will end up with six parameters. Rethinking
> this, it could be confusing. So splitting the configuration object seems
> to be the only way to handle this issue. Or has anyone another idea?
>
> Another question:
> In kdeui/kdockwidget.cpp, e.g. at line 2527, there are also entry names
> that are variable. How do I handle these? kconfig_compiler does not
> support the generation of entry names with parameters passed to the
> configuration object.

Two possibilities:
1) kconfig_compiler learns how to do that
2) The entry itself takes a parameter.

BTW I don't think the current configuration code generated by kconfig_compiler 
is optimal for the kind of usage done by kdockwidget.cpp and kmainwindow.cpp.
The KConfigSkeleton object basically provides for a storage object for the 
settings, while KMainWindow and KDockWidget would rather need some sort of 
mapping object that facilitates mapping the properties of various objects 
(toolbars, windows, etc) to the configuration file.

E.g. if you have 10 windows that you have to store the properties of, it 
shouldn't be needed to create 10 configuration objects that store these 
poroperties, it should be enough to have 1 mapping object that can map the 
properties to the configuration file.

Cheers,
Waldo
-- 
bastian at kde.org   |   Free Novell Linux Desktop 9 Evaluation Download
bastian at suse.com  |   http://www.novell.com/products/desktop/eval.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20041201/219234f5/attachment.sig>


More information about the kde-core-devel mailing list