Ignore:
Timestamp:
Jan 24, 2013, 3:32:13 PM (11 years ago)
Author:
garnier
Message:

Ameliorations graphiques et re-identation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Interface_Web/trunk/pspaWT/sources/userInterface/src/GWt_draggableImage.cc

    r257 r272  
    55
    66GWt_draggableImage::GWt_draggableImage(
    7  const WLink & imageLink,
    8  const WString & altText,
    9  WContainerWidget * parent):
    10   WImage(imageLink,altText,parent)
     7                                       const WLink & imageLink,
     8                                       const WString & altText,
     9                                       WContainerWidget * parent):
     10WImage(imageLink,altText,parent)
    1111{
    12   init();
     12    init();
    1313}
    1414
    1515
    1616GWt_draggableImage::GWt_draggableImage(
    17  const WLink & imageLink,
    18  WContainerWidget * parent):
    19   WImage(imageLink,"Image PSPA",parent)
     17                                       const WLink & imageLink,
     18                                       WContainerWidget * parent):
     19WImage(imageLink,"Image PSPA",parent)
    2020{
    21   init();
     21    init();
    2222}
    2323
     
    2929
    3030void GWt_draggableImage::init(){
    31   changeCursorOnMouseOver_ = true;
    32 
    33   //  setMouseOverDelay(100);
    34   mouseWentOver().connect(this, &GWt_draggableImage::mouseOver);
    35   mouseWentUp().connect(this, &GWt_draggableImage::mouseUp);
    36   mouseWentDown().connect(this, &GWt_draggableImage::mouseDown);
    37   mouseWentOut().connect(this, &GWt_draggableImage::mouseOut);
    38   mouseDragged().connect(this, &GWt_draggableImage::mouseIsDragged);
     31    changeCursorOnMouseOver_ = true;
     32   
     33    //  setMouseOverDelay(100);
     34    mouseWentOver().connect(this, &GWt_draggableImage::mouseOver);
     35    mouseWentUp().connect(this, &GWt_draggableImage::mouseUp);
     36    mouseWentDown().connect(this, &GWt_draggableImage::mouseDown);
     37    mouseWentOut().connect(this, &GWt_draggableImage::mouseOut);
     38    mouseDragged().connect(this, &GWt_draggableImage::mouseIsDragged);
    3939}
    4040
    4141
    4242void GWt_draggableImage::setChangeCursorOnMouseOver(bool change){
    43   changeCursorOnMouseOver_ = change;
     43    changeCursorOnMouseOver_ = change;
    4444}
    4545
     
    4747void GWt_draggableImage::mouseOver(const WMouseEvent& e)
    4848{
    49   if (changeCursorOnMouseOver_) {
    50     decorationStyle().setCursor(OpenHandCursor);
    51   } else {
    52     decorationStyle().setCursor(ArrowCursor);
    53   }
     49    if (changeCursorOnMouseOver_) {
     50        decorationStyle().setCursor(OpenHandCursor);
     51    } else {
     52        decorationStyle().setCursor(ArrowCursor);
     53    }
    5454}
    5555
    5656void GWt_draggableImage::mouseOut(const WMouseEvent& e)
    5757{
    58     decorationStyle().setCursor(ArrowCursor); 
     58    decorationStyle().setCursor(ArrowCursor);
    5959}
    6060
Note: See TracChangeset for help on using the changeset viewer.