20 #include <tdeparts/event.h>
22 using namespace KParts;
25 #define TDEPARTS_EVENT_MAGIC 42
27 Event::Event(
const char *eventName )
28 : TQCustomEvent( (TQEvent::Type)(TQEvent::User + TDEPARTS_EVENT_MAGIC), (void *)eventName )
32 const char *Event::eventName()
const
37 return (
const char *)data();
40 bool Event::test(
const TQEvent *event )
45 return (
event->type() == (TQEvent::Type)(TQEvent::User + TDEPARTS_EVENT_MAGIC ) );
48 bool Event::test(
const TQEvent *event,
const char *name )
53 return ( strcmp( name, (
const char *)((TQCustomEvent *)event)->data() ) == 0 );
56 const char *GUIActivateEvent::s_strGUIActivateEvent =
"KParts/GUIActivate";
57 const char *PartActivateEvent::s_strPartActivateEvent =
"KParts/PartActivateEvent";
58 const char *PartSelectEvent::s_strPartSelectEvent =
"KParts/PartSelectEvent";
int event(const TQString &message, const TQString &text=TQString::null) TDE_DEPRECATED