KParts
Go to the documentation of this file.
20#ifndef __kpartmanager_h__
21#define __kpartmanager_h__
23#include <QtGui/QWidget>
34class PartManagerPrivate;
51 Q_PROPERTY(
SelectionPolicy selectionPolicy READ selectionPolicy WRITE setSelectionPolicy )
52 Q_PROPERTY(
bool allowNestedParts READ allowNestedParts WRITE setAllowNestedParts )
53 Q_PROPERTY(
bool ignoreScrollBars READ ignoreScrollBars WRITE setIgnoreScrollBars )
63 enum Reason { ReasonLeftClick = 100, ReasonMidClick, ReasonRightClick, NoReason };
87 void setSelectionPolicy( SelectionPolicy policy );
91 SelectionPolicy selectionPolicy()
const;
105 void setAllowNestedParts(
bool allow );
109 bool allowNestedParts()
const;
119 void setIgnoreScrollBars(
bool ignore );
123 bool ignoreScrollBars()
const;
130 void setActivationButtonMask(
short int buttonMask );
134 short int activationButtonMask()
const;
148 virtual void addPart(
Part *part,
bool setActive =
true );
155 virtual void removePart(
Part *part );
162 virtual void replacePart(
Part * oldPart,
Part * newPart,
bool setActive =
true );
172 virtual void setActivePart(
Part *part,
QWidget *widget = 0 );
177 virtual Part *activePart()
const;
182 virtual QWidget *activeWidget()
const;
192 virtual void setSelectedPart(
Part *part,
QWidget *widget = 0 );
197 virtual Part *selectedPart()
const;
202 virtual QWidget *selectedWidget()
const;
216 void addManagedTopLevelWidget(
const QWidget *topLevel );
221 void removeManagedTopLevelWidget(
const QWidget *topLevel );
264 void setIgnoreExplictFocusRequests(
bool);
270 void slotObjectDestroyed();
275 void slotWidgetDestroyed();
280 void slotManagedTopLevelWidgetDestroyed();
282 Part * findPartFromWidget(
QWidget * widget,
const QPoint &pos );
286 PartManagerPrivate*
const d;
The part manager is an object which knows about a collection of parts (even nested ones) and handles ...
void partAdded(KParts::Part *part)
Emitted when a new part has been added.
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.
void activePartChanged(KParts::Part *newPart)
Emitted when the active part has changed.
void partRemoved(KParts::Part *part)
Emitted when a part has been removed.
void setActiveComponent(const KComponentData &d)
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by
doxygen 1.9.6 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.