VR-Forces 4.0.4 Class Documentation
include/vrfGuiCoreQt/environmentSettingsDateAndTimeWidget.h
Go to the documentation of this file.
00001 /******************************************************************************
00002 ** Copyright (c) 2008 MAK Technologies, Inc.
00003 ** All rights reserved.
00004 ******************************************************************************/
00005 /******************************************************************************
00006 ** $RCSfile: vrfSceneSettingsDateAndTimeWidget.h,v $ $Revision: 1.10 $ $State: Exp $
00007 ******************************************************************************/
00008 
00011 
00013 
00014 #pragma once
00015 
00016 #include <vrvUtil/signalslib.h>
00017 #include <vrfGuiCoreQt/vrfGuiCoreQt.h>
00018 #include <vrvCoreQt/DtDateAndTimeWidget.h>
00019 
00020 namespace makVrv
00021 {
00022    class DtDe;
00023    class DtAnalogClock;
00024 }
00025 
00026 namespace makVrf
00027 {
00028    class DtEnvironmentSettingsDateAndTimeLogic;      
00029 
00032    class DT_DLL_VRFGUICOREQT DtEnvironmentSettingsDateAndTimeWidget : public QWidget, public makVrv::DtDateAndTimeInterface
00033    {
00034       Q_OBJECT
00035 
00036    public:
00037 
00039       DtEnvironmentSettingsDateAndTimeWidget(makVrv::DtDe& de,QWidget* parent = 0, Qt::WindowFlags f = 0);
00040 
00042       virtual ~DtEnvironmentSettingsDateAndTimeWidget();
00043 
00045       virtual void setupGui();
00046 
00048       virtual void setLogic(DtEnvironmentSettingsDateAndTimeLogic* logic);
00049 
00051       virtual void setDateAndTime( int year, int month, int day, int hour,
00052          int minutes, double seconds);
00053 
00055       virtual void setTime( int hour, int minutes, double seconds);
00056 
00058       virtual void setTime(double secondsPastMidnight);
00059 
00061       virtual void getTime(int& hour, int& min, int& secs);
00062 
00064       virtual float getTime();
00065 
00067       virtual void setTimeScale( double timeScale);
00068 
00069    protected slots:
00070 
00072       void on_myCurrentTimeEdit_timeChanged(const QTime&);
00073 
00074    protected:
00075 
00076       DtEnvironmentSettingsDateAndTimeLogic* myLogic;
00077       makVrv::DtDe& myDe;
00078       makVrv::DtAnalogClock* myAnalogClock;
00079       QTimeEdit* myCurrentTimeEdit;
00080    };
00081 }

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)