The annotation bar displays Annotation sliders and allows for easy editing. More...
Inheritance diagram for MAKLogger::DtLgrAnnotationBar:
Collaboration diagram for MAKLogger::DtLgrAnnotationBar:Public Slots | |
| virtual void | selectAnnotation (DtLgrAnnotation *annotation) |
| The slot to select an annotation based on its index in the menu. | |
| virtual void | timesChanged () |
| The slot to act when the first and last times changed. | |
| virtual void | barMoved (DtSliderBar *) |
| Slot called when a bar moves. | |
| virtual void | barSizeChanged (DtSliderBar *) |
| Slot called when a bar changes size. | |
Signals | |
| virtual void | attemptModifyAnnotation () |
| virtual void | selectedAnnotationChanged (DtLgrAnnotation *annotation) |
Public Member Functions | |
| DtLgrAnnotationBar (DtLgrAnnotationComponent *, QWidget *p) | |
| virtual | ~DtLgrAnnotationBar () |
| DTOR. | |
| void | connectSlots (DtLgrAnnotationSlots *annSlots) |
| Connect the bar to any of the slots. | |
| virtual void | addAnnotation (DtLgrAnnotation *annotation) |
| Add am annotation to be displayed. | |
| virtual void | removeAnnotation (DtLgrAnnotation *annotation) |
| Remove an annotation int the display. | |
| virtual void | updateAnnotation (DtLgrAnnotation *annotation) |
| Update an annotation in the display. | |
| virtual void | clearAnnotations () |
| Remove all annotations. | |
| virtual DtLgrAnnotation * | selectedAnnotation () |
| Get the selected annotation. | |
| virtual void | selectBar (DtSliderBar *bar) |
| Override default select bar to get selected annotation. | |
| virtual void | unselectAll () |
| Override default unselect all to unselect annotation. | |
Protected Types | |
|
typedef std::map < DtLgrAnnotation *, DtLgrAnnotationSliderBar * > | AnnotationBarMap |
Protected Member Functions | |
| virtual void | draw (QPainter &painter, QRect boundingRect) |
| virtual void | drawBox (QPainter &painter, DtSliderBox *box) const |
| Custom box drawing. | |
| void | updateRanges () |
| Update the ranges. | |
| virtual void | showAnnotationActionMenu (QPoint position) |
| Show a menu which has all the actions you can perform on the annotation. | |
| virtual void | showSelectAnnotationMenu (QPoint position) |
| Show a menu which has all annotations. | |
| virtual void | mouseDoubleClickEvent (QMouseEvent *) |
| Double click event. | |
| virtual void | contextMenuEvent (QContextMenuEvent *event) |
| virtual void | drawBar (QPainter &painter, DtSliderBar *bar) const |
| Override bar drawing to draw the annotation. | |
| virtual void | barToTimes (const DtSliderBar *bar, DtAbsoluteTime &firstTime, DtAbsoluteTime &lastTime) |
Protected Attributes | |
| DtLgrAnnotationComponent * | myAnnotationComponent |
| AnnotationBarMap | myAnnotationBars |
| DtLgrAnnotation * | mySelectedAnnotation |
| DtLgrAnnotationSlots * | mySlots |
Private Member Functions | |
| DtLgrAnnotationBar (const DtLgrAnnotationBar &) | |
| Not Implemented. | |
| DtLgrAnnotationBar & | operator= (const DtLgrAnnotationBar &) |
| Not Implemented. | |
The annotation bar displays Annotation sliders and allows for easy editing.
| virtual DtLgrAnnotation* MAKLogger::DtLgrAnnotationBar::selectedAnnotation | ( | ) | [virtual] |
Get the selected annotation.
| 0 | No annotation is selected. |
| virtual void MAKLogger::DtLgrAnnotationBar::showAnnotationActionMenu | ( | QPoint | position | ) | [protected, virtual] |
Show a menu which has all the actions you can perform on the annotation.