VR-Forces 4.0.4 Class Documentation
include/vrfGuiCommon/menuEntry.h
Go to the documentation of this file.
00001 /*********************************************************************
00002 ** Copyright (c) 2000 MaK Technologies, Inc.
00003 ** All rights reserved.
00004 *********************************************************************/
00005 /*********************************************************************
00006 ** $RCSfile: menuEntry.h,v $ $Revision: 1.4 $ $State: Exp $
00007 *********************************************************************/
00008 
00011 
00012 #ifndef MENUENTRY_H
00013 #define MENUENTRY_H
00014 
00015 #include "vrfutil/rdrWritr.h"
00016 
00017 #include "vrfutil/rwString.h"
00018 
00022 
00023 #include "vrfGuiCommon/vrfGuiCommonDefines.h"
00024 class DT_DLL_vrfGuiCommon DtMenuEntry : public DtReaderWriter
00025 {
00026 
00027 public:
00028 
00030    DtMenuEntry
00031    (
00032       const DtString& name,
00033       DtReaderWriterRegistry* const parentRegistry = NULL
00034    );
00035    
00037    virtual ~DtMenuEntry();
00038 
00040    DtMenuEntry(const DtMenuEntry& orig);
00041 
00043    DtMenuEntry& operator=(const DtMenuEntry& orig);
00044 
00045    virtual DtString label() const;
00046    void setLabel(const DtString&);
00047 
00048    virtual bool operator==(const DtMenuEntry&) const;
00049    virtual bool operator!=(const DtMenuEntry&) const;
00050 
00051    virtual DtMenuEntry* clone() const;
00052 
00053 protected:
00054 
00055    DtRwString myLabel;
00056 
00057 };
00058 
00059 inline void DtMenuEntry::setLabel(const DtString& label)
00060 {
00061    myLabel = label;
00062 }
00063 
00064 #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)