KParts

partselectevent.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 #ifndef __kparts_partselectevent_h__
9 #define __kparts_partselectevent_h__
10 
11 #include <kparts/event.h>
12 
13 namespace KParts
14 {
15 class Part;
16 
17 class PartSelectEventPrivate;
18 /**
19  * @class PartSelectEvent partselectevent.h <KParts/PartSelectEvent>
20  *
21  * @short This event is sent when a part is selected or deselected.
22  * @see KParts::PartManager::setSelectionPolicy
23  */
24 class KPARTS_EXPORT PartSelectEvent : public Event
25 {
26 public:
27  PartSelectEvent(bool selected, Part *part, QWidget *widget);
28  virtual ~PartSelectEvent();
29  bool selected() const;
30 
31  Part *part() const;
32  QWidget *widget() const;
33 
34  static bool test(const QEvent *event);
35 
36 private:
37  Q_DECLARE_PRIVATE_D(Event::d, PartSelectEvent)
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
Base class for parts.
Definition: part.h:62
Base class for all KParts events.
Definition: event.h:27
The KParts namespace,.
This event is sent when a part is selected or deselected.
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.