Ignore:
Timestamp:
Jul 27, 2006, 6:10:43 PM (15 years ago)
Author:
Eugene Romanenko
Message:

UI improvements, started print dialog

File:
1 edited

Legend:

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

    r88 r89  
    4949#include "docInfoDlg.h"
    5050#include "findDlg.h"
     51#include "printDlg.h"
    5152#include "progressDlg.h"
    5253#include "settingsDlg.h"
     
    217218
    218219        WinEnableMenuItem( hWndMenu, CM_SAVEAS, FALSE );
    219         WinEnableMenuItem( hWndMenu, CM_EXPORTTOPS, FALSE );
    220220        WinEnableMenuItem( hWndMenu, CM_PAGESETUP, FALSE );
    221221        WinEnableMenuItem( hWndMenu, CM_PRINT, FALSE );
     
    263263    checkZoomMenus();
    264264
     265    WinEnableMenuItem( hWndMenu, CM_PRINT, TRUE );
    265266    WinEnableMenuItem( hWndMenu, CM_SAVEAS, doc->isSaveable( ev ) );
    266267    setOfPages( doc->getPageCount( ev ) );
     
    594595}
    595596
     597void Lucide::focusDocview()
     598{
     599    WinSetFocus( HWND_DESKTOP, docViewer->getViewHWND() );
     600}
     601
    596602static MRESULT EXPENTRY splProc( HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2 )
    597603{
     
    628634                    return (MRESULT)FALSE;
    629635
     636                case CM_PRINT:
     637                {
     638                    PrintDlg *d = new PrintDlg( hWndFrame, doc );
     639                    if ( d->showDialog() == DID_OK ) {
     640                        // print
     641                    }
     642                    delete d;
     643                    return (MRESULT)FALSE;
     644                }
     645
    630646                case CM_EXIT:
    631647                    WinPostMsg( hWndFrame, WM_CLOSE, NULL, NULL );
     
    863879    }
    864880
    865     WinSetFocus( HWND_DESKTOP, docViewer->getViewHWND() );
     881    Lucide::focusDocview();
    866882
    867883    if ( argc > 1 ) {
Note: See TracChangeset for help on using the changeset viewer.