Show
Ignore:
Timestamp:
06/10/06 06:57:16 (2 years ago)
Author:
jordi
Message:

Added checks for the Save and Zoom widgets in the MainPterTest? class' members. Also added a test for the Zoom entry on the tool bar.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/tests/DumbMainView.cxx

    r205 r207  
    4747    m_SensitiveRotateLeft = TRUE; 
    4848    m_SensitiveRotateRight = TRUE; 
     49    m_SensitiveSave = TRUE; 
     50    m_SensitiveZoom = TRUE; 
    4951    m_SensitiveZoomIn = TRUE; 
    5052    m_SensitiveZoomOut = TRUE; 
     
    5961    m_TimesShownPassword = 0; 
    6062    m_TotalPages = 0; 
     63    m_ZoomText = g_strdup (""); 
    6164    m_ZoomToFit = FALSE; 
    6265    m_ZoomToWidth = FALSE; 
     
    7275    g_free (m_Password); 
    7376    g_free (m_Title); 
     77    g_free (m_ZoomText); 
    7478} 
    7579 
     
    188192DumbMainView::sensitiveSave (gboolean sensitive) 
    189193{ 
     194    m_SensitiveSave = sensitive; 
    190195} 
    191196 
     
    193198DumbMainView::sensitiveZoom (gboolean sensitive) 
    194199{ 
     200    m_SensitiveZoom = sensitive; 
    195201} 
    196202 
     
    228234DumbMainView::getZoomText () 
    229235{ 
    230     return ""; 
     236    return m_ZoomText; 
    231237} 
    232238 
     
    271277DumbMainView::setZoomText (const gchar *text) 
    272278{ 
     279    g_free (m_ZoomText); 
     280    m_ZoomText = g_strdup (text); 
    273281} 
    274282 
     
    396404{ 
    397405    return m_SensitiveRotateRight; 
     406} 
     407 
     408gboolean 
     409DumbMainView::isSensitiveSave () 
     410{ 
     411    return m_SensitiveSave; 
     412} 
     413 
     414gboolean 
     415DumbMainView::isSensitiveZoom () 
     416{ 
     417    return m_SensitiveZoom; 
    398418} 
    399419