Ignore:
Timestamp:
Jul 26, 2007, 11:32:48 AM (14 years ago)
Author:
Eugene Romanenko
Message:

Zoom in/Zoom out menuitems and corresponding Ctrl++/Ctrl+- hotkeys. Ctrl+Shift++/Ctrl+Shift+- hotkeys for rotate CW/CCW, Ctrl+P for Print (closes #108)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Lucide/SOURCE/gui/lucide.cpp

    r211 r212  
    180180    WinEnableMenuItem( hWndMenu, CM_FITWIDTH, scalable );
    181181    WinSendMsg( hToolBar, TBM_ENABLEITEM, MPFROMSHORT(CM_FITWIDTH), (MPARAM)scalable );
    182     WinEnableMenuItem( hWndMenu, CM_ZOOM_IN_OUT, scalable );
    183182    WinSendMsg( hToolBar, TBM_ENABLEITEM, MPFROMSHORT(CM_ZOOM_IN_OUT), (MPARAM)scalable );
     183    WinEnableMenuItem( hWndMenu, CM_ZOOM_IN, scalable );
     184    WinEnableMenuItem( hWndMenu, CM_ZOOM_OUT, scalable );
    184185    WinEnableControl( hToolBar, TBID_ZOOM, scalable );
    185186    BOOL rotable = doc->isRotable( ev );
     
    273274        WinEnableMenuItem( hWndMenu, CM_FITWIDTH, FALSE );
    274275        WinSendMsg( hToolBar, TBM_ENABLEITEM, MPFROMSHORT(CM_FITWIDTH), (MPARAM)FALSE );
    275         WinEnableMenuItem( hWndMenu, CM_ZOOM_IN_OUT, FALSE );
    276276        WinSendMsg( hToolBar, TBM_ENABLEITEM, MPFROMSHORT(CM_ZOOM_IN_OUT), (MPARAM)FALSE );
     277        WinEnableMenuItem( hWndMenu, CM_ZOOM_IN, FALSE );
     278        WinEnableMenuItem( hWndMenu, CM_ZOOM_OUT, FALSE );
    277279        WinEnableControl( hToolBar, TBID_ZOOM, FALSE );
    278280
     
    717719    {
    718720        bool isZoom = !docViewer->isZoomMode();
    719 
    720         WinCheckMenuItem( hWndMenu, CM_ZOOM_IN_OUT, isZoom );
    721721        WinSendMsg( hToolBar, TBM_SETCHECK, MPFROMSHORT( CM_ZOOM_IN_OUT ), (MPARAM)isZoom );
    722722        docViewer->setZoomMode( isZoom );
     
    933933                    return (MRESULT)FALSE;
    934934
     935                case CM_ZOOM_IN:
     936                    docViewer->zoomInOut( true );
     937                    return (MRESULT)FALSE;
     938
     939                case CM_ZOOM_OUT:
     940                    docViewer->zoomInOut( false );
     941                    return (MRESULT)FALSE;
     942
    935943                case CM_SINGLEPAGE:
    936944                    Lucide::setPageLayout( SinglePage );
Note: See TracChangeset for help on using the changeset viewer.