VR-Forces 4.0.4 Class Documentation
include/vrfGuiCommon/createObjectMenuItem.h
Go to the documentation of this file.
00001 /*********************************************************************
00002 ** Copyright (c) 2000 MaK Technologies, Inc.
00003 ** All rights reserved.
00004 *********************************************************************/
00005 /*********************************************************************
00006 ** $RCSfile: createObjectMenuItem.h,v $ $Revision: 1.3 $ $State: Exp $
00007 *********************************************************************/
00008 
00011 
00012 #ifndef CREATEOBJECTMENUITEM_H
00013 #define CREATEOBJECTMENUITEM_H
00014 
00015 #include "vrfGuiCommon/menuItem.h"
00016 
00017 #include "vrfutil/rwObjType.h"
00018 #include "vrfutil/rwForce.h"
00019 
00023 
00024 #include "vrfGuiCommon/vrfGuiCommonDefines.h"
00025 class DT_DLL_vrfGuiCommon DtCreateObjectMenuItem : public DtMenuItem
00026 {
00027 
00028 public:
00029 
00031    DtCreateObjectMenuItem
00032    (
00033       const DtString& name,
00034       DtReaderWriterRegistry* const parentRegistry = NULL
00035    );
00036 
00038    virtual ~DtCreateObjectMenuItem();
00039 
00041    DtCreateObjectMenuItem(const DtCreateObjectMenuItem& orig);
00042 
00044    DtCreateObjectMenuItem& operator=(const DtCreateObjectMenuItem& orig);
00045 
00046    virtual DtObjectType objectType() const;
00047    void setObjectType(const DtObjectType&);
00048 
00049    virtual DtForceType forceType() const;
00050    void setForceType(DtForceType);
00051 
00052    virtual bool operator==(const DtMenuEntry&) const;
00053 
00054    virtual DtMenuEntry* clone() const;
00055 
00056 protected:
00057 
00058    DtRwObjectType myObjectType;
00059    DtRwForceType myForceType;
00060 };
00061 
00062 inline void DtCreateObjectMenuItem::setObjectType(const DtObjectType& o)
00063 {
00064    myObjectType = o;
00065 }
00066 
00067 inline void DtCreateObjectMenuItem::setForceType(DtForceType f)
00068 {
00069    myForceType = f;
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)