MAK Data Logger API Documentation for HLA
setStartStopTimesDialog.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 setStartStopTimesDialog_H_
10 #define setStartStopTimesDialog_H_
11 
12 #include "lgrGui.h"
13 #include "absoluteTime.h"
14 #include "ui_setStartStopTimesUI.h"
15 #include <commonWidgets/preciseTimeEdit.h>
16 
17 namespace MAKLogger
18 {
19  class DtLgrGuiModel;
20 
24  {
25  Q_OBJECT
26 
27  public:
28 
31 
32  public slots:
33 
34  virtual void onCancel();
35  virtual void onOK();
36 
37 
38  protected slots:
39 
40  void setStartToBeginning();
41  void setEndToEnd();
42  void lockDurationChanged(bool);
43  void startChanged();
44  void stopChanged();
45  void durationChanged();
46 
47  protected:
48 
50  void updateDuration();
51 
53  DtRelativeTime duration() const;
54 
56  void setStartErrorCondition(bool valid,const QString& message);
57 
59  void setEndErrorCondition(bool valid,const QString& message);
60 
61  bool validateStartTime(DtAbsoluteTime time,QString& errorMessage);
62  bool validateEndTime(DtAbsoluteTime time,QString& errorMessage);
63  bool validateDurationTime(DtRelativeTime time,QString& errorMessage);
64 
71 
72  MAKCommonWidgets::DtPreciseTimeEdit* myStartEdit;
73  MAKCommonWidgets::DtPreciseTimeEdit* myStopEdit;
74  MAKCommonWidgets::DtPreciseTimeEdit* myRelDurEdit;
75  };
76 }
77 
78 #endif

Document ID: Generated on Thu Apr 11 12:13:00 EDT 2013 from SVN revision 126011
Copyright © 2005-2012 VT MÄK. All Rights Reserved (www.mak.com)