KParts

guiactivateevent.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_guiactivateevent_h__
10 #define __kparts_guiactivateevent_h__
11 
12 #include <kparts/event.h>
13 
14 namespace KParts
15 {
16 class GUIActivateEventPrivate;
17 /**
18  * @class GUIActivateEvent guiactivateevent.h <KParts/GUIActivateEvent>
19  *
20  * @short This event is sent to a Part when its GUI has been activated or deactivated.
21  * This is related to PartActivateEvent, but the difference is that
22  * GUIActivateEvent happens later (when the GUI is actually built),
23  * only for parts that have GUI elements, and only if using KParts::MainWindow.
24  * @see KParts::Part::guiActivateEvent()
25  */
26 class KPARTS_EXPORT GUIActivateEvent : public Event
27 {
28 public:
29  GUIActivateEvent(bool activated);
30  virtual ~GUIActivateEvent();
31 
32  bool activated() const;
33 
34  static bool test(const QEvent *event);
35 
36 private:
37  Q_DECLARE_PRIVATE_D(Event::d, GUIActivateEvent)
38 #if KPARTS_BUILD_DEPRECATED_SINCE(5, 79)
39  // Unused, kept for ABI compatibility
40  const void *__kparts_d_do_not_use;
41 #endif
42 };
43 
44 } // namespace
45 
46 #endif
This event is sent to a Part when its GUI has been activated or deactivated.
Base class for all KParts events.
Definition: event.h:27
The KParts namespace,.
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Tue Oct 19 2021 22:56:36 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.