VR-Forces 4.0.4 Class Documentation
include/vrvCoreQt/DtDateAndTimeWidget.h
Go to the documentation of this file.
00001 /*****************************************************************************
00002  * Copyright (c) 2012 MAK Technologies, Inc.
00003  * All rights reserved.
00004  *****************************************************************************/
00005 
00009 
00010 #pragma once
00011 
00012 #include <vrvCoreQt/vrvCoreQt.h>
00013 #include <vrvCoreQt/DtDateAndTimeInterface.h>
00014 #include <QtGui/QWidget>
00015 
00016 class QCalendarWidget;
00017 class QTimeEdit;
00018 class QDoubleSpinBox;
00019 class QDate;
00020 class QPushButton;
00021 
00022 namespace makVrv
00023 {
00024 
00025    class DtAnalogClock;
00026    class DtDateAndTimeLogic;
00027    class DtDe;
00028 
00031    class DT_DLL_VRVCOREQT DtDateAndTimeWidget
00032       : public QWidget, public DtDateAndTimeInterface
00033    {
00034 
00035       Q_OBJECT
00036 
00037    public:
00038 
00040       DtDateAndTimeWidget( DtDe& de, QWidget* parent = 0,
00041          Qt::WindowFlags f = 0 );
00042 
00044       virtual ~DtDateAndTimeWidget();
00045 
00049 
00051       virtual void setDateAndTime( int year, int month, 
00052          int day, int hour, int minutes, double seconds);
00053 
00055       virtual void setTimeScale( double timeScale);
00056 
00058 
00060       virtual void activate();
00061 
00063       virtual void deactivate();
00064 
00065    protected slots:
00066 
00070 
00071        void on_myCurrentTimeEdit_timeChanged(const QTime&);
00072        void on_myCalendar_selectedDateChanged(const QDate&);
00073        void on_myTimeScaleSpinBox_valueChanged(double);
00074        void on_myUseCurrentSettingsButton_clicked();
00075 
00077 
00080        void updateTime();
00081 
00082    protected:
00083 
00086       void setupGui();
00087 
00088    protected:
00089 
00090       DtDe& myDe;
00091       DtDateAndTimeLogic* myLogic;
00092       QCalendarWidget* myCalendar;
00093       DtAnalogClock* myAnalogClock;
00094       QTimeEdit* myCurrentTimeEdit;
00095       QDoubleSpinBox* myTimeScaleSpinBox;
00096       QPushButton* myUseCurrentSettingsButton;
00097 
00098    };
00099 
00100 }

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)