Changeset 8654:db88a6a9b730 in orange


Ignore:
Timestamp:
08/10/11 16:37:48 (3 years ago)
Author:
Noughmad <Noughmad@…>
Branch:
default
Convert:
f174dabc72ca36a2b8116f85f04097aace655b29
Message:

Emit a signal whenever the marked points change.

Location:
source/orangeplot
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • source/orangeplot/plot.cpp

    r8651 r8654  
    195195    if (behavior == ReplaceSelection) 
    196196    { 
     197        bool b = blockSignals(true); 
    197198        unmark_all_points(); 
    198199        behavior = AddSelection; 
     200        blockSignals(b); 
    199201    } 
    200202    set_points_state(rect, scene(), Point::Marked, behavior); 
     203    emit marked_points_changed(); 
    201204} 
    202205 
     
    205208    if (behavior == ReplaceSelection) 
    206209    { 
     210        bool b = blockSignals(true); 
    207211        unmark_all_points(); 
    208212        behavior = AddSelection; 
     213        blockSignals(b); 
    209214    } 
    210215    set_points_state(area, scene(), Point::Marked, behavior); 
     216    emit marked_points_changed(); 
    211217} 
    212218 
     
    384390        } 
    385391    } 
     392    emit marked_points_changed(); 
    386393} 
    387394 
     
    409416    } 
    410417    emit selection_changed(); 
     418        emit marked_points_changed(); 
    411419} 
    412420 
     
    421429        } 
    422430    } 
     431    emit selection_changed(); 
     432        emit marked_points_changed(); 
    423433} 
    424434 
  • source/orangeplot/plot.h

    r8651 r8654  
    7979Q_SIGNALS: 
    8080    void selection_changed(); 
     81    void marked_points_changed(); 
    8182    void point_hovered(Point* point); 
    8283     
Note: See TracChangeset for help on using the changeset viewer.