Changeset 8846:d92d32513bfd in orange


Ignore:
Timestamp:
08/30/11 11:41:32 (3 years ago)
Author:
miha <miha.stajdohar@…>
Branch:
default
Convert:
3938309c06c688ce495596966728bc8236468857
Message:
 
Location:
source/orangeqt
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • source/orangeqt/networkcurve.cpp

    r8171 r8846  
    362362    m_nodes.clear(); 
    363363} 
     364 
     365 
     366void NetworkCurve::paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget) 
     367{ 
     368    NetworkCurve::paint(painter, option, widget); 
     369 
     370    if (m_show_component_distances) 
     371    { 
     372        // TODO: move code from Python to C++ 
     373    } 
     374} 
     375 
    364376 
    365377void NetworkCurve::update_properties() 
     
    11941206    return m_labels_on_marked_only; 
    11951207} 
     1208 
     1209void NetworkCurve::set_show_component_distances(bool show_component_distances) 
     1210{ 
     1211    m_show_component_distances = show_component_distances; 
     1212} 
    11961213  
    11971214void NetworkCurve::stop_optimization() 
  • source/orangeqt/networkcurve.h

    r8735 r8846  
    194194    virtual ~NetworkCurve(); 
    195195 
     196    virtual void paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget); 
     197 
    196198    virtual void update_properties(); 
    197199    virtual QRectF data_rect() const; 
     
    239241    bool labels_on_marked_only(); 
    240242 
     243    void set_show_component_distances(bool show_component_distances); 
     244 
    241245    void stop_optimization(); 
    242246 
     
    250254    bool m_stop_optimization; 
    251255    bool m_labels_on_marked_only; 
     256    bool m_show_component_distances; 
    252257}; 
    253258 
  • source/orangeqt/networkcurve.sip

    r8735 r8846  
    8686    virtual ~NetworkCurve(); 
    8787     
     88    virtual void paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget = 0); 
     89     
    8890    virtual void update_properties(); 
    8991    virtual QRectF data_rect() const; 
     
    129131    bool labels_on_marked_only(); 
    130132     
     133    void set_show_component_distances(bool show_component_distances); 
     134     
    131135    void stop_optimization(); 
    132136}; 
Note: See TracChangeset for help on using the changeset viewer.