• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • tdeparts
 

tdeparts

  • tdeparts
event.h
1/* This file is part of the KDE project
2 Copyright (C) 1999 Simon Hausmann <hausmann@kde.org>
3 (C) 1999 David Faure <faure@kde.org>
4
5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Library General Public
7 License as published by the Free Software Foundation; either
8 version 2 of the License, or (at your option) any later version.
9
10 This library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Library General Public License for more details.
14
15 You should have received a copy of the GNU Library General Public License
16 along with this library; see the file COPYING.LIB. If not, write to
17 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 Boston, MA 02110-1301, USA.
19*/
20#ifndef __tdeparts_event_h__
21#define __tdeparts_event_h__
22
23#include <tqevent.h>
24
25#include <tdelibs_export.h>
26
27class TQWidget;
28
29namespace KParts
30{
31class Part;
32
36class TDEPARTS_EXPORT Event : public TQCustomEvent
37{
38public:
39 Event( const char *eventName );
40
41 virtual const char *eventName() const;
42
43 static bool test( const TQEvent *event );
44 static bool test( const TQEvent *event, const char *name );
45};
46
54class TDEPARTS_EXPORT GUIActivateEvent : public Event
55{
56public:
57 GUIActivateEvent( bool activated ) : Event( s_strGUIActivateEvent ), m_bActivated( activated ) {}
58
59 bool activated() const { return m_bActivated; }
60
61 static bool test( const TQEvent *event ) { return Event::test( event, s_strGUIActivateEvent ); }
62
63private:
64 static const char *s_strGUIActivateEvent;
65 bool m_bActivated;
66};
67
76class TDEPARTS_EXPORT PartActivateEvent : public Event
77{
78public:
79 PartActivateEvent( bool activated, Part *part, TQWidget *widget ) : Event( s_strPartActivateEvent ), m_bActivated( activated ), m_part( part ), m_widget( widget ) {}
80
81 bool activated() const { return m_bActivated; }
82
83 Part *part() const { return m_part; }
84 TQWidget *widget() const { return m_widget; }
85
86 static bool test( const TQEvent *event ) { return Event::test( event, s_strPartActivateEvent ); }
87
88private:
89 static const char *s_strPartActivateEvent;
90 bool m_bActivated;
91 Part *m_part;
92 TQWidget *m_widget;
93};
94
99class TDEPARTS_EXPORT PartSelectEvent : public Event
100{
101public:
102 PartSelectEvent( bool selected, Part *part, TQWidget *widget ) : Event( s_strPartSelectEvent ), m_bSelected( selected ), m_part( part ), m_widget( widget ) {}
103
104 bool selected() const { return m_bSelected; }
105
106 Part *part() const { return m_part; }
107 TQWidget *widget() const { return m_widget; }
108
109 static bool test( const TQEvent *event ) { return Event::test( event, s_strPartSelectEvent ); }
110
111private:
112 static const char *s_strPartSelectEvent;
113 bool m_bSelected;
114 Part *m_part;
115 TQWidget *m_widget;
116};
117
118} // namespace
119
120#endif
KParts::Event
Base class for all KParts events.
Definition: event.h:37
KParts::GUIActivateEvent
This event is sent to a Part when its GUI has been activated or deactivated.
Definition: event.h:55
KParts::PartActivateEvent
This event is sent by the part manager when the active part changes.
Definition: event.h:77
KParts::PartSelectEvent
This event is sent when a part is selected or deselected.
Definition: event.h:100
KParts::Part
Base class for parts.
Definition: part.h:182

tdeparts

Skip menu "tdeparts"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

tdeparts

Skip menu "tdeparts"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdeparts by doxygen 1.9.4
This website is maintained by Timothy Pearson.