MAK Data Logger API Documentation for HLA
timeBar.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 1992-2010 VT MAK
3 ** All rights reserved.
4 ******************************************************************************/
5 
10 
11 #ifndef timeBar_H_
12 #define timeBar_H_
13 
14 #include "lgrGui.h"
15 #include "lgrZoomableWidget.h"
16 
17 #include <absoluteTime.h>
18 
19 namespace MAKLogger
20 {
21  class DtValueSmoother;
22  class DtLgrGuiModel;
23 
27  {
28  Q_OBJECT
29 
30  public:
32  DtTimelineBar(DtLgrGuiModel& model,QWidget* parent);
33 
35  virtual ~DtTimelineBar();
36 
37  DtAbsoluteTime firstTime() const;
38  DtAbsoluteTime lastTime() const;
39  DtAbsoluteTime currentTime() const;
40  DtAbsoluteTime startTime() const;
41  DtAbsoluteTime stopTime() const;
42 
43  DtRelativeTime duration() const;
44  DtRelativeTime playDuration() const;
45 
46  int verticalMargin() const;
47 
48  public slots:
49 
50  void setStartStopTimePercentages(float,float);
51 
53  void testForUpdate();
54 
55  protected:
56 
57  static DtRelativeTime textTickSize(DtRelativeTime duration);
58 
59  virtual void paintEvent( QPaintEvent* );
60  virtual void mouseReleaseEvent(QMouseEvent*);
61  virtual void mouseMoveEvent( QMouseEvent* );
62  virtual void mousePressEvent( QMouseEvent* );
63  virtual void keyPressEvent( QKeyEvent* );
64  virtual void contextMenuEvent(QContextMenuEvent * );
65 /*
66 
67  virtual void startSelection(QPoint point);
68  virtual void updateSelection(QPoint point);
69 
70 */
71  virtual void updateCurrentTime(QPoint);
72 
73  void draw(QPainter& painter,const QRect& boundingRect);
74  void drawTicks(QPainter& painter,double,double);
75  void drawBackground(QPainter& painter,double ,double );
76 
84 
89 
90  /*
91  QAction* mySetCurrentTimeAction;
92  QAction* mySetStartEndTimesAction;
93  QAction* mySetZoomAction;
94  QAction* myClearSectionAction;
95  QAction* myDeleteSectionAction;
96  */
98  };
99 
100 }
101 
102 #endif

Document ID: Generated on Sun Dec 15 18:04:30 EST 2013 from SVN revision 134418
Copyright © 2005-2012 VT MÄK. All Rights Reserved (www.mak.com)