Le 16 avr. 09 à 17:07, Vincent van Ravesteijn - TNW a écrit :
Can I just suggest that these be changed e.g. to IN_DIALOG and
ON_SCREEN, if that's more or less what they mean? I've never been
able to remember what EDITABLE vs HIGHLY_EDITABLE means.
That sounds like a good suggestion.
It seems to me that handling too booleans corresponding to isActive
(because this name is already used) and hasDialog is much simpler
than this flag thing.
So what's the difference between isActive() and editable() ==
HIGHLY_EDITABLE ? Might there be a difference for closed
InsetCollapsables ?
Not really. A collapsable changes its editability when collapsed.
Or so I think :) But now that I think of it, I am not really sure.
For example, a closed insetcollapsable is just a button for the sake
of cursor
movement, but it is descendable when it comes to find&replace, for
example.
So the situation might be bit more complicated than I thought.
If I add the hasDialog() function, then I should/could remove the
editable() function, right ?
Yes. And you could maybe rename the function to hasSettings()?
JMarc