VR-Forces 4.0.4 Class Documentation
include/vrfGuiCoreQt/simulationCommandSetTimeOfDay.h
Go to the documentation of this file.
00001 /******************************************************************************
00002 ** Copyright (c) 2009 MAK Technologies, Inc.
00003 ** All rights reserved.
00004 ******************************************************************************/
00005 /******************************************************************************
00006 ** $RCSfile: simulationCommandSetTimeOfDay.h,v $ $Revision: 1.2 $ $State: Exp $
00007 ******************************************************************************/
00008 
00011 
00013 
00014 #pragma once
00015 
00016 #include <vrfGuiCoreQt/vrfGuiCoreQt.h>
00017 #include <vrfGuiCoreQt/DtSimulationCommandDialogInterface.h>
00018 #include <vrfGuiCoreQt/environmentSettingsDateAndTimeWidget.h>
00019 
00020 class DtChangeTimeOfDayCommand;
00021 
00022 namespace makVrf
00023 {
00024    class DT_DLL_VRFGUICOREQT DtSetTimeOfDayObjectWrapper : public DtSimCommandObjectWrapper
00025    {
00026    public:
00027       DtSetTimeOfDayObjectWrapper(const DtChangeTimeOfDayCommand&);
00028       DtSetTimeOfDayObjectWrapper(const DtSetTimeOfDayObjectWrapper&);
00029 
00030       virtual void setObjectName(const DtString&);
00031       virtual DtString objectName() const;
00032 
00033       virtual DtSimCommandObjectWrapper* clone() const;
00034    };
00035 
00036    class DT_DLL_VRFGUICOREQT DtSimulationCommandSetTimeOfDayDialog : public DtSimulationCommandDialogInterface
00037    {
00038       Q_OBJECT
00039    public:
00040       //CTOR
00041       DtSimulationCommandSetTimeOfDayDialog(makVrv::DtDe& de, QWidget* parent, const Qt::WindowFlags& flags = 0);
00042 
00043       //DTOR
00044       virtual ~DtSimulationCommandSetTimeOfDayDialog();
00045 
00047       virtual void setTime(double secondsPastMidnight);
00048 
00049       virtual float getTime() const;
00050 
00051    protected:
00052       virtual void sendRequest();
00053       virtual void setupStatement(const DtSimStatement*);
00054 
00055       virtual bool wantsSelectionOfObjectInCommandMode() const;
00056 
00057    protected:
00058 
00059       virtual QWidget* contents(const std::vector<makVrv::DtSimEntry*>& data);         
00060       virtual bool editStatement(const std::vector<makVrv::DtSimEntry*>& data, const DtSimStatement* s);
00061 
00062    protected:
00063 
00064       DtEnvironmentSettingsDateAndTimeWidget* myContentsWidget;
00065    };
00066 
00067    class DT_DLL_VRFGUICOREQT DtSimulationCommandSetTimeOfDayCreator : public DtVrfSimulationCommandDialogCreator
00068    {
00069    public:
00070       virtual DtSimulationCommandDialogInterface* create(makVrv::DtDe&, QWidget* parent);
00071       virtual bool supportsType(int, const DtSimStatement*) const;
00072       virtual std::string objectNameFromStatement(const DtSimCommand*) const;
00073    };
00074 }

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)