![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /********************************************************************* 00002 ** Copyright (c) 2007 MaK Technologies, Inc. 00003 ** All rights reserved. 00004 *********************************************************************/ 00005 /********************************************************************* 00006 ** $RCSfile: uiRealElement.h,v $ $Revision: 1.1 $ $State: Exp $ 00007 *********************************************************************/ 00008 00011 00012 #ifndef DTUIREALELEMENT_H_ 00013 #define DTUIREALELEMENT_H_ 00014 00015 #include "entityEditorImpl/uiElement.h" 00016 #include "vrfutil/rwInt.h" 00017 #include "vrfutil/rwReal.h" 00018 00019 class QDoubleValidator; 00020 class QLineEdit; 00021 00022 #include "entityEditorImpl/entityEditorImplDefines.h" 00023 00024 class DT_DLL_entityeditorimpl DtUiRealElement : public DtUiElement 00025 { 00026 public: 00027 00029 DtUiRealElement 00030 ( 00031 const DtString& name, 00032 DtReaderWriterRegistry* const parentRegistry = NULL 00033 ); 00034 00036 virtual ~DtUiRealElement(); 00037 00039 DtUiRealElement(const DtUiRealElement& orig); 00040 00042 DtUiRealElement& operator=(const DtUiRealElement& orig); 00043 00044 virtual void setFromParameters(DtReaderWriter* parentRw); 00045 00046 protected: 00047 virtual QWidget* createDataEntryElement(QWidget*); 00048 virtual void elementChanged(); 00049 00050 protected: 00051 virtual DtUiElement* clone(); 00052 00053 protected: 00054 QDoubleValidator* myValidator; 00055 00056 DtRwReal myLowerBound; 00057 DtRwReal myUpperBound; 00058 DtRwInt myDecimals; 00059 QLineEdit* myLineEdit; 00060 double myDiff; 00061 }; 00062 00063 #endif