Show
Ignore:
Timestamp:
04/11/06 11:40:45 (3 years ago)
Author:
jordi
Message:

When an error loading the document happens, the view shows to the user an error message.

Also, updated POTFILES.in with the correct document sources and the MainPter? sources.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/tests/DumbMainView.cxx

    r25 r26  
    4040    m_SensitiveZoomWidth = TRUE; 
    4141    m_Shown = FALSE; 
     42    m_ShownError = FALSE; 
    4243    m_Title = g_strdup (""); 
    4344} 
     
    116117 
    117118void 
     119DumbMainView::showErrorMessage (const gchar *title, const gchar *body) 
     120{ 
     121    m_ShownError = TRUE; 
     122} 
     123 
     124void 
    118125DumbMainView::showPage (DocumentPage *page) 
    119126{ 
     
    136143DumbMainView::hasImagePageView () 
    137144{ 
    138     return NULL != m_DocumentPage; 
     145    gboolean shown = (NULL != m_DocumentPage); 
     146    // The next time, it will be FALSE unless it's shown again. 
     147    m_DocumentPage = NULL; 
     148 
     149    return shown; 
    139150} 
    140151 
     
    215226    } 
    216227} 
     228 
     229gboolean 
     230DumbMainView::shownError () 
     231{ 
     232    gboolean shown = m_ShownError; 
     233    // It's like the user clicked the "OK" button. No shown anymore, until 
     234    // the next error. 
     235    m_ShownError = FALSE; 
     236 
     237    return shown; 
     238}