00001 /****************************************************************************** 00002 ** Copyright (c) 1992-2010 VT MAK 00003 ** All rights reserved. 00004 ******************************************************************************/ 00005 00008 00009 #ifndef lgrRangeAnnotationDialog_H_ 00010 #define lgrRangeAnnotationDialog_H_ 00011 00012 #include "lgrAnn.h" 00013 #include <QtGui/QDialog> 00014 #include "ui_rangeAnnotationDialogUI.h" 00015 00016 namespace MAKLogger 00017 { 00018 class DtAbsoluteTime; 00019 class DtLgrAnnotation; 00020 class DtLgrGuiModel; 00021 class DtLgrRangeAnnotation; 00022 00025 class DT_DLL_LGRANN DtLgrRangeAnnotationDialog : public QDialog, public Ui::DtRangeAnnotationDialogUI 00026 { 00027 Q_OBJECT 00028 public: 00029 00031 static DtLgrAnnotation* createRangeAnnotation(QWidget* parent, 00032 DtLgrGuiModel* model); 00033 00035 static void modifyRangeAnnotation(QWidget* parent,DtLgrAnnotation*, 00036 DtLgrGuiModel* model); 00037 00039 DtLgrRangeAnnotationDialog(const QString& name,DtAbsoluteTime startTime, 00040 DtAbsoluteTime endTime,const QString& text, QWidget* parent = 0); 00041 00043 virtual ~DtLgrRangeAnnotationDialog(); 00044 00047 virtual void setAnnotation(DtLgrRangeAnnotation* annotation); 00048 00050 DtLgrRangeAnnotation* annotation(); 00051 00052 public slots: 00053 00055 void onOk(); 00056 00058 void onCancel(); 00059 00060 protected: 00061 DtLgrRangeAnnotation* myCreateAnnotation; 00062 }; 00063 } 00064 00065 #endif