Changeset 449

Show
Ignore:
Timestamp:
08/21/08 19:45:34 (4 months ago)
Author:
mbensi
Message:

2008-08-21 Mario Bensi <mbensi@pleyo.com>

Reviewed by Olivier DOLE.
fix text selection (Ticket #253 and Ticket #165)

  • WKAL/Concretizations/Events/SDL/BCPlatformMouseEventSDL.cpp:
    (WKAL::PlatformMouseEvent::PlatformMouseEvent):
  • WKAL/Concretizations/Widgets/SDL/BCRenderThemeSDL.cpp:
    (WKAL::RenderThemeBal::platformActiveSelectionBackgroundColor):
    (WKAL::RenderThemeBal::platformInactiveSelectionBackgroundColor):
    (WKAL::RenderThemeBal::platformActiveSelectionForegroundColor):
    (WKAL::RenderThemeBal::platformInactiveSelectionForegroundColor):
    (WKAL::RenderThemeBal::activeListBoxSelectionBackgroundColor):
    (WKAL::RenderThemeBal::inactiveListBoxSelectionBackgroundColor):
    (WKAL::RenderThemeBal::activeListBoxSelectionForegroundColor):
    (WKAL::RenderThemeBal::inactiveListBoxSelectionForegroundColor):
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/BAL/ChangeLogOWB

    r448 r449  
     12008-08-21  Mario Bensi  <mbensi@pleyo.com> 
     2 
     3        Reviewed by Olivier DOLE. 
     4        fix text selection (Ticket #253 and Ticket #165) 
     5 
     6        * WKAL/Concretizations/Events/SDL/BCPlatformMouseEventSDL.cpp: 
     7        (WKAL::PlatformMouseEvent::PlatformMouseEvent): 
     8        * WKAL/Concretizations/Widgets/SDL/BCRenderThemeSDL.cpp: 
     9        (WKAL::RenderThemeBal::platformActiveSelectionBackgroundColor): 
     10        (WKAL::RenderThemeBal::platformInactiveSelectionBackgroundColor): 
     11        (WKAL::RenderThemeBal::platformActiveSelectionForegroundColor): 
     12        (WKAL::RenderThemeBal::platformInactiveSelectionForegroundColor): 
     13        (WKAL::RenderThemeBal::activeListBoxSelectionBackgroundColor): 
     14        (WKAL::RenderThemeBal::inactiveListBoxSelectionBackgroundColor): 
     15        (WKAL::RenderThemeBal::activeListBoxSelectionForegroundColor): 
     16        (WKAL::RenderThemeBal::inactiveListBoxSelectionForegroundColor): 
     17 
    1182008-08-20  Olivier DOLE  <odole@pleyo.com> 
    219 
  • trunk/BAL/WKAL/Concretizations/Events/SDL/BCPlatformMouseEventSDL.cpp

    r243 r449  
    8484    m_button = NoButton; 
    8585    m_clickCount = 0; 
     86     
     87    if( motion->state == SDL_BUTTON_LEFT ) 
     88        m_button = LeftButton; 
     89    else if( motion->state == SDL_BUTTON_MIDDLE ) 
     90        m_button = MiddleButton; 
     91    else if( motion->state == SDL_BUTTON_RIGHT ) 
     92        m_button = RightButton; 
    8693} 
    8794 
  • trunk/BAL/WKAL/Concretizations/Widgets/SDL/BCRenderThemeSDL.cpp

    r308 r449  
    380380Color RenderThemeBal::platformActiveSelectionBackgroundColor() const 
    381381{ 
    382     printf("RenderThemeBal::platformActiveSelectionBackgroundColor\n"); 
    383     Color c; 
     382    Color c(0, 0, 255); 
    384383    return c; 
    385384} 
     
    387386Color RenderThemeBal::platformInactiveSelectionBackgroundColor() const 
    388387{ 
    389     printf("RenderThemeBal::platformInactiveSelectionBackgroundColor\n"); 
    390     Color c; 
     388    Color c(0, 0, 255); 
    391389    return c; 
    392390} 
     
    394392Color RenderThemeBal::platformActiveSelectionForegroundColor() const 
    395393{ 
    396     printf("RenderThemeBal::platformActiveSelectionForegroundColor\n"); 
    397     Color c; 
     394    Color c(255, 255, 255); 
    398395    return c; 
    399396} 
     
    401398Color RenderThemeBal::platformInactiveSelectionForegroundColor() const 
    402399{ 
    403     printf("RenderThemeBal::platformInactiveSelectionForegroundColor\n"); 
    404     Color c; 
     400    Color c(255, 255, 255); 
    405401    return c; 
    406402} 
     
    408404Color RenderThemeBal::activeListBoxSelectionBackgroundColor() const 
    409405{ 
    410     printf("RenderThemeBal::activeListBoxSelectionBackgroundColor\n"); 
    411     Color c; 
     406    Color c(0, 0, 255); 
    412407    return c; 
    413408} 
     
    415410Color RenderThemeBal::inactiveListBoxSelectionBackgroundColor() const 
    416411{ 
    417     printf("RenderThemeBal::inactiveListBoxSelectionBackgroundColor\n"); 
    418     Color c; 
     412    Color c(0, 0, 255); 
    419413    return c; 
    420414} 
     
    422416Color RenderThemeBal::activeListBoxSelectionForegroundColor() const 
    423417{ 
    424     printf("RenderThemeBal::activeListBoxSelectionForegroundColor\n"); 
    425     Color c; 
     418    Color c(255, 255, 255); 
    426419    return c; 
    427420} 
     
    429422Color RenderThemeBal::inactiveListBoxSelectionForegroundColor() const 
    430423{ 
    431     printf("RenderThemeBal::inactiveListBoxSelectionForegroundColor\n"); 
    432     Color c; 
     424    Color c(255, 255, 255); 
    433425    return c; 
    434426}