]> git.lyx.org Git - features.git/commitdiff
Add "Select Section" to outliner context menu.
authorVincent van Ravesteijn <vfr@lyx.org>
Sun, 3 May 2009 19:16:00 +0000 (19:16 +0000)
committerVincent van Ravesteijn <vfr@lyx.org>
Sun, 3 May 2009 19:16:00 +0000 (19:16 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29520 a592a061-630c-0410-9148-cb99ea01b6c8

lib/ui/stdcontext.inc
src/frontends/qt4/TocWidget.cpp

index 1900116c3b0995503a1988e507ea49702c556a17..9871401028f039da8e59fe46d2755d01da93d408 100644 (file)
@@ -550,6 +550,8 @@ Menuset
                Item "Demote Section|D" "outline-in"
                Item "Move Section Up|U" "outline-up"
                Item "Move Section Down|w" "outline-down"
+               Separator
+               Item "Select Section|S" "section-select"
        End     
 
 End
index acf6ecb39cb42c479fb15d7370eed73c95cd7ea9..a5850f5c3634cf5b4c7a4d4f89c53d96388d3425 100644 (file)
@@ -140,6 +140,7 @@ bool TocWidget::getStatus(Cursor & cur, FuncRequest const & cmd,
        case LFUN_OUTLINE_DOWN:
        case LFUN_OUTLINE_IN:
        case LFUN_OUTLINE_OUT:
+       case LFUN_SECTION_SELECT:
                status.setEnabled(true);
                return true;
 
@@ -165,6 +166,7 @@ void TocWidget::doDispatch(Cursor & cur, FuncRequest const & cmd)
        {
        case LFUN_CHANGE_ACCEPT:
        case LFUN_CHANGE_REJECT:
+       case LFUN_SECTION_SELECT:
                dispatch(item.action());
                cur.dispatch(tmpcmd);
                break;