Good morning:
I've done a second commit with:
- installation of MatPropDict.xml
- fixes
- recovering doc
https://github.com/caceres/FreeCAD/comm ... 1f6de9e411
The result is more or less convenient, but I see one problem:
when a user is playing with the MaterialEditor and edit a property which is not a QLineEdit, later the property remains with the default value which can not be eliminated by the user. For instance the Gui::PrefColorButton (with a default grey) or Gui::PrefDoubleSpinBox (with a default cero)
- MaterialEditor.png (103.46 KiB) Viewed 17204 times
I'm thinking about the third commit with a new button 'Delete value'
Besides, I'm thinking that the line edit to add and remove custom properties must disappear, facilitating a popup dialog where the user could edit its custom property with Name, Type, Unit, etc. But I understand that this modification requires to improve FreeCAD material format. To me, the ini-file format isn't enough to store a really user custom property. I propose to expand the card format to xml, maintaining the ability to read a write config file.
Thank everyone
EDIT: the button 'Delete property' could make the function of 'Delete value'. Less stuff
EDIT:
yorik wrote: ↑
Mon Jun 11, 2018 3:36 pm
That is easy for the "fixed" properties (we know their type), but when the user adds custom properties, I'm not sure. Ideally there should be a way to specify the property type. Maybe we need one more column that says the type?
For me with the above-mentioned popup dialog, and maintaining hidden the columns of Type, Unit, etc