Public Slots | Signals | Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | Private Member Functions
MAKLogger::DtLgrAnnotationBar Class Reference

The annotation bar displays Annotation sliders and allows for easy editing. More...

+ Inheritance diagram for MAKLogger::DtLgrAnnotationBar:
+ Collaboration diagram for MAKLogger::DtLgrAnnotationBar:

List of all members.

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 DtLgrAnnotationselectedAnnotation ()
 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

DtLgrAnnotationComponentmyAnnotationComponent
AnnotationBarMap myAnnotationBars
DtLgrAnnotationmySelectedAnnotation
DtLgrAnnotationSlotsmySlots

Private Member Functions

 DtLgrAnnotationBar (const DtLgrAnnotationBar &)
 Not Implemented.
DtLgrAnnotationBaroperator= (const DtLgrAnnotationBar &)
 Not Implemented.

Detailed Description

The annotation bar displays Annotation sliders and allows for easy editing.


Member Function Documentation

virtual DtLgrAnnotation* MAKLogger::DtLgrAnnotationBar::selectedAnnotation ( ) [virtual]

Get the selected annotation.

Return values:
0No 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.


The documentation for this class was generated from the following file:

Document ID: Generated on Tue Oct 11 19:41:03 EDT 2011 from SVN revision 107422
Copyright © 2005-2011 VT MÄK Inc. All Rights Reserved (www.mak.com)