cginternals / libzeug

deprecated: C++ sanctuary for small but powerful and frequently required, stand alone features.
MIT License
16 stars 13 forks source link

Add an annotation to make properties invisible in GUI #18

Open rlux opened 10 years ago

mjendruk commented 10 years ago

is this still needed? you could just remove the property from the group.

sbusch42 commented 10 years ago

Yes, it's still needed. Sometimes, we want a property to be accessible, e.g. via scripting, but not visible in the UI (e.g., for debug purposes). This should just be a hint to the UI, not to show a widget for the property

mjendruk commented 10 years ago

you could put the property in two different groups. the first one is used for the ui, the second could be for scripting.

sbusch42 commented 10 years ago

Yes, I could do that, but that would be overly complicated. I organize properties in a way that they belong to an object, and then I just pass that object to the UI, the scripting etc. I don't want to have to maintain different sets of property groups for GUI and scripting. Please keep in mind that there are different styles of using properties here ...