VR-Forces 4.0.4 Class Documentation
include/entityEditorImpl/uiItemComponent.h
Go to the documentation of this file.
00001 /*********************************************************************
00002 ** Copyright (c) 2007 MaK Technologies, Inc.
00003 ** All rights reserved.
00004 *********************************************************************/
00005 /*********************************************************************
00006 ** $RCSfile: uiItemComponent.h,v $ $Revision: 1.1 $ $State: Exp $
00007 *********************************************************************/
00008 
00011 
00012 #ifndef DTUIITEMCOMPONENT_H_
00013 #define DTUIITEMCOMPONENT_H_
00014 
00015 #include "entityEditorImpl/uiElement.h"
00016 
00017 #include <vrfutil/rwString.h>
00018 #include <vrfutil/rwBoolean.h>
00019 
00020 class DtComponentDescriptorList;
00021 class DtVrfObjectParameters;
00022 class DtComponentDescriptor;
00023 class QCheckBox;
00024 
00025 #include "entityEditorImpl/entityEditorImplDefines.h"
00026 
00027 class DT_DLL_entityeditorimpl DtUiItemComponent : public DtUiElement
00028 {
00029 public:
00030 
00032    DtUiItemComponent
00033    (
00034       const DtString& name,
00035       DtReaderWriterRegistry* const parentRegistry = NULL
00036    );
00037 
00039    virtual ~DtUiItemComponent();
00040 
00042    DtUiItemComponent(const DtUiItemComponent& orig);
00043 
00045    DtUiItemComponent& operator=(const DtUiItemComponent& orig);
00046 
00047 protected:
00048    virtual QWidget* createLabelWidget(QWidget* parent) {return 0;};
00049    virtual QWidget* createControls(QWidget*);
00050    virtual void setFromParameters(DtReaderWriter* parentRw);
00051    virtual void elementChanged();
00052    virtual DtComponentDescriptor* addComponentDescriptor(DtVrfObjectParameters* params);
00053 
00054    virtual DtComponentDescriptorList* getList(DtVrfObjectParameters*) const;
00055    virtual bool isModified() const;
00056 
00058    virtual void processUiEvent(const DtUiElementEvent&);
00059 
00060 protected:
00061    virtual DtUiElement* clone();
00062 
00063 protected:
00064    QCheckBox*  myCheckBox;
00065    DtVrfObjectParameters* myParameters;
00066    DtRwString  myCategory;
00067    DtRwString  myComponentType;
00068    DtRwString  myParameterType;
00069    DtRwBoolean myAutomaticallyAdd;
00070 };
00071 
00072 #endif

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)