CMenuEvent.hpp

Go to the documentation of this file.
00001 #ifndef __CMenuEvent__
00002 #define __CMenuEvent__
00003 
00004 #include <Basics/CCountedObject.hpp>
00005 #include "../Controls/CMenuItem.hpp"
00006 #include "../Controls/CMenu.hpp"
00007 
00008 //  ===========================================================================
00009 
00010 using Exponent::Basics::CCountedObject;
00011 using Exponent::GUI::Controls::CMenuItem;
00012 using Exponent::GUI::Controls::CMenu;
00013 
00014 //  ===========================================================================
00015 
00016 namespace Exponent
00017 {
00018     namespace GUI
00019     {
00020         namespace Events
00021         {
00039             class CMenuEvent : public CCountedObject
00040             {
00042                 EXPONENT_CLASS_DECLARATION;
00045 //  ===========================================================================
00046 
00047             public:
00048 
00049 //  ===========================================================================
00050 
00056                 CMenuEvent(CMenuItem *item, CMenu *menu);
00057 
00061                 virtual ~CMenuEvent();
00062 
00063 //  ===========================================================================
00064 
00069                 long identify() const;
00070 
00075                 CMenuItem *getMenuItem() const;
00076 
00081                 CMenu *getMenu() const;
00082 
00083 //  ===========================================================================
00084 
00089                 void setMenuItem(CMenuItem *item);
00090 
00095                 void setMenu(CMenu *menu);
00096 
00097 //  ===========================================================================
00098 
00099             protected:
00100 
00101 //  ===========================================================================
00102 
00103                 CMenuItem *m_menuItem;          
00104                 CMenu *m_menu;                  
00106             };
00107         }
00108     }
00109 }
00110 #endif  // End of CMenuEvent.hpp

Infinity API - CMenuEvent.hpp Source File generated on 7 Mar 2007