![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /********************************************************************* 00002 ** Copyright (c) 2008 MaK Technologies, Inc. 00003 ** All rights reserved. 00004 *********************************************************************/ 00005 /********************************************************************* 00006 ** $RCSfile: uiDIGuyElement.h,v $ $Revision: 1.3 $ $State: Exp $ 00007 ** Created: 5/5/08 MEM 00008 *********************************************************************/ 00009 00012 00013 #ifndef uiDIGuyElement_H_ 00014 #define uiDIGuyElement_H 00015 00016 #include "entityEditorImpl/uiElement.h" 00017 00018 class DtDIGuyConfigurationWidget; 00019 class QLabel; 00020 class DtVrfObjectParameters; 00021 00022 #include "entityEditorImpl/entityEditorImplDefines.h" 00023 00024 class DT_DLL_entityeditorimpl DtUiDIGuyElement : public DtUiElement 00025 { 00026 public: 00027 00029 DtUiDIGuyElement 00030 ( 00031 const DtString& name, 00032 DtReaderWriterRegistry* const parentRegistry = NULL 00033 ); 00034 00036 virtual ~DtUiDIGuyElement(); 00037 00039 DtUiDIGuyElement(const DtUiDIGuyElement& orig); 00040 00042 DtUiDIGuyElement& operator=(const DtUiDIGuyElement& orig); 00043 00044 public: 00045 virtual QWidget* createLabelWidget(QWidget* parent) {return 0;}; 00046 virtual QWidget* createControls(QWidget*); 00047 00048 virtual void processUiEvent(const DtUiElementEvent& e); 00049 00050 protected: 00051 virtual DtUiElement* clone(); 00052 virtual void decorateElement(); 00053 virtual void setFromParameters(DtReaderWriter* parentRw); 00054 virtual void elementChanged(); 00055 virtual void setModified(QLabel*, bool); 00056 virtual bool isModified() const; 00057 00060 virtual void updateRandomAppearanceList(bool useRandom); 00061 virtual void updateAppearance(bool useRandom); 00062 00063 protected: 00064 DtDIGuyConfigurationWidget* myDIGuyWidget; 00065 bool myEnabledFlag; 00066 DtVrfObjectParameters* myParameters; 00067 00068 }; 00069 00070 #endif