KParts
partmanager.cpp
Go to the documentation of this file.
207 kDebug(1000) << "PartManager::eventFilter button: " << mev->button() << " " << "d->m_activationButtonMask=" << d->m_activationButtonMask;
261 kDebug(1000) << "Part " << part << " (non-selectable) made active because " << w->metaObject()->className() << " got event" << " " << evType;
272 kDebug(1000) << "Part " << part << " made active (from selected) because " << w->metaObject()->className() << " got event" << " " << evType;
290 kDebug(1000) << "Part " << part << " made active because " << w->metaObject()->className() << " got event" << " " << evType;
306 kDebug(1000) << QString("No part made active although %1/%2 got event - loop aborted").arg(obj->objectName()).arg(obj->metaObject()->className());
314 kDebug(1000) << QString("No part made active although %1/%2 got event").arg(obj->objectName()).arg(obj->metaObject()->className());
321 for ( QList<Part *>::iterator it = d->m_parts.begin(), end = d->m_parts.end() ; it != end ; ++it )
332 for ( QList<Part *>::iterator it = d->m_parts.begin(), end = d->m_parts.end() ; it != end ; ++it )
399 //kDebug(1000) << "replacePart " << oldPart->name() << "-> " << newPart->name() << " setActive=" << setActive;
400 // This methods does exactly removePart + addPart but without calling setActivePart(0) in between
403 kFatal(1000) << QString("Can't remove part %1, not in KPartManager's list.").arg(oldPart->objectName());
423 //check whether nested parts are disallowed and activate the top parent part then, by traversing the
437 kDebug(1000) << "PartManager::setActivePart d->m_activePart=" << d->m_activePart << "<->part=" << part
487 setActiveComponent(d->m_activePart ? d->m_activePart->componentData() : KGlobal::mainComponent());
This event is sent by the part manager when the active part changes.
Definition: event.h:83
void setIgnoreScrollBars(bool ignore)
Specifies whether the partmanager should ignore mouse click events for scrollbars or not.
Definition: partmanager.cpp:165
short int activationButtonMask() const
Definition: partmanager.cpp:180
void partAdded(KParts::Part *part)
Emitted when a new part has been added.
virtual void removePart(Part *part)
Removes a part from the manager (this does not delete the object) .
Definition: partmanager.cpp:378
void setActivationButtonMask(short int buttonMask)
Specifies which mouse buttons the partmanager should react upon.
Definition: partmanager.cpp:175
virtual QWidget * activeWidget() const
Returns the active widget of the current active part (see activePart ).
Definition: partmanager.cpp:506
virtual void setActivePart(Part *part, QWidget *widget=0)
Sets the active part.
Definition: partmanager.cpp:415
virtual void setActiveComponent(const KComponentData &instance)
Changes the active instance when the active part changes.
Definition: partmanager.cpp:495
SelectionPolicy
Selection policy. The default policy of a PartManager is Direct.
Definition: partmanager.h:56
virtual void replacePart(Part *oldPart, Part *newPart, bool setActive=true)
Replaces oldPart with newPart, and sets newPart as active if setActive is true.
Definition: partmanager.cpp:397
void setSelectionPolicy(SelectionPolicy policy)
Sets the selection policy of the partmanager.
Definition: partmanager.cpp:145
const QList< Part * > parts() const
Returns the list of parts being managed by the partmanager.
Definition: partmanager.cpp:564
void activePartChanged(KParts::Part *newPart)
Emitted when the active part has changed.
virtual bool eventFilter(QObject *obj, QEvent *ev)
Definition: partmanager.cpp:185
virtual QWidget * selectedWidget() const
Returns the selected widget of the current selected part (see selectedPart ).
Definition: partmanager.cpp:545
void slotManagedTopLevelWidgetDestroyed()
Definition: partmanager.cpp:590
void setIgnoreExplictFocusRequests(bool)
Sets whether the PartManager ignores explict set focus requests from the part.
Definition: partmanager.cpp:601
virtual Part * selectedPart() const
Returns the current selected part.
Definition: partmanager.cpp:540
void removeManagedTopLevelWidget(const QWidget *topLevel)
Removes the topLevel widget from the list of managed toplevel widgets.
Definition: partmanager.cpp:582
virtual void addPart(Part *part, bool setActive=true)
Adds a part to the manager.
Definition: partmanager.cpp:340
virtual void setSelectedPart(Part *part, QWidget *widget=0)
Sets the selected part.
Definition: partmanager.cpp:511
void setAllowNestedParts(bool allow)
Specifies whether the partmanager should handle/allow nested parts or not.
Definition: partmanager.cpp:155
void partRemoved(KParts::Part *part)
Emitted when a part has been removed.
void addManagedTopLevelWidget(const QWidget *topLevel)
Adds the topLevel widget to the list of managed toplevel widgets.
Definition: partmanager.cpp:569
This event is sent when a part is selected or deselected.
Definition: event.h:104
virtual Part * hitTest(QWidget *widget, const QPoint &globalPos)
Returns the part (this, or a child part) at the given global position.
Definition: part.cpp:271
#define kDebug
#define kWarning
const KComponentData & mainComponent()
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
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.