>>>>> "Allan" == Allan Rae <[EMAIL PROTECTED]> writes:

Allan> This is true only until we get our bufferview widget into
Allan> gui-independent form then we can create a small buffer in any
Allan> dialog (remember this was proposed for the find/replace dialog)
Allan> that will accept any LyX content.  Of course, this is a long
Allan> way off and may be a very interesting challenge.

Do you really think this is something we can have in a reasonable
timeframe? 

Allan> How about right click on the paragraph/inset in question gives
Allan> a context-sensitive menu of your options like: -
Allan> paragraph-extra popup - optional arguement inset

Allan> and so on.  This cs-menu can be set from the same sorts of
Allan> details in the layout files.  In fact we could even enforce
Allan> which optional arguements are set: say a command takes two
Allan> optional arguements and the second can only be set if the first
Allan> is also set that sort of thing.

I have a problem with this optional argument popup, since it is too
related to the latex translation of things. The user does not care
what LaTeX does. I think we will be forced for now to hardcode a few
things instead of defining the number of arguments in the layout
file. 

Note that I am talking of things we could do now, not of things we'd
like to do if we had infinite time...

Allan> Additionally if there is only one option we do that and don't
Allan> present a menu.  There is also a special case for a selection:
Allan> present a menu with cut, copy, paste?, LayoutCharacterPopup,
Allan> "Apply custom char setting" or whatever else may be appropriate
Allan> like spellcheck or "Open figure editor" for instance.

I agree that we should have correct contextual menus.

Allan> As an alternative for the last two items in the list: How about
Allan> having a two level inset for cite: if you open the cite inset
Allan> you can edit the list of references in the cite popup.  Have a
Allan> second button for the optional arguement embedded in the cite
Allan> insets button that expands like a footnote for editting as LyX
Allan> content.  By button I mean the inset marker, eg. [foot], that
Allan> we draw in the bufferview.

Yes. We could have a checkbox in the popup to know whether we want the
optional text or not. However, from the kernel point of view, I do not
know how feasible this is: this object will be both an inset and a
float.


Allan> For the URL inset and probably the Label inset as well just
Allan> eliminate the popup and edit directly in the inset in the
Allan> bufferview.

Label does not need to be edited in the bufferview, since it is not
LaTeX text.

Allan> P.S.  I also think it'd be sweet to upgrade the inset markers
Allan> to those used in the old 1.1.x as early as possible in the new
Allan> 1.1.  And add the ERT inset also.  Cosmetic features perhaps
Allan> but it might encourage people to use the new series earlier
Allan> since it'd be prettier and less scary looking.

We'd have to port the painter for that, right?

JMarc

Reply via email to