]> git.lyx.org Git - lyx.git/commitdiff
rename LFUNs math-nonumber and math-number to what they really do,
authorUwe Stöhr <uwestoehr@web.de>
Fri, 11 Jan 2008 22:45:19 +0000 (22:45 +0000)
committerUwe Stöhr <uwestoehr@web.de>
Fri, 11 Jan 2008 22:45:19 +0000 (22:45 +0000)
fixes bug 2608

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22496 a592a061-630c-0410-9148-cb99ea01b6c8

RELEASE-NOTES
lib/bind/math.bind
lib/ui/stdmenus.inc
src/LyXAction.cpp
src/lfuns.h
src/mathed/InsetMathHull.cpp

index 82e8a4b9a5bbc61c245a5b9f8798d22c278195eb..6932682ed31c1b4fcb62d05cac685ae757fa65d4 100644 (file)
@@ -33,6 +33,12 @@ Some of the LyX functions have changed names:
 - The function LFUN_WORDS_COUNT, "words-count", has been replaced by
   LFUN_STATISTICS, "statistics", which counts more than words.
 
+- The function LFUN_MATH_NUMBER, "math-number", has been renamed to
+  LFUN_MATH_NUMBER_TOGGLE.
+
+- The function LFUN_MATH_NONUMBER, "math-nonumber", has been renamed to
+  LFUN_MATH_NUMBER_LINE_TOGGLE.
+
 
 The following new LyX functions have been introduced:
 
index a4f55e74060e6b29cab67b6068767012a3dce01c..f9b269fefd423d4d097fa05cdc246fc061d3584e 100644 (file)
@@ -51,8 +51,8 @@
 \bind "M-m S-L space"          "math-limits empty"
 
 
-\bind "M-m n"                  "math-number"
-\bind "M-m S-N"                        "math-nonumber"
+\bind "M-m n"                  "math-number-toggle"
+\bind "M-m S-N"                        "math-number-line-toggle"
 \bind "M-m 8"                  "math-insert \infty"
 
 \bind "M-m o 1"   "self-insert \#1"
index 1ed7123e891c42ff7ea7875736f5bcec00a57f6e..d53acd653cb890721e1d87c1f173ba3291c1fddf 100644 (file)
@@ -183,8 +183,8 @@ Menuset
        End
 
        Menu "edit_math"
-               Item "Number whole Formula|N" "math-number"
-               Item "Number this Line|u" "math-nonumber"
+               Item "Number whole Formula|N" "math-number-toggle"
+               Item "Number this Line|u" "math-number-line-toggle"
                Submenu "Change Limits Type|L" "edit_math_limits"
                Submenu "Macro Definition" "edit_math_macro_definition"
                Separator
index 221564e61ad248a348a7cecb5eef059ba724dd52..2a440d571222f9bc0783669f6851c428862294b0 100644 (file)
@@ -263,8 +263,8 @@ void LyXAction::init()
                { LFUN_MATH_IMPORT_SELECTION, "math-import-selection", Noop, Math },
                { LFUN_MATH_MATRIX, "math-matrix", Noop, Math },
                { LFUN_MATH_MODE, "math-mode", Noop, Math },
-               { LFUN_MATH_NONUMBER, "math-nonumber", Noop, Math },
-               { LFUN_MATH_NUMBER, "math-number", Noop, Math },
+               { LFUN_MATH_NUMBER_LINE_TOGGLE, "math-number-line-toggle", Noop, Math },
+               { LFUN_MATH_NUMBER_TOGGLE, "math-number-toggle", Noop, Math },
                { LFUN_MATH_EXTERN, "math-extern", Noop, Math },
                { LFUN_MATH_SIZE, "math-size", Noop, Math },
                { LFUN_MATH_MACRO_UNFOLD, "math-macro-unfold", ReadOnly | SingleParUpdate, Math },
index 45ba19b174a38bb9a5a3cfd0fcba1c82f169e170..fdf5f2219ba18a8368d0dcd2993276b18e7f226b 100644 (file)
@@ -273,21 +273,21 @@ enum kb_action {
        LFUN_MATH_DISPLAY,              // Alejandro 180696
        LFUN_MATH_MODE,                 // Alejandro 040696
 /**
- * LFUN_MATH_NUMBER
- * \li Action: Enable numbering of the current formula.
+ * LFUN_MATH_NUMBER_TOGGLE
+ * \li Action: Toggles numbering of the current formula.
  * \li Notion: Must be in display formula mode.
- * \li Syntax: math-number
+ * \li Syntax: math-number-toggle
  * \li Origin: Alejandro 4 Jun 1996
  */
-       LFUN_MATH_NUMBER,
+       LFUN_MATH_NUMBER_TOGGLE,
 /**
- * LFUN_MATH_NONUMBER
- * \li Action: Disable numbering of the current formula.
+ * LFUN_MATH_NUMBER_LINE_TOGGLE
+ * \li Action: Toggles numbering of the current formula line.
  * \li Notion: Must be in display formula mode.
- * \li Syntax: math-nonumber
+ * \li Syntax: math-number-line-toggle
  * \li Origin: Alejandro 18 Jun 1996
  */
-       LFUN_MATH_NONUMBER,
+       LFUN_MATH_NUMBER_LINE_TOGGLE,
        LFUN_MATH_SIZE,                 // Alejandro 150896
        // 110
        LFUN_MATH_MACRO,                // ale970510
index 3560d5a2eda6a21dcaca4b3e6b4f167429cfdcf5..c1b99349de8fc43fba7788b129fff325f8305b89 100644 (file)
@@ -1050,7 +1050,7 @@ void InsetMathHull::doDispatch(Cursor & cur, FuncRequest & cmd)
                InsetMathGrid::doDispatch(cur, cmd);
                break;
 
-       case LFUN_MATH_NUMBER: {
+       case LFUN_MATH_NUMBER_TOGGLE: {
                //lyxerr << "toggling all numbers" << endl;
                cur.recordUndoInset();
                bool old = numberedType();
@@ -1064,7 +1064,7 @@ void InsetMathHull::doDispatch(Cursor & cur, FuncRequest & cmd)
                break;
        }
 
-       case LFUN_MATH_NONUMBER: {
+       case LFUN_MATH_NUMBER_LINE_TOGGLE: {
                cur.recordUndoInset();
                row_type r = (type_ == hullMultline) ? nrows() - 1 : cur.row();
                bool old = numbered(r);
@@ -1171,13 +1171,13 @@ bool InsetMathHull::getStatus(Cursor & cur, FuncRequest const & cmd,
                // we handle these
                status.enabled(true);
                return true;
-       case LFUN_MATH_NUMBER:
+       case LFUN_MATH_NUMBER_TOGGLE:
                // FIXME: what is the right test, this or the one of
                // LABEL_INSERT?
                status.enabled(display());
                status.setOnOff(numberedType());
                return true;
-       case LFUN_MATH_NONUMBER: {
+       case LFUN_MATH_NUMBER_LINE_TOGGLE: {
                // FIXME: what is the right test, this or the one of
                // LABEL_INSERT?
                status.enabled(display());