MAK Data Logger API Documentation for HLA
Home
Modules
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
libsrc
lgrGui
timeComponent.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 1992-2010 VT MAK
3
** All rights reserved.
4
******************************************************************************/
5
8
9
#ifndef timeComponent_H_
10
#define timeComponent_H_
11
#include "
lgrGui.h
"
12
13
#include <QtCore/QObject>
14
#include <
absoluteTime.h
>
15
16
namespace
MAKLogger
17
{
18
21
class
DT_DLL_LGRGUI
DtTimeComponent
:
public
QObject
22
{
23
Q_OBJECT
24
25
public
:
26
DtTimeComponent
();
27
28
virtual
~
DtTimeComponent
();
29
30
private
:
32
DtTimeComponent
(
const
DtTimeComponent
&);
34
DtTimeComponent
& operator=(
const
DtTimeComponent
&);
35
public
:
36
37
39
static
void
listenOnly(
const
DtTimeComponent
*,
const
DtTimeComponent
*);
43
static
void
disconnect(
const
DtTimeComponent
*,
const
DtTimeComponent
*);
44
46
//
47
//First time is the first valid time, all other times must be >=
48
//Last time is the last valid time all other times must be <=
49
//Start time is the starting time, stop and current time must be >=
50
//Stop time is the stopping time, start and current time must be <=
51
//Current time is the current time, it is between start and stop time.
52
53
public
:
55
56
virtual
DtAbsoluteTime
firstTime()
const
;
57
59
virtual
DtAbsoluteTime
lastTime()
const
;
60
62
virtual
DtAbsoluteTime
startTime()
const
;
63
65
virtual
DtAbsoluteTime
stopTime()
const
;
66
68
virtual
DtAbsoluteTime
currentTime()
const
;
69
71
virtual
DtRelativeTime
length()
const
;
72
74
virtual
DtRelativeTime
duration()
const
;
75
77
80
virtual
DtAbsoluteTime
timeOfPercentFirstLast(
float
percent)
const
;
81
84
virtual
float
percentOfTimeFirstLast(
const
DtAbsoluteTime
& time)
const
;
85
88
virtual
DtAbsoluteTime
timeOfPercentStartStop(
float
percent)
const
;
89
92
virtual
float
percentOfTimeStartStop(
const
DtAbsoluteTime
& time)
const
;
93
97
bool
followModeEnabled()
const
;
98
99
public
slots:
100
102
virtual
void
setFollowMode(
bool
);
103
104
virtual
void
setStartStopTimes(
const
DtAbsoluteTime
&,
const
DtAbsoluteTime
&,
bool
emitSignal=
true
);
105
106
virtual
void
setFirstTime (
const
DtAbsoluteTime
&);
107
virtual
void
setLastTime (
const
DtAbsoluteTime
&);
108
virtual
void
setCurrentTime(
const
DtAbsoluteTime
&);
109
110
virtual
void
emitSetCurrentTime(
const
DtAbsoluteTime
&);
111
virtual
void
emitStartStopTimesChanged(
const
DtAbsoluteTime
&,
const
DtAbsoluteTime
&);
112
113
signals:
115
void
firstTimeChanged (
const
DtAbsoluteTime
&);
116
void
lastTimeChanged (
const
DtAbsoluteTime
&);
117
void
startStopTimesChanged(
const
DtAbsoluteTime
&,
const
DtAbsoluteTime
&);
118
void
currentTimeChanged(
const
DtAbsoluteTime
&);
119
120
void
modifyCurrentTime(
const
DtAbsoluteTime
&);
121
void
modifyStartStopTime(
const
DtAbsoluteTime
&,
const
DtAbsoluteTime
&);
122
123
void
followModeChanged(
bool
);
124
125
private
:
126
128
DtAbsoluteTime
myFirstTime
;
129
DtAbsoluteTime
myLastTime
;
130
132
DtAbsoluteTime
myStartTime
;
133
DtAbsoluteTime
myStopTime
;
134
DtAbsoluteTime
myCurrentTime
;
135
136
bool
myFollowModeFlag
;
137
DtRelativeTime
myFollowTime
;
138
139
};
140
141
}
142
143
#endif
Document ID: Generated on Thu Apr 10 18:53:01 EDT 2014 from SVN revision 138105
Copyright © 2005-2012 VT MÄK. All Rights Reserved (
www.mak.com
)