Ignore:
Timestamp:
Aug 25, 2007, 12:04:44 PM (14 years ago)
Author:
Eugene Romanenko
Message:

return dot to wildcard, small interface fixes

File:
1 edited

Legend:

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

    r230 r234  
    245245}
    246246
    247 void Lucide::checkMenus()
    248 {
    249     // pre-set "Actual size"
    250     setZoomChecks( CM_ACTSIZE, 0, 0 );
     247void Lucide::checkMenus( bool initial )
     248{
     249    if ( initial )
     250    {
     251        // pre-set "Actual size"
     252        setZoomChecks( CM_ACTSIZE, 0, 0 );
     253    }
    251254
    252255    if ( doc == NULL )
    253256    {
    254         // "single page" mode by default
    255         WinCheckMenuItem( hWndMenu, CM_SINGLEPAGE, TRUE );
     257        if ( initial )
     258        {
     259            // "single page" mode by default
     260            WinCheckMenuItem( hWndMenu, CM_SINGLEPAGE, TRUE );
     261        }
    256262
    257263        WinEnableMenuItem( hWndMenu, CM_SAVEAS, FALSE );
     
    338344    docViewer->setDocument( _doc );
    339345    indexWin->setDocument( _doc );
    340     checkMenus();
     346    checkMenus( false );
    341347}
    342348
     
    362368    doc = NULL;
    363369    WinSetWindowText( hWndFrame, title );
     370    checkMenus( false );
    364371
    365372    if ( thumbnailData != NULL ) {
     
    12081215                MPFROMSHORT( DEFAULT_PICTSIZE + TOOLBAR_HEIGHT_ADD ), MPVOID );
    12091216
    1210     Lucide::checkMenus();
     1217    Lucide::checkMenus( true );
    12111218    Lucide::setPageLayout( settings->layout );
    12121219    Lucide::setZoom( settings->zoom );
Note: See TracChangeset for help on using the changeset viewer.