+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.
{ 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 },
{
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);
}
<< keysym->getSymbolName()
<< endl;
}
+
// Do nothing if we have nothing (JMarc)
if (!keysym->isOK()) {
lyxerr[Debug::KEY] << "Empty kbd action (probably composing)"
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.
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;
/// the flag used by FinishUndo();
bool undo_finished;
-/// FIXME
+/// whether actions are not added to the undo stacks
bool undo_frozen;
namespace {