Show
Ignore:
Timestamp:
04/20/06 13:09:22 (3 years ago)
Author:
jordi
Message:

The MainPter? now resizes the page shown if the zoom to width or zoom to fit, that now are toggle actions, are activated. The view also tells to the presenter when the scroll window has resized, so it can calculate the new page.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/tests/DumbMainView.cxx

    r97 r99  
    5353    m_TimesShownPassword = 0; 
    5454    m_TotalPages = 0; 
     55    m_ZoomToFit = FALSE; 
     56    m_ZoomToWidth = FALSE; 
    5557} 
    5658 
     
    6466} 
    6567             
     68void  
     69DumbMainView::activeZoomFit (gboolean active) 
     70{ 
     71    m_ZoomToFit = active; 
     72} 
     73 
     74void  
     75DumbMainView::activeZoomWidth (gboolean active) 
     76{ 
     77    m_ZoomToWidth = active; 
     78} 
     79             
    6680gchar * 
    6781DumbMainView::openFileDialog (const gchar *lastFolder) 
     
    348362{ 
    349363    return m_ShownSidebar; 
     364} 
     365 
     366gboolean 
     367DumbMainView::isZoomToFitActive () 
     368{ 
     369    return m_ZoomToFit; 
     370} 
     371 
     372gboolean 
     373DumbMainView::isZoomToWidthActive () 
     374{ 
     375    return m_ZoomToWidth; 
    350376} 
    351377