add shortcuts to document menu

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH-1_2_X@4660 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jean-Marc Lasgouttes 2002-07-16 20:57:09 +00:00
parent 17043b2e03
commit 5ac90688da
4 changed files with 20 additions and 5 deletions

View File

@ -1,3 +1,7 @@
2002-07-16 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
* MenuBackend.C (expand): add numeric shortcuts to document menu
2002-07-15 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr> 2002-07-15 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
* lyxfont.C (setLyXFamily): * lyxfont.C (setLyXFamily):

View File

@ -296,14 +296,17 @@ void Menu::expand(Menu & tomenu, Buffer * buf) const
break; break;
} }
int ii = 1;
Strings::const_iterator docit = names.begin(); Strings::const_iterator docit = names.begin();
Strings::const_iterator end = names.end(); Strings::const_iterator end = names.end();
for (; docit != end ; ++docit) { for (; docit != end; ++docit, ++ii) {
int const action = lyxaction int const action = lyxaction
.getPseudoAction(LFUN_SWITCHBUFFER, .getPseudoAction(LFUN_SWITCHBUFFER,
*docit); *docit);
string const label = string label = MakeDisplayPath(*docit, 30);
MakeDisplayPath(*docit, 30); if (ii < 10)
label = tostr(ii) + ". "
+ label + '|' + tostr(ii);
tomenu.add(MenuItem(MenuItem::Command, tomenu.add(MenuItem(MenuItem::Command,
label, action)); label, action));
} }

View File

@ -3,6 +3,8 @@
* filetools.C (IsLyXFilename): * filetools.C (IsLyXFilename):
(IsSGMLFilename): use ascii_lowercase instead of lowercase (IsSGMLFilename): use ascii_lowercase instead of lowercase
* lstrings.[Ch] (ascii_lowercase): new function
2002-06-13 Angus Leeming <leeming@lyx.org> 2002-06-13 Angus Leeming <leeming@lyx.org>
Fixes needed to compile with Compaq cxx 6.3. Fixes needed to compile with Compaq cxx 6.3.

View File

@ -27,13 +27,19 @@ What's new
- update finnish, danish, french and russian localizations - update finnish, danish, french and russian localizations
- update Tutorial to be more up to date - update Tutorial to 1.2.x features
- better support for entering cyrillic and greek alphabets - better support for entering cyrillic and greek alphabets
- cleanup shortcuts for section layouts. Starred versions are now
obtained by prepending a * to the section number (M-p asterisk 0, ...,
M-p asterisk 6)
- add keyboard shortcuts to the Documents menu
- support the numpad direction keys as equivalent to normal cursor keys - support the numpad direction keys as equivalent to normal cursor keys
- update template for IEEEtran; update hebrew article class - update template for IEEEtran; small update to hebrew article class
** Bugfixes ** Bugfixes