The configuration compiler

    cornelius schumacher's picture
    2003
    29
    Jul

    kdepim/libkdepim - (KDE CVS Commits)



    This is going to be something really cool. I now have an example configuration dialog which is automatically generated from an XML description of the configuration options. This includes an automatically generated API to the configurations options for convenient access by the application, it will support all the fancy config stuff like immutable entries etc., and it provides a configuration dialog to edit the options without needing to write any additional code.



    The best thing: It will be incredibly simple for a developer to use this. Drop the XML description of the configuration options into the source code directory, add custom code, if necessary, and you are done. You will get the configuration dialog for your application for free.



    It also fits very nicely into the Qt/KDE framework along the lines of XML-GUI and uic. cfgc (the configuration compiler) will be for configuration what uic is for user interface. Maybe it might even make sense to add a configuration designer to provide a GUI for editing the configuration descriptions. Let's see...

    Comments

    Comment viewing options

    Select your preferred way to display the comments and click "Save settings" to activate your changes.
    cornelius schumacher's picture

    Kst

    Sorry, what is Kst?

    geiseri's picture

    how is this different

    from the kautoconfig, afaik it does that already. draw the ui file in designer, name the controls and pop it in.

    i know we have 3 cd burning apps, but lets not pull a microsoft here with the config guis

    mkretz's picture

    KAutoConfig depends on widgets

    From the docs of KAutoConfig: "The name of the widget determines the name of the setting." What I want to get at is, that it depends on widgets. What if I want to conveniently work with config files without a GUI?
    KPrefs is a more generic approach to easing the task to work with KConfig. KAutoConfig should be a layer above that.

    Comment viewing options

    Select your preferred way to display the comments and click "Save settings" to activate your changes.