KParts
9 #ifndef __kpartmanager_h__
10 #define __kpartmanager_h__
12 #include <kparts/kparts_export.h>
21 class PartManagerPrivate;
39 Q_PROPERTY(
SelectionPolicy selectionPolicy READ selectionPolicy WRITE setSelectionPolicy)
40 Q_PROPERTY(
bool allowNestedParts READ allowNestedParts WRITE setAllowNestedParts)
41 Q_PROPERTY(
bool ignoreScrollBars READ ignoreScrollBars WRITE setIgnoreScrollBars)
45 Q_ENUM(SelectionPolicy)
52 enum
Reason { ReasonLeftClick = 100, ReasonMidClick, ReasonRightClick, NoReason };
76 void setSelectionPolicy(SelectionPolicy policy);
80 SelectionPolicy selectionPolicy()
const;
94 void setAllowNestedParts(
bool allow);
98 bool allowNestedParts()
const;
108 void setIgnoreScrollBars(
bool ignore);
112 bool ignoreScrollBars()
const;
119 void setActivationButtonMask(
short int buttonMask);
123 short int activationButtonMask()
const;
135 virtual void addPart(
Part *part,
bool setActive =
true);
142 virtual void removePart(
Part *part);
149 virtual void replacePart(
Part *oldPart,
Part *newPart,
bool setActive =
true);
159 virtual void setActivePart(
Part *part,
QWidget *widget =
nullptr);
164 virtual Part *activePart()
const;
169 virtual QWidget *activeWidget()
const;
171 #if KPARTS_BUILD_DEPRECATED_SINCE(5, 72)
182 KPARTS_DEPRECATED_VERSION(5, 72,
"Deprecated for lack of usage")
183 virtual
void setSelectedPart(
Part *part,
QWidget *widget =
nullptr);
186 #if KPARTS_BUILD_DEPRECATED_SINCE(5, 72)
192 KPARTS_DEPRECATED_VERSION(5, 72,
"Deprecated for lack of usage")
193 virtual
Part *selectedPart() const;
196 #if KPARTS_BUILD_DEPRECATED_SINCE(5, 72)
202 KPARTS_DEPRECATED_VERSION(5, 72,
"Deprecated for lack of usage")
203 virtual
QWidget *selectedWidget() const;
218 void addManagedTopLevelWidget(
const QWidget *topLevel);
223 void removeManagedTopLevelWidget(
const QWidget *topLevel);
259 void setIgnoreExplictFocusRequests(
bool);
265 void slotObjectDestroyed();
270 void slotWidgetDestroyed();
275 void slotManagedTopLevelWidgetDestroyed();
282 std::unique_ptr<PartManagerPrivate>
const d;
The part manager is an object which knows about a collection of parts (even nested ones) and handles ...
Reason
This extends QFocusEvent::Reason with the non-focus-event reasons for partmanager to activate a part.
SelectionPolicy
Selection policy. The default policy of a PartManager is Direct.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Fri Jan 27 2023 07:41:23 by
doxygen 1.8.17 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.