Here is an idea: I have a list of parameters (name, type, value maybe something more – regex for input), grouped by sections. They are stored in xml-file (for example… maybe other format). I want to make a module, that builds “standard-looking” settings dialog rely on this file. Like this

Sections names should be on the left as a list, and parameters, reffered to selected section, are to the right: name as label and value as some input field, wich type depends on type of parameter (lineEdit for text, spinEdit – for numbers, checkBox – for booleans, etc.)
Finally a question: is there “ready-for-use” dialog for my purposes ?
Thank you.
Here is an idea: I have a list of parameters (name, type, value maybe
Share
I searched some time and didn’t find any decision. That’s why I decided to write it myself.
Here’s a little description:
1 Main concept
If your program has some parameters, that you want to be editable from the GUI, you should just write xml-file in proper format, create an instance of class Config, call slot Config::show() and finally ask for necessary parameter via Config::get()
2 Usage of class Config
You can create it everywhere you wish. You can give an xml-file name/path either in c-tor or in Config::load() method. You can obtain any parameter in any place of your program by
calling Config::get() method. Example of class Config’s usage:
3 Restrictions
Config need QtCore, QtGui and QtXml. It uses C++11’s features.
4 Xml-file format
Sorry, but I’m too lazy to write full description, so I’ll write a full example with all features. I think, that you’ll understand them all 🙂
here is a picture

and here is a usage of Config with this file
And finally, can you tell me the best way to publish source code ?
Thank you.
UPD: You can find it here https://sourceforge.net/projects/guisettings/