mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-29 12:48:33 +00:00
c49cd69998
From: "Joel A. Kulesza" <jkulesza@gmail.com> Date: Mon, 24 Oct 2016 17:37:58 -0600 Subject: [PATCH] Add "Swap & Reverse" to math delimiter dialog When "Keep matched" is unchecked, a button becomes enabled to "Swap & Reverse" the left and right delimiters. This is expected to be of use with line-wrapped equations featuring one or more set of delimiters that break across the lines. When "Keep matched" is checked, the button is visible but disabled. The most common use case is expected to be the user entering a pair of unmatched delimiters on the first line of an equation (e.g., "(" and "(None)"), entering the inner text, going to the next line, and inserting the opposite set of delimiters (e.g., "(None)" and ")"). This button will negate the need to find the correct corresponding combination. However, it relies on the dialog's memory of the previous unmatched set. This change addresses Ticket #10457 ----------- Modifications by spitz to the original patch: * Only enable the button if an unmatched pair is selected * Consider l7n when locating the string "(None)" * Add an accelerator and a tooltip to the dialog * Simplify the code a bit