Show
Ignore:
Timestamp:
04/15/06 06:57:59 (3 years ago)
Author:
jordi
Message:

The main presenter shows the sidebar when the document has outlines. Also passes the outline to the view and accepts an activated outline to make change the page.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/tests/DumbMainView.cxx

    r62 r66  
    3232    m_GoToPageText = g_strdup (""); 
    3333    m_OpenFileName = g_strdup (""); 
     34    m_Outline = NULL; 
    3435    m_Password = NULL; 
    3536    m_SensitiveGoToFirstPage = TRUE; 
     
    4748    m_Shown = FALSE; 
    4849    m_ShownError = FALSE; 
     50    m_ShownSidebar = FALSE; 
    4951    m_Title = g_strdup (""); 
    5052    m_TimesShownPassword = 0; 
     
    180182 
    181183void 
     184DumbMainView::setOutline (DocumentOutline *outline) 
     185{ 
     186    m_Outline = outline; 
     187} 
     188 
     189void 
    182190DumbMainView::show (void) 
    183191{ 
     
    195203{ 
    196204    m_DocumentPage = page; 
     205} 
     206 
     207void 
     208DumbMainView::showSidebar (gboolean show) 
     209{ 
     210    m_ShownSidebar = show; 
    197211} 
    198212 
     
    213227} 
    214228 
     229DocumentOutline * 
     230DumbMainView::getOutline () 
     231{ 
     232    return m_Outline; 
     233} 
     234 
    215235gint 
    216236DumbMainView::getTotalPages () 
     
    229249} 
    230250 
    231 gboolean 
    232 DumbMainView::isShown () 
    233 { 
    234     return m_Shown; 
    235 } 
    236  
    237251const gchar * 
    238252DumbMainView::getTitle () 
     
    311325{ 
    312326    return m_SensitiveZoomWidth; 
     327} 
     328 
     329gboolean 
     330DumbMainView::isShown () 
     331{ 
     332    return m_Shown; 
     333} 
     334 
     335gboolean 
     336DumbMainView::isShownSidebar () 
     337{ 
     338    return m_ShownSidebar; 
    313339} 
    314340