#ifndef EVENTBOX_HEADER #define EVENTBOX_HEADER 1 /////////////////////////////////////////////////////////// //! rcsid="$Id: EventBox.hh,v 1.4 2000/07/07 12:59:13 ees1cg Exp $" //! file="amma/GUI/GTK/EventBox.hh" //! lib=GUI //! userlevel=Normal //! docentry="GUI.Widget" //! author="Charles Galambos" //! date="17/06/99" #include "amma/GUI/OneChild.hh" //: Event box widget. class GUIEventBoxBodyC : public GUIOneChildBodyC { public: GUIEventBoxBodyC() {} //: Default constructor. GUIEventBoxBodyC(const GUIWidgetC &widge) : GUIOneChildBodyC(widge) {} //: Default constructor. virtual BooleanT Create(); //: Create the widget. }; //: Event box. class GUIEventBoxC : public GUIOneChildC { public: GUIEventBoxC() : DPEntityC(aTRUE) {} //: Default constructor GUIEventBoxC(const GUIWidgetC &widge,BooleanT) : DPEntityC(*new GUIEventBoxBodyC(widge)) {} //: Constructor protected: GUIEventBoxBodyC &Body() { return dynamic_cast(DPEntityC::Body()); } //: Access body. public: GUIEventBoxC(GUIWidgetC &widge) : DPEntityC(widge) { if(dynamic_cast(&DPEntityC::Body()) == 0) Invalidate(); } //: Base constructor. }; #endif