VR-Forces 4.1.1 Class Documentation
DtDateAndTimeWidget.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * Copyright (c) 2012 MAK Technologies, Inc.
3  * All rights reserved.
4  *****************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvCoreQt/vrvCoreQt.h>
14 #include <QtGui/QWidget>
15 
16 class QCalendarWidget;
17 class QTimeEdit;
18 class QDoubleSpinBox;
19 class QDate;
20 class QPushButton;
21 
22 namespace makVrv
23 {
24 
25  class DtAnalogClock;
26  class DtDateAndTimeLogic;
27  class DtDe;
28 
32  : public QWidget, public DtDateAndTimeInterface
33  {
34 
35  Q_OBJECT
36 
37  public:
38 
40  DtDateAndTimeWidget( DtDe& de, QWidget* parent = 0,
41  Qt::WindowFlags f = 0 );
42 
44  virtual ~DtDateAndTimeWidget();
45 
49 
51  virtual void setDateAndTime( int year, int month,
52  int day, int hour, int minutes, double seconds);
53 
55  virtual void setTimeScale( double timeScale);
56 
58 
60  virtual void activate();
61 
63  virtual void deactivate();
64 
65  protected slots:
66 
70 
71  void on_myCurrentTimeEdit_timeChanged(const QTime&);
72  void on_myCalendar_selectedDateChanged(const QDate&);
73  void on_myTimeScaleSpinBox_valueChanged(double);
74  void on_myUseCurrentSettingsButton_clicked();
75 
77 
80  void updateTime();
81 
82  protected:
83 
86  void setupGui();
87 
88  protected:
89 
92  QCalendarWidget* myCalendar;
94  QTimeEdit* myCurrentTimeEdit;
95  QDoubleSpinBox* myTimeScaleSpinBox;
97 
98  };
99 
100 }

Document ID: Generated on Mon Apr 8 19:24:01 EDT 2013 from SVN revision 125877
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)