macgitver/macgitver — pull request #29 by scunz (2012-09-30 12:40:41+00:00)
Title: WIP: Create a Config Generator

@antis81,
I want this change reviewed from the very beginning. Not sure if it is worth the work at all.

What I want to do, is to reduce the configuration mess that any decently complex application involves. This is partly inspired by KDE.

### The current situation is
LibConfig maintains a `QSettings` object where anybody can read and write. The `ConfigUser` class provides an observer-pattern style tool that lets the user inherit `ConfigUser` and specify a sub-tree of the `QSettings` object we're interested in. This is nice, as long as config is used only in one place (Which is actually never true: Config-Dialog and Config-Usage are the minimum in theory).

### My goal is
Write down the configuration entries in an XML File. Maybe even amend them with documentation. An XML transformer will read that and create a singleton class out of it. This singleton associates itself with the global configuration from LibConfig and implements a `ConfigUser` of its own. It provides simple static getters and setters for every value defined in XML.

What do you think about this?