Show
Ignore:
Timestamp:
04/12/06 06:33:09 (3 years ago)
Author:
jordi
Message:

I've forgoten the rotate left and rotate right sensitivity. I've added the two functions to the main view's interface and gtk shell. Also added to the test suite.

Now the gtk shell can change the sensitiveness of the widgets.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/tests/MainPterTest.cxx

    r31 r36  
    6868    CPPUNIT_ASSERT (!m_View->isSensitiveGoToPage ()); 
    6969    CPPUNIT_ASSERT (!m_View->isSensitiveGoToPreviousPage ()); 
     70    CPPUNIT_ASSERT (!m_View->isSensitiveRotateLeft ()); 
     71    CPPUNIT_ASSERT (!m_View->isSensitiveRotateRight ()); 
    7072    CPPUNIT_ASSERT (!m_View->isSensitiveZoomIn ()); 
    7173    CPPUNIT_ASSERT (!m_View->isSensitiveZoomOut ()); 
     
    9597    CPPUNIT_ASSERT (m_View->isSensitiveGoToPage ()); 
    9698    CPPUNIT_ASSERT (!m_View->isSensitiveGoToPreviousPage ()); 
     99    CPPUNIT_ASSERT (m_View->isSensitiveRotateLeft ()); 
     100    CPPUNIT_ASSERT (m_View->isSensitiveRotateRight ()); 
    97101    CPPUNIT_ASSERT (m_View->isSensitiveZoomIn ()); 
    98102    CPPUNIT_ASSERT (m_View->isSensitiveZoomOut ()); 
     
    111115    CPPUNIT_ASSERT (m_View->isSensitiveGoToPage ()); 
    112116    CPPUNIT_ASSERT (!m_View->isSensitiveGoToPreviousPage ()); 
     117    CPPUNIT_ASSERT (m_View->isSensitiveRotateLeft ()); 
     118    CPPUNIT_ASSERT (m_View->isSensitiveRotateRight ()); 
    113119    CPPUNIT_ASSERT (m_View->isSensitiveZoomIn ()); 
    114120    CPPUNIT_ASSERT (m_View->isSensitiveZoomOut ()); 
     
    136142    CPPUNIT_ASSERT (!m_View->isSensitiveGoToPage ()); 
    137143    CPPUNIT_ASSERT (!m_View->isSensitiveGoToPreviousPage ()); 
     144    CPPUNIT_ASSERT (!m_View->isSensitiveRotateLeft ()); 
     145    CPPUNIT_ASSERT (!m_View->isSensitiveRotateRight ()); 
    138146    CPPUNIT_ASSERT (!m_View->isSensitiveZoomIn ()); 
    139147    CPPUNIT_ASSERT (!m_View->isSensitiveZoomOut ()); 
     
    164172    CPPUNIT_ASSERT (!m_View->isSensitiveGoToPage ()); 
    165173    CPPUNIT_ASSERT (!m_View->isSensitiveGoToPreviousPage ()); 
     174    CPPUNIT_ASSERT (!m_View->isSensitiveRotateLeft ()); 
     175    CPPUNIT_ASSERT (!m_View->isSensitiveRotateRight ()); 
    166176    CPPUNIT_ASSERT (!m_View->isSensitiveZoomIn ()); 
    167177    CPPUNIT_ASSERT (!m_View->isSensitiveZoomOut ()); 
     
    194204    CPPUNIT_ASSERT (!m_View->isSensitiveGoToPage ()); 
    195205    CPPUNIT_ASSERT (!m_View->isSensitiveGoToPreviousPage ()); 
     206    CPPUNIT_ASSERT (!m_View->isSensitiveRotateLeft ()); 
     207    CPPUNIT_ASSERT (!m_View->isSensitiveRotateRight ()); 
    196208    CPPUNIT_ASSERT (!m_View->isSensitiveZoomIn ()); 
    197209    CPPUNIT_ASSERT (!m_View->isSensitiveZoomOut ()); 
     
    224236    CPPUNIT_ASSERT (!m_View->isSensitiveGoToPage ()); 
    225237    CPPUNIT_ASSERT (!m_View->isSensitiveGoToPreviousPage ()); 
     238    CPPUNIT_ASSERT (!m_View->isSensitiveRotateLeft ()); 
     239    CPPUNIT_ASSERT (!m_View->isSensitiveRotateRight ()); 
    226240    CPPUNIT_ASSERT (!m_View->isSensitiveZoomIn ()); 
    227241    CPPUNIT_ASSERT (!m_View->isSensitiveZoomOut ()); 
     
    254268    CPPUNIT_ASSERT (m_View->isSensitiveGoToPage ()); 
    255269    CPPUNIT_ASSERT (!m_View->isSensitiveGoToPreviousPage ()); 
     270    CPPUNIT_ASSERT (m_View->isSensitiveRotateLeft ()); 
     271    CPPUNIT_ASSERT (m_View->isSensitiveRotateRight ()); 
    256272    CPPUNIT_ASSERT (m_View->isSensitiveZoomIn ()); 
    257273    CPPUNIT_ASSERT (m_View->isSensitiveZoomOut ());