Main Page | Namespace List | Class Hierarchy | Data Structures | File List | Data Fields | Globals

widgetevent.h

Go to the documentation of this file.
00001 //--- < WIDGETEVENT.H > ---------| ViewGraph - A Flexible Graph view Framework |
00002 //
00003 // Defines events changing a widget's state
00004 // 
00005 //
00006 // $Author: botik32 $
00007 // $Revision: 1.3 $
00008 // $Date: 2004/05/03 21:02:01 $
00009 //-----------------------------------------------------------------------------/
00010 
00011 #ifndef WIDGETEVENT_H
00012 #define WIDGETEVENT_H
00013 
00014 #include <cZUI/event.h>
00015 
00016 class BaseSceneNode;
00017 
00018 /// Defines events changing a widget's state.
00019 class WidgetEvent : public Event{
00020 protected:
00021         BaseSceneNode *sender;
00022 public:
00023         WidgetEvent( Camera *, const char *, BaseSceneNode* );
00024         static const char *type;
00025         bool is_type( const char * );
00026         inline BaseSceneNode* get_sender( void ){
00027                 return sender;
00028         };
00029 };
00030 
00031 /// This is an internal event used by Checkbox
00032 class CheckboxToggledEvent : public WidgetEvent
00033 {
00034 public:
00035         CheckboxToggledEvent( Camera *, BaseSceneNode *s );
00036         static const char* type;
00037 };
00038 
00039 /// Subscribe to this event if interested in selection
00040 /// changes (see EventListener).
00041 class SelectionChangedEvent : public WidgetEvent
00042 {
00043 public:
00044         SelectionChangedEvent( Camera *, BaseSceneNode *s );
00045         static const char* type;
00046 };
00047 
00048 #endif

Generated on Wed Jun 23 18:47:21 2004 for cZUI by doxygen 1.3.5