display shortcut on layout combox action

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5314 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jean-Marc Lasgouttes 2002-09-17 12:29:40 +00:00
parent 01f896907d
commit 3e609657db
4 changed files with 14 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2002-09-16 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
* Toolbar_pimpl.C (changed_layout): when selecting a layout in
combox, make sure the corresponding shortcut is shown in
minibuffer
2002-09-16 John Levon <levon@movementarian.org> 2002-09-16 John Levon <levon@movementarian.org>
* FileDialog.C: set AnyFile mode * FileDialog.C: set AnyFile mode

View File

@ -142,7 +142,7 @@ void Toolbar::Pimpl::changed_layout(string const & sel)
for (LyXTextClass::const_iterator cit = tc.begin(); for (LyXTextClass::const_iterator cit = tc.begin();
cit != end; ++cit) { cit != end; ++cit) {
if (_((*cit)->name()) == sel) { if (_((*cit)->name()) == sel) {
owner_->getLyXFunc().dispatch(FuncRequest(LFUN_LAYOUT, (*cit)->name())); owner_->getLyXFunc().dispatch(FuncRequest(LFUN_LAYOUT, (*cit)->name()), true);
return; return;
} }
} }

View File

@ -1,3 +1,9 @@
2002-09-16 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
* Toolbar_pimpl.C (layoutSelected): when selecting a layout in
combox, make sure the corresponding shortcut is shown in
minibuffer
2002-09-16 John Levon <levon@movementarian.org> 2002-09-16 John Levon <levon@movementarian.org>
* forms/form_character.fd: Escape to cancel * forms/form_character.fd: Escape to cancel

View File

@ -167,7 +167,7 @@ void Toolbar::Pimpl::layoutSelected()
for (LyXTextClass::const_iterator cit = tc.begin(); for (LyXTextClass::const_iterator cit = tc.begin();
cit != end; ++cit) { cit != end; ++cit) {
if (_((*cit)->name()) == layoutguiname) { if (_((*cit)->name()) == layoutguiname) {
owner_->getLyXFunc().dispatch(FuncRequest(LFUN_LAYOUT, (*cit)->name())); owner_->getLyXFunc().dispatch(FuncRequest(LFUN_LAYOUT, (*cit)->name()), true);
return; return;
} }
} }