20 #ifndef __tdeparts_event_h__
21 #define __tdeparts_event_h__
25 #include <tdelibs_export.h>
36 class TDEPARTS_EXPORT
Event :
public TQCustomEvent
39 Event(
const char *eventName );
41 virtual const char *eventName()
const;
43 static bool test(
const TQEvent *event );
44 static bool test(
const TQEvent *event,
const char *name );
59 bool activated()
const {
return m_bActivated; }
61 static bool test(
const TQEvent *event ) {
return Event::test( event, s_strGUIActivateEvent ); }
64 static const char *s_strGUIActivateEvent;
79 PartActivateEvent(
bool activated,
Part *part, TQWidget *widget ) :
Event( s_strPartActivateEvent ), m_bActivated( activated ), m_part( part ), m_widget( widget ) {}
81 bool activated()
const {
return m_bActivated; }
83 Part *part()
const {
return m_part; }
84 TQWidget *widget()
const {
return m_widget; }
86 static bool test(
const TQEvent *event ) {
return Event::test( event, s_strPartActivateEvent ); }
89 static const char *s_strPartActivateEvent;
102 PartSelectEvent(
bool selected,
Part *part, TQWidget *widget ) :
Event( s_strPartSelectEvent ), m_bSelected( selected ), m_part( part ), m_widget( widget ) {}
104 bool selected()
const {
return m_bSelected; }
106 Part *part()
const {
return m_part; }
107 TQWidget *widget()
const {
return m_widget; }
109 static bool test(
const TQEvent *event ) {
return Event::test( event, s_strPartSelectEvent ); }
112 static const char *s_strPartSelectEvent;