![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /********************************************************************* 00002 ** Copyright (c) 2008 MaK Technologies, Inc. 00003 ** All rights reserved. 00004 *********************************************************************/ 00005 /********************************************************************* 00006 ** $RCSfile: uiCombatRangeController.h,v $ $Revision: 1.1 $ $State: Exp $ 00007 *********************************************************************/ 00008 00011 00012 #ifndef DtUiCombatRangeControllerElement_H 00013 #define DtUiCombatRangeControllerElement_H 00014 00015 #include "entityEditorImpl/uiItemComponent.h" 00016 #include "entityEditorImpl/entityEditorImplDefines.h" 00017 00018 #include <vrfutil/rwReal.h> 00019 #include <vrfobjparam/combatRangeCtlDesc.h> 00020 00021 class QCheckBox; 00022 class QLineEdit; 00023 class QLabel; 00024 00025 class DT_DLL_entityeditorimpl DtUiCombatRangeControllerElement : public DtUiItemComponent 00026 { 00027 public: 00028 00030 DtUiCombatRangeControllerElement 00031 ( 00032 const DtString& name, 00033 DtReaderWriterRegistry* const parentRegistry = NULL 00034 ); 00035 00037 virtual ~DtUiCombatRangeControllerElement(); 00038 00040 DtUiCombatRangeControllerElement(const DtUiCombatRangeControllerElement& orig); 00041 00043 DtUiCombatRangeControllerElement& operator=(const DtUiCombatRangeControllerElement& orig); 00044 00045 protected: 00046 virtual QWidget* createLabelWidget(QWidget* parent) {return 0;}; 00047 virtual QWidget* createControls(QWidget*); 00048 virtual void setFromParameters(DtReaderWriter* parentRw); 00049 virtual void elementChanged(); 00050 00051 virtual bool isModified() const; 00052 virtual bool rangeModified() const; 00053 00054 protected: 00055 virtual DtUiElement* clone(); 00056 virtual DtComponentDescriptor* addComponentDescriptor(DtVrfObjectParameters* params); 00057 00058 protected: 00059 00060 bool myRangeModified; 00061 QLineEdit* myLineEdit; 00062 QLabel* myLineEditLabel; 00063 DtRwReal myDefaultRange; 00064 00065 }; 00066 00067 #endif