[LyX/master] GUI for new counter inset.

Richard Kimberly Heck rikiheck at lyx.org
Sun May 3 02:37:39 UTC 2020


On 5/2/20 2:41 AM, Jürgen Spitzmüller wrote:
> Am Freitag, den 01.05.2020, 19:04 -0400 schrieb Richard Kimberly Heck:
>>> The "Action" entries are hardly understandable if one does not know
>>> the respective LaTeX commands. 
>> I'm not sure how much we can do there. I've made it "Set Counter",
>> etc.
> I think it should be more explicit, and I would also reorder it. Like:
>
> * Set Counter to
> * Increase Counter by
> * Reset Counter to Zero
> * Save Counter Value for Later Restorage

That one seems a bit long. I think "Save Counter Value" will be clear
enough. Plus there's the tooltip.


> * Restore Saved Counter Value
>
> (Display should be moved to InsetInfo, as said)

For now, I am just going to remove it from InsetCounter. I'll add it to
InsetInfo separately later.


> In the dialog itself, I'd put the value SpinBox right to the action
> combo (without an own label), like:
>
> Action: [Set Counter to] [ 2 | - | + ]
>
> This will make it more clear that the Value entries relate to the spin
> box value.

Yes, that's very good.


>
>> I thought about adding a GUIName to the Counter layout bit.
>>
>> That seem worth doing?
> Not only worth doing. It definitely _needs_ GUI names. 
> bibitem => "Bibliography Entry Number", 
> "itemii" => "Numbered List (2nd Level)" 
> etc.
>
> (also for the button labels).

This should not be very difficult and may well be useful elsewhere.

Riki




More information about the lyx-devel mailing list