Draw a time line with cursor, hover and marker set.  
 More...
|  | 
| void | valueChanged (int value) | 
|  | 
|  | 
|  | Timeline (QWidget *parent=nullptr) | 
|  | 
|  | Timeline (const Timeline &T)=delete | 
|  | 
| Timeline & | operator= (const Timeline &T)=delete | 
|  | 
| Timeline & | operator= (Timeline &&T)=delete | 
|  | 
|  | Timeline (Timeline &&T)=delete | 
|  | 
| void | setValue (const int index) | 
|  | Set the left cursor (left click cursor) at a given value. 
 | 
|  | 
| void | setCursorValue (const int index) | 
|  | Set the cursor at a given value. 
 | 
|  | 
| void | setMaximum (const int max) | 
|  | Set the maximum value. 
 | 
|  | 
| void | setMinimum (const int min) | 
|  | Set the minimum value, currently forced to zero. 
 | 
|  | 
| int | value () | 
|  | Return the last left value. 
 | 
|  | 
| int | currentValue () | 
|  | Return the current value. 
 | 
|  | 
| void | togglePlay () | 
|  | Start/Stop the autoplay of the replay. 
 | 
|  | 
|  | 
| void | setLayout (const int width, const int imageNumber) | 
|  | Set the layout of the timeline. 
 | 
|  | 
| void | resizeEvent (QResizeEvent *event) override | 
|  | Handle the widget redrawing when resized. 
 | 
|  | 
| bool | eventFilter (QObject *target, QEvent *event) override | 
|  | Handle the pointer event, click and hover. 
 | 
|  | 
| void | drawMarker (const int index) | 
|  | Draw a line marker at a given index. 
 | 
|  | 
| void | clearMarker (const int index) | 
|  | Delete a line marker at a given index. 
 | 
|  | 
| void | update (const int index) | 
|  | Redraw the widget keeping markers and cursors. 
 | 
|  | 
|  | 
| Ui::Timeline * | ui | 
|  | 
| int | m_imageNumber | 
|  | 
| int | m_imageMin | 
|  | 
| int | m_width | 
|  | 
| int | m_offset | 
|  | 
| int | m_currentIndex | 
|  | 
| int | m_currentIndexLeft | 
|  | 
| int | m_scale | 
|  | 
| QTimer * | timer | 
|  | 
| QGraphicsScene * | timelineScene | 
|  | 
| QGraphicsLineItem * | cursor | 
|  | 
| QGraphicsLineItem * | cursorLeft | 
|  | 
| QGraphicsSimpleTextItem * | indexNumber | 
|  | 
| QList< int > | markers | 
|  | 
Draw a time line with cursor, hover and marker set. 
- Author
- Benjamin Gallois
- Version
- Revision
- 5.0 
Contact: benja.nosp@m.min..nosp@m.gallo.nosp@m.is@f.nosp@m.asttr.nosp@m.ack..nosp@m.sh 
◆ clearMarker()
  
  | 
        
          | void Timeline::clearMarker | ( | const int | index | ) |  |  | private | 
 
Delete a line marker at a given index. 
- Parameters
- 
  
  
 
 
◆ drawMarker()
  
  | 
        
          | void Timeline::drawMarker | ( | const int | index | ) |  |  | private | 
 
Draw a line marker at a given index. 
- Parameters
- 
  
  
 
 
◆ eventFilter()
  
  | 
        
          | bool Timeline::eventFilter | ( | QObject * | target, |  
          |  |  | QEvent * | event ) |  | overrideprivate | 
 
Handle the pointer event, click and hover. 
- Parameters
- 
  
    | [in] | *target | Pointer to the target widget. |  | [in] | *event | Pointer to the event. |  
 
 
 
◆ resizeEvent()
  
  | 
        
          | void Timeline::resizeEvent | ( | QResizeEvent * | event | ) |  |  | overrideprivate | 
 
Handle the widget redrawing when resized. 
- Parameters
- 
  
    | [in] | *event | Pointer to the event. |  
 
 
 
◆ setCursorValue()
      
        
          | void Timeline::setCursorValue | ( | const int | index | ) |  | 
      
 
Set the cursor at a given value. 
- Parameters
- 
  
  
 
 
◆ setLayout()
  
  | 
        
          | void Timeline::setLayout | ( | const int | width, |  
          |  |  | const int | imageNumber ) |  | private | 
 
Set the layout of the timeline. 
- Parameters
- 
  
    | [in] | width | The width of the widget. |  | [in] | imageNumber | The number of images. |  
 
 
 
◆ setMaximum()
      
        
          | void Timeline::setMaximum | ( | const int | max | ) |  | 
      
 
Set the maximum value. 
- Parameters
- 
  
  
 
 
◆ setMinimum()
      
        
          | void Timeline::setMinimum | ( | const int | min | ) |  | 
      
 
Set the minimum value, currently forced to zero. 
- Parameters
- 
  
  
 
 
◆ setValue()
      
        
          | void Timeline::setValue | ( | const int | index | ) |  | 
      
 
Set the left cursor (left click cursor) at a given value. 
- Parameters
- 
  
  
 
 
◆ update()
  
  | 
        
          | void Timeline::update | ( | const int | index | ) |  |  | private | 
 
Redraw the widget keeping markers and cursors. 
- Parameters
- 
  
  
 
 
The documentation for this class was generated from the following files: