General purpose config editor?

Discuss other useful utilities, general computing tips & tricks, Internet resources, etc.
william_ahk
Posts: 496
Joined: 03 Dec 2018, 20:02

General purpose config editor?

26 Mar 2024, 22:34

Oftentimes I have to design a GUI for user settings that doesn't really require much embellishment on the input data. I have used Ini for such applications where the user can edit the config file with any text editor. Although, it becomes unwieldy when it comes to lists and nested entries. Moreover, I do want to have a GUI for better display and easier input than just editing plain text. So I've been wondering if there is something, maybe a software, that is designed for such purposes? I don't mind what data format it is, be it XML, JSON, BSON, and what not.

Something along these lines:
ObfConfigEditor.png
ObfConfigEditor.png (33.86 KiB) Viewed 340 times
GNOME_configuration_editor.png
GNOME_configuration_editor.png (76.95 KiB) Viewed 340 times
list
Posts: 222
Joined: 26 Mar 2014, 14:03
Contact:

Re: General purpose config editor?

30 Mar 2024, 02:30

Rajat @toralf created something rather unique for AutoHotkey https://github.com/lintalist/lintalist/blob/master/include/Func_IniSettingsEditor_v6.ahk

Thread: https://www.autohotkey.com/board/topic/10317-plugnplay-gui-settings-editor-for-your-scripts-version-6/

If you prepare the INI correctly the Gui has help text and options to choose from and you can even hide settings if need be
[SomeSection]
;somesection This can describe the section.
Somekey=SomeValue
;somekey Now the descriptive comment can explain this item.
;somekey More then one line can be used. As many as you like.
;somekey [Type: key type] [format/list] -- see types below
;somekey [Default: default key value]
;somekey [Hidden:]
;somekey [Options: AHK options that apply to the control]
;somekey [CheckboxName: Name of the checkbox control]
Example with a dropbox option https://github.com/lintalist/lintalist/blob/master/include/settings/ColumnWidth.ini

types:
* Text are supported
* File and Folder
* Float and Integer
* Hotkey
* DateTime
* DropDown
* Checkbox

I don't have the Inicreator script, perhaps toralf still has it
william_ahk
Posts: 496
Joined: 03 Dec 2018, 20:02

Re: General purpose config editor?

30 Mar 2024, 10:06

@list Thanks! This seems really interesting, I will use it in one of my projects.

During my research, I found that this sort of control is called PropertyGrid and is well established in the .NET world. I also found this fully functional demo. It doesn't feature a TreeView though.
configeditor.png
configeditor.png (44.57 KiB) Viewed 279 times

Return to “Other Utilities & Resources”

Who is online

Users browsing this forum: No registered users and 32 guests