KParts

event.h
1 /*
2  This file is part of the KDE project
3  SPDX-FileCopyrightText: 1999 Simon Hausmann <[email protected]>
4  SPDX-FileCopyrightText: 1999 David Faure <[email protected]>
5 
6  SPDX-License-Identifier: LGPL-2.0-or-later
7 */
8 
9 #ifndef __kparts_event_h__
10 #define __kparts_event_h__
11 
12 #include <kparts/kparts_export.h>
13 
14 #include <QEvent>
15 #include <memory>
16 
17 class QWidget;
18 
19 namespace KParts
20 {
21 class EventPrivate;
22 /**
23  * @class Event event.h <KParts/Event>
24  *
25  * @short Base class for all KParts events.
26  */
27 class KPARTS_EXPORT Event : public QEvent
28 {
29 public:
30  Event(const char *eventName);
31  ~Event() override;
32  virtual const char *eventName() const;
33 
34  static bool test(const QEvent *event);
35  static bool test(const QEvent *event, const char *name);
36 
37 protected:
38  explicit Event(EventPrivate &dd);
39 
40 private:
41  friend class GUIActivateEvent;
42  friend class OpenUrlEvent;
43  friend class PartActivateEvent;
44  friend class PartSelectEvent;
45  Q_DECLARE_PRIVATE_D(d, Event)
46  std::unique_ptr<class EventPrivate> const d;
47  // KF6 TODO: change private d to protected d_ptr, use normal Q_DECLARE_PRIVATE, remove friend
48 };
49 
50 } // namespace
51 
52 #endif
This event is sent when a part is selected or deselected.
This event is sent to a Part when its GUI has been activated or deactivated. This is related to PartA...
This event is sent by the part manager when the active part changes. Each time the active part change...
The KParts::OpenUrlEvent event informs that a given part has opened a given URL. Applications can use...
Definition: openurlevent.h:32
The KParts namespace,.
Base class for all KParts events.
Definition: event.h:27
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Fri Aug 12 2022 03:47:30 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.