setStartStopTimesDialog.h
Go to the documentation of this file.
00001 /******************************************************************************
00002 ** Copyright (c) 1992-2010 VT MAK
00003 ** All rights reserved.
00004 ******************************************************************************/
00005 
00008 
00009 #ifndef setStartStopTimesDialog_H_
00010 #define setStartStopTimesDialog_H_
00011 
00012 #include "lgrGui.h"
00013 #include "absoluteTime.h"
00014 #include "ui_setStartStopTimesUI.h"
00015 #include <commonWidgets/preciseTimeEdit.h>
00016 
00017 namespace MAKLogger
00018 {
00019    class DtLgrGuiModel;
00020 
00022    class DT_DLL_LGRGUI DtSetStartStopTimesDialog : public QDialog, 
00023       public Ui_DtSetStartStopTimeDialogUi
00024    {
00025       Q_OBJECT
00026 
00027    public:      
00028 
00030       DtSetStartStopTimesDialog(DtLgrGuiModel& model,QWidget* parent);
00031 
00032    public slots:
00033 
00034       virtual void onCancel();
00035       virtual void onOK();
00036 
00037 
00038    protected slots:
00039 
00040       void setStartToBeginning();
00041       void setEndToEnd();
00042       void lockDurationChanged(bool);
00043       void startChanged();
00044       void stopChanged();
00045       void durationChanged();
00046 
00047    protected:
00048 
00050       void updateDuration();
00051 
00053       DtRelativeTime duration() const;
00054 
00056       void setStartErrorCondition(bool valid,const QString& message);
00057 
00059       void setEndErrorCondition(bool valid,const QString& message);
00060 
00061       bool validateStartTime(DtAbsoluteTime time,QString& errorMessage);
00062       bool validateEndTime(DtAbsoluteTime time,QString& errorMessage);
00063       bool validateDurationTime(DtRelativeTime time,QString& errorMessage);
00064 
00065       DtLgrGuiModel* myModel;
00066       bool myDurationLocked;
00067       bool myStartInputValid;
00068       bool myStopInputValid;
00069       DtAbsoluteTime myNewStart;
00070       DtAbsoluteTime myNewStop;
00071 
00072       MAKCommonWidgets::DtPreciseTimeEdit* myStartEdit;
00073       MAKCommonWidgets::DtPreciseTimeEdit* myStopEdit;
00074       MAKCommonWidgets::DtPreciseTimeEdit* myRelDurEdit;
00075    };
00076 }
00077 
00078 #endif

Document ID: Generated on Tue Oct 11 19:41:03 EDT 2011 from SVN revision 107422
Copyright © 2005-2011 VT MÄK Inc. All Rights Reserved (www.mak.com)