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());
void addManagedTopLevelWidget(const QWidget *topLevel)
Adds the topLevel widget to the list of managed toplevel widgets.
Definition: partmanager.cpp:569
Type type() const
virtual bool eventFilter(QObject *obj, QEvent *ev)
Definition: partmanager.cpp:185
void partRemoved(KParts::Part *part)
Emitted when a part has been removed.
focusPolicy
QObject * sender() const
This event is sent by the part manager when the active part changes.
Definition: event.h:82
Definition: partmanager.h:56
void setSelectionPolicy(SelectionPolicy policy)
Sets the selection policy of the partmanager.
Definition: partmanager.cpp:145
void slotManagedTopLevelWidgetDestroyed()
Definition: partmanager.cpp:590
virtual void removePart(Part *part)
Removes a part from the manager (this does not delete the object) .
Definition: partmanager.cpp:378
virtual const QMetaObject * metaObject() const
bool isTopLevel() const
static QDebug kDebug(bool cond, int area=KDE_DEFAULT_DEBUG_AREA)
bool disconnect(const QObject *sender, const char *signal, const QObject *receiver, const char *method)
void partAdded(KParts::Part *part)
Emitted when a new part has been added.
Qt::FocusReason reason() const
const QPoint & globalPos() const
void installEventFilter(QObject *filterObj)
QWidget * topLevelWidget() const
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
Definition: partmanager.h:56
const QList< Part * > parts() const
Returns the list of parts being managed by the partmanager.
Definition: partmanager.cpp:564
Qt::MouseButton button() const
void setIgnoreExplictFocusRequests(bool)
Sets whether the PartManager ignores explict set focus requests from the part.
Definition: partmanager.cpp:601
objectName
bool sendEvent(QObject *receiver, QEvent *event)
bool ignoreScrollBars() const
virtual void setSelectedPart(Part *part, QWidget *widget=0)
Sets the selected part.
Definition: partmanager.cpp:511
virtual Part * selectedPart() const
Returns the current selected part.
Definition: partmanager.cpp:540
Definition: browserextension.h:34
bool isModal() const
virtual void setActiveComponent(const KComponentData &instance)
Changes the active instance when the active part changes.
Definition: partmanager.cpp:495
void setActiveComponent(const KComponentData &d)
const char * className() const
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 addPart(Part *part, bool setActive=true)
Adds a part to the manager.
Definition: partmanager.cpp:340
SelectionPolicy
Selection policy. The default policy of a PartManager is Direct.
Definition: partmanager.h:56
windowFlags
void setIgnoreScrollBars(bool ignore)
Specifies whether the partmanager should ignore mouse click events for scrollbars or not...
Definition: partmanager.cpp:165
Definition: partmanager.h:63
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
QWidget * parentWidget() const
void setAllowNestedParts(bool allow)
Specifies whether the partmanager should handle/allow nested parts or not.
Definition: partmanager.cpp:155
const KComponentData & mainComponent()
static QDebug kWarning(bool cond, int area=KDE_DEFAULT_DEBUG_AREA)
virtual QWidget * selectedWidget() const
Returns the selected widget of the current selected part (see selectedPart ).
Definition: partmanager.cpp:545
SelectionPolicy selectionPolicy() const
Returns the current selection policy.
bool isWidgetType() const
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
QObject * parent() const
bool allowNestedParts() const
const KShortcut & end()
QString arg(qlonglong a, int fieldWidth, int base, const QChar &fillChar) const
static QDebug kFatal(bool cond, int area=KDE_DEFAULT_DEBUG_AREA)
short int activationButtonMask() const
Definition: partmanager.cpp:180
void destroyed(QObject *obj)
void activePartChanged(KParts::Part *newPart)
Emitted when the active part has changed.
void setActivationButtonMask(short int buttonMask)
Specifies which mouse buttons the partmanager should react upon.
Definition: partmanager.cpp:175
This event is sent when a part is selected or deselected.
Definition: event.h:103
void removeManagedTopLevelWidget(const QWidget *topLevel)
Removes the topLevel widget from the list of managed toplevel widgets.
Definition: partmanager.cpp:582
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:25:36 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:25:36 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.