Changeset 277 for trunk/src/MainPter.cxx

Show
Ignore:
Timestamp:
06/11/07 09:12:09 (18 months ago)
Author:
jordi
Message:

Added a patch by Igor Vagulin which adds text selection and copy to clipboard features. This fixes bug #14.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/MainPter.cxx

    r263 r277  
    696696} 
    697697 
     698void 
     699MainPter::pageModeScrollActivated (gboolean active) 
     700{ 
     701    IMainView &view = getView (); 
     702    if ( active ) 
     703    { 
     704        m_PagePter->setMode(PagePterModeScroll); 
     705        view.activePageModeText (FALSE); 
     706    } 
     707} 
     708 
     709void 
     710MainPter::pageModeTextActivated (gboolean active) 
     711{ 
     712    IMainView &view = getView (); 
     713    if ( active ) 
     714    { 
     715        m_PagePter->setMode(PagePterModeSelectText); 
     716        view.activePageModeScroll (FALSE); 
     717    } 
     718} 
     719 
    698720/// 
    699721/// @brief The "Zoom In" was activated. 
     
    9961018} 
    9971019#endif // DEBUG 
     1020 
     1021void  
     1022MainPter::notifyTextSelected (const gchar* text) 
     1023{ 
     1024    getView ().copyTextToClibboard(text); 
     1025}