partmanager.cpp
70 kdWarning(1000) << "PartManagerPrivate::setReason got unexpected ev type " << ev->type() << endl;
197 kdDebug(1000) << "PartManager::eventFilter button: " << mev->button() << " " << "d->m_activationButtonMask=" << d->m_activationButtonMask << endl;
251 kdDebug(1000) << "Part " << part << " (non-selectable) made active because " << w->className() << " got event" << " " << evType << endl;
262 kdDebug(1000) << "Part " << part << " made active (from selected) because " << w->className() << " got event" << " " << evType << endl;
280 kdDebug(1000) << "Part " << part << " made active because " << w->className() << " got event" << " " << evType << endl;
296 kdDebug(1000) << TQString("No part made active although %1/%2 got event - loop aborted").arg(obj->name()).arg(obj->className()) << endl;
304 kdDebug(1000) << TQString("No part made active although %1/%2 got event").arg(obj->name()).arg(obj->className()) << endl;
356 kdWarning(1000) << "Part '" << part->name() << "' has a widget " << part->widget()->name() << " with a focus policy of NoFocus. It should have at least a ClickFocus policy, for part activation to work well." << endl;
360 kdWarning(1000) << "Part '" << part->name() << "' has a widget " << part->widget()->name() << " with a focus policy of TabFocus. It should have at least a ClickFocus policy, for part activation to work well." << endl;
372 kdFatal(1000) << TQString(TQString("Can't remove part %1, not in KPartManager's list.").arg(part->name())) << endl;
394 //kdDebug(1000) << "replacePart " << oldPart->name() << "-> " << newPart->name() << " setActive=" << setActive << endl;
395 // This methods does exactly removePart + addPart but without calling setActivePart(0) in between
398 kdFatal(1000) << TQString(TQString("Can't remove part %1, not in KPartManager's list.").arg(oldPart->name())) << endl;
414 kdWarning( 1000 ) << "PartManager::setActivePart : trying to activate a non-registered part! " << part->name() << endl;
418 //check whether nested parts are disallowed and activate the top parent part then, by traversing the
422 TQObject *parentPart = TQT_TQOBJECT(part->parent()); // ### this relies on people using KParts::Factory!
432 kdDebug(1000) << "PartManager::setActivePart d->m_activePart=" << d->m_activePart << "<->part=" << part
TQString kdBacktrace(int levels=-1)
short int activationButtonMask() const
Definition: partmanager.cpp:170
This event is sent when a part is selected or deselected.
Definition: event.h:99
void partRemoved(KParts::Part *part)
Emitted when a part has been removed.
void partAdded(KParts::Part *part)
Emitted when a new part has been added.
virtual TQWidget * activeWidget() const
Returns the active widget of the current active part (see activePart()).
Definition: partmanager.cpp:499
void setIgnoreScrollBars(bool ignore)
Specifies whether the partmanager should ignore mouse click events for scrollbars or not.
Definition: partmanager.cpp:155
virtual void setActiveInstance(TDEInstance *instance)
Changes the active instance when the active part changes.
Definition: partmanager.cpp:488
kdbgstream kdWarning(int area=0)
PartManager(TQWidget *parent, const char *name=0L)
Constructs a part manager.
Definition: partmanager.cpp:94
virtual void removePart(Part *part)
Removes a part from the manager (this does not delete the object) .
Definition: partmanager.cpp:368
kndbgstream & endl(kndbgstream &s)
virtual void setActivePart(Part *part, TQWidget *widget=0L)
Sets the active part.
Definition: partmanager.cpp:410
void activePartChanged(KParts::Part *newPart)
Emitted when the active part has changed.
void addManagedTopLevelWidget(const TQWidget *topLevel)
Adds the topLevel widget to the list of managed toplevel widgets.
Definition: partmanager.cpp:562
virtual void setSelectedPart(Part *part, TQWidget *widget=0L)
Sets the selected part.
Definition: partmanager.cpp:504
kdbgstream kdDebug(int area=0)
virtual Part * hitTest(TQWidget *widget, const TQPoint &globalPos)
Returns the part (this, or a child part) at the given global position.
Definition: part.cpp:186
void setActivationButtonMask(short int buttonMask)
Specifies which mouse buttons the partmanager should react upon.
Definition: partmanager.cpp:165
SelectionPolicy
Selection policy. The default policy of a PartManager is Direct.
Definition: partmanager.h:58
virtual Part * selectedPart() const
Returns the current selected part.
Definition: partmanager.cpp:533
virtual TQWidget * selectedWidget() const
Returns the selected widget of the current selected part (see selectedPart()).
Definition: partmanager.cpp:538
kdbgstream kdFatal(int area=0)
const TQPtrList< Part > * parts() const
Returns the list of parts being managed by the partmanager.
Definition: partmanager.cpp:557
void setSelectionPolicy(SelectionPolicy policy)
Sets the selection policy of the partmanager.
Definition: partmanager.cpp:135
SelectionPolicy selectionPolicy() const
Returns the current selection policy.
Definition: partmanager.cpp:140
This event is sent by the part manager when the active part changes.
Definition: event.h:76
virtual void addPart(Part *part, bool setActive=true)
Adds a part to the manager.
Definition: partmanager.cpp:332
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:392
void removeManagedTopLevelWidget(const TQWidget *topLevel)
Removes the topLevel widget from the list of managed toplevel widgets.
Definition: partmanager.cpp:575
void setAllowNestedParts(bool allow)
Specifies whether the partmanager should handle/allow nested parts or not.
Definition: partmanager.cpp:145