Changeset 279 for trunk/src/PagePter.cxx

Show
Ignore:
Timestamp:
06/26/07 07:07:49 (18 months ago)
Author:
jordi
Message:

Igor Vagulin sent a patch to change the Scroll and Text Selection ToggleAction? to RadioActions?.

Moved the implementation of PagePter?'s setMode() to its implementation file.

Fixed the selection of an empty rectangle.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/PagePter.cxx

    r277 r279  
    6868    m_NextPageScroll = PAGE_SCROLL_START; 
    6969    m_PageView = NULL; 
    70     m_Mode = PagePterModeScroll; 
     70    m_ScrollMode = PagePterModeScroll; 
    7171} 
    7272 
     
    135135            m_DragInfo->startX = x; 
    136136            m_DragInfo->startY = y; 
    137             if(m_Mode == PagePterModeScroll) 
     137            if(m_ScrollMode == PagePterModeScroll) 
    138138                view.setCursor (PAGE_VIEW_CURSOR_DRAG); 
    139139            else 
     
    160160        m_LastSelection = NULL; 
    161161 
    162         if(m_Document->isLoaded() && m_Mode == PagePterModeSelectText){ 
     162        if(m_Document->isLoaded() && m_ScrollMode == PagePterModeSelectText){ 
    163163            DocumentRectangle rect(m_DragInfo->startX, m_DragInfo->startY, 
    164164                                   m_DragInfo->x, m_DragInfo->y); 
     
    205205        m_DragInfo->y = y;   
    206206 
    207         if(m_Mode == PagePterModeScroll){ 
     207        if(m_ScrollMode == PagePterModeScroll){ 
    208208            view.scrollPage (view.getHorizontalScroll (), view.getVerticalScroll (), 
    209209                             x - m_DragInfo->startX, y - m_DragInfo->startY); 
     
    408408 
    409409/// 
     410/// @brief Sets the page mouse scroll mode 
     411/// 
     412/// @param mode Scroll mode to set. 
     413/// 
     414void 
     415PagePter::setMode (PagePterMode mode) 
     416{ 
     417    this->m_ScrollMode = mode; 
     418} 
     419 
     420/// 
    410421/// @brief The page view has been resized. 
    411422///