]> git.lyx.org Git - features.git/commitdiff
small fixes
authorJohn Levon <levon@movementarian.org>
Fri, 6 Sep 2002 01:41:01 +0000 (01:41 +0000)
committerJohn Levon <levon@movementarian.org>
Fri, 6 Sep 2002 01:41:01 +0000 (01:41 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5214 a592a061-630c-0410-9148-cb99ea01b6c8

src/ChangeLog
src/LyXAction.C
src/MenuBackend.C
src/lyxfunc.C
src/undo_funcs.C

index aa8d7506f66677937350881aaa118dd2a52a2ef4..5e2b7501c751b1d800b4f460ef1187c53032d51e 100644 (file)
@@ -1,3 +1,13 @@
+2002-09-06  John Levon  <levon@movementarian.org>
+
+       * LyXAction.C: tooltips for sub/superscript
+
+       * MenuBackend.C: a bit more verbose
+       * lyxfunc.C: tiny clean
+
+       * undo_funcs.C: document undo_frozen 
 2002-09-05  Lars Gullik Bjønnes  <larsbj@gullik.net>
 
        * counters.C (Counters): add missing algorithm counter.
index d739cc4ac0bde40a05de4d9183817a65c0e0b8cd..b42c04528ccf996a1df6424840a6b188bd4cc298 100644 (file)
@@ -286,8 +286,8 @@ void LyXAction::init()
                { LFUN_GREEK_TOGGLE, "math-greek-toggle", "", Noop },
                { LFUN_INSERT_MATH, "math-insert",
                  N_("Insert math symbol"), Noop },
-               { LFUN_SUBSCRIPT, "math-subscript", "", Noop },
-               { LFUN_SUPERSCRIPT, "math-superscript", "", Noop },
+               { LFUN_SUBSCRIPT, "math-subscript", N_("Add subscript"), Noop },
+               { LFUN_SUPERSCRIPT, "math-superscript", N_("Add superscript"), Noop },
                { LFUN_MATH_LIMITS, "math-limits", "", Noop },
                { LFUN_MATH_MACRO, "math-macro", "", Noop },
                { LFUN_MATH_MUTATE, "math-mutate", "", Noop },
index 055924da53c899d5870954ebce5bccbea5d5315e..f3f7fff25a51573932fba928bdf8f15504efe7ba 100644 (file)
@@ -697,6 +697,8 @@ Menu const & MenuBackend::getMenu(string const & name) const
 {
        const_iterator cit = find_if(begin(), end(),
                                     lyx::compare_memfun(&Menu::name, name));
+       if (cit == end())
+               lyxerr << "No submenu named " << name << endl;
        lyx::Assert(cit != end());
        return (*cit);
 }
index 6a22b5531e29df4328798807a9eb31e00b447d83..17ef4856dddea88bcc7fb115d25708ebc1da996f 100644 (file)
@@ -183,6 +183,7 @@ void LyXFunc::processKeySym(LyXKeySymPtr keysym,
                       << keysym->getSymbolName()
                       << endl;
        }
        // Do nothing if we have nothing (JMarc)
        if (!keysym->isOK()) {
                lyxerr[Debug::KEY] << "Empty kbd action (probably composing)"
@@ -199,9 +200,7 @@ void LyXFunc::processKeySym(LyXKeySymPtr keysym,
        cancel_meta_seq.reset();
 
        int action = cancel_meta_seq.addkey(keysym, state);
-       if (lyxerr.debugging(Debug::KEY)) {
-               lyxerr << "action first set to [" << action << "]" << endl;
-       }
+       lyxerr[Debug::KEY] << "action first set to [" << action << "]" << endl;
 
        // When not cancel or meta-fake, do the normal lookup.
        // Note how the meta_fake Mod1 bit is OR-ed in and reset afterwards.
@@ -1379,19 +1378,19 @@ void LyXFunc::dispatch(FuncRequest const & ev, bool verbose)
                lyxrc.cursor_follows_scrollbar = !lyxrc.cursor_follows_scrollbar;
                break;
 
-       case LFUN_KMAP_OFF:             // keymap off
+       case LFUN_KMAP_OFF:
                owner->getIntl().KeyMapOn(false);
                break;
 
-       case LFUN_KMAP_PRIM:    // primary keymap
+       case LFUN_KMAP_PRIM:
                owner->getIntl().KeyMapPrim();
                break;
 
-       case LFUN_KMAP_SEC:             // secondary keymap
+       case LFUN_KMAP_SEC:
                owner->getIntl().KeyMapSec();
                break;
 
-       case LFUN_KMAP_TOGGLE:  // toggle keymap
+       case LFUN_KMAP_TOGGLE:
                owner->getIntl().ToggleKeyMap();
                break;
 
index 41578aa46e5f0f12bbfae10c9f8469a64d125d1d..e72a5c1d95588df968b0203f0f246eb1ec260235 100644 (file)
@@ -31,7 +31,7 @@ using boost::shared_ptr;
 
 /// the flag used by FinishUndo();
 bool undo_finished;
-/// FIXME
+/// whether actions are not added to the undo stacks
 bool undo_frozen;
 
 namespace {