Page 1 of 1
General purpose config editor?
Posted: 26 Mar 2024, 22:34
by william_ahk
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](./download/file.php?style=7&id=25378&sid=623736b707024a085c4473e28f177565)
- ObfConfigEditor.png (33.86 KiB) Viewed 762 times
![GNOME_configuration_editor.png](./download/file.php?style=7&id=25377&sid=623736b707024a085c4473e28f177565)
- GNOME_configuration_editor.png (76.95 KiB) Viewed 762 times
Re: General purpose config editor?
Posted: 30 Mar 2024, 02:30
by list
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
Re: General purpose config editor?
Posted: 30 Mar 2024, 10:06
by william_ahk
@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](./download/file.php?style=7&id=25429&sid=623736b707024a085c4473e28f177565)
- configeditor.png (44.57 KiB) Viewed 701 times