Re: Inset::editable and inset-settings

2009-04-22 Thread Vincent van Ravesteijn
Jean-Marc Lasgouttes schreef: Le 18 avr. 09 à 19:48, Vincent van Ravesteijn a écrit : Is the attached ok ? It removes the EDITABLE enum, and makes the editable() function return a bool. A lot of editable() functions were not necessary anymore when they have a hasSettings() functions. I pl

Re: Inset::editable and inset-settings

2009-04-22 Thread Jean-Marc Lasgouttes
Le 18 avr. 09 à 19:48, Vincent van Ravesteijn a écrit : Is the attached ok ? It removes the EDITABLE enum, and makes the editable() function return a bool. A lot of editable() functions were not necessary anymore when they have a hasSettings() functions. I planned to answer at some point

Re: Inset::editable and inset-settings

2009-04-18 Thread Jürgen Spitzmüller
Vincent van Ravesteijn wrote: >Is the attached ok ? Is strikes me a good step. I detected one failure only: > Index: src/insets/InsetIndex.h > === > --- src/insets/InsetIndex.h (revision 29316) > +++ src/insets/InsetIndex.h (

Re: Inset::editable and inset-settings

2009-04-18 Thread Vincent van Ravesteijn
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()? Is the attached ok ? It removes the EDITABLE enum, and makes the editable() function return a bool. A lot of editable() function

Re: Inset::editable and inset-settings

2009-04-17 Thread Jean-Marc Lasgouttes
Vincent van Ravesteijn writes: >> So the situation might be bit more complicated than I thought. > Yes, at least it is very unclear. At first sight I'd have no clue what > "isActive()" would mean, and wat IS_EDITABLE is and so forth.. If you can think of a good separation of meanings, now would

Re: Inset::editable and inset-settings

2009-04-16 Thread Vincent van Ravesteijn
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

Re: Inset::editable and inset-settings

2009-04-16 Thread Jean-Marc Lasgouttes
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 t

RE: Inset::editable and inset-settings

2009-04-16 Thread Vincent van Ravesteijn - TNW
>>> 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

Re: Inset::editable and inset-settings

2009-04-16 Thread Jean-Marc Lasgouttes
Vincent van Ravesteijn writes: > Richard Heck schreef: >> Vincent van Ravesteijn wrote: >>> I propose the following to finish up the recoding of >>> LFUN_INSET_SETTINGS. >>> >>> - The getStatus() handling of LFUN_INSET_SETTINGS is handled in >>> Inset and it is now checked whether the argument (if

Re: Inset::editable and inset-settings

2009-04-15 Thread Jürgen Spitzmüller
Vincent van Ravesteijn wrote: > Ok ? Could you wait just a bit with this until my indices patch is in? Jürgen

Re: Inset::editable and inset-settings

2009-04-15 Thread Vincent van Ravesteijn
Richard Heck schreef: Vincent van Ravesteijn wrote: I propose the following to finish up the recoding of LFUN_INSET_SETTINGS. - The getStatus() handling of LFUN_INSET_SETTINGS is handled in Inset and it is now checked whether the argument (if one) corresponds to the current inset. - To dec

Re: Inset::editable and inset-settings

2009-04-15 Thread Richard Heck
Vincent van Ravesteijn wrote: I propose the following to finish up the recoding of LFUN_INSET_SETTINGS. - The getStatus() handling of LFUN_INSET_SETTINGS is handled in Inset and it is now checked whether the argument (if one) corresponds to the current inset. - To decide the status we need a

Inset::editable and inset-settings

2009-04-15 Thread Vincent van Ravesteijn
I propose the following to finish up the recoding of LFUN_INSET_SETTINGS. - The getStatus() handling of LFUN_INSET_SETTINGS is handled in Inset and it is now checked whether the argument (if one) corresponds to the current inset. - To decide the status we need an updated editable() mechanism