partmanager.cpp
71 kdWarning(1000) << "PartManagerPrivate::setReason got unexpected ev type " << ev->type() << endl;
198 kdDebug(1000) << "PartManager::eventFilter button: " << mev->button() << " " << "d->m_activationButtonMask=" << d->m_activationButtonMask << endl;
252 kdDebug(1000) << "Part " << part << " (non-selectable) made active because " << w->className() << " got event" << " " << evType << endl;
263 kdDebug(1000) << "Part " << part << " made active (from selected) because " << w->className() << " got event" << " " << evType << endl;
281 kdDebug(1000) << "Part " << part << " made active because " << w->className() << " got event" << " " << evType << endl;
297 kdDebug(1000) << TQString("No part made active although %1/%2 got event - loop aborted").arg(obj->name()).arg(obj->className()) << endl;
305 kdDebug(1000) << TQString("No part made active although %1/%2 got event").arg(obj->name()).arg(obj->className()) << endl;
357 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;
361 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;
373 kdFatal(1000) << TQString(TQString("Can't remove part %1, not in KPartManager's list.").arg(part->name())) << endl;
395 //kdDebug(1000) << "replacePart " << oldPart->name() << "-> " << newPart->name() << " setActive=" << setActive << endl;
396 // This methods does exactly removePart + addPart but without calling setActivePart(0) in between
399 kdFatal(1000) << TQString(TQString("Can't remove part %1, not in KPartManager's list.").arg(oldPart->name())) << endl;
415 kdWarning( 1000 ) << "PartManager::setActivePart : trying to activate a non-registered part! " << part->name() << endl;
419 //check whether nested parts are disallowed and activate the top parent part then, by traversing the
423 TQObject *parentPart = TQT_TQOBJECT(part->parent()); // ### this relies on people using KParts::Factory!
433 kdDebug(1000) << "PartManager::setActivePart d->m_activePart=" << d->m_activePart << "<->part=" << part
TQString kdBacktrace(int levels=-1)
short int activationButtonMask() const
Definition: partmanager.cpp:171
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:500
void setIgnoreScrollBars(bool ignore)
Specifies whether the partmanager should ignore mouse click events for scrollbars or not.
Definition: partmanager.cpp:156
virtual void setActiveInstance(TDEInstance *instance)
Changes the active instance when the active part changes.
Definition: partmanager.cpp:489
kdbgstream kdWarning(int area=0)
PartManager(TQWidget *parent, const char *name=0L)
Constructs a part manager.
Definition: partmanager.cpp:95
virtual void removePart(Part *part)
Removes a part from the manager (this does not delete the object) .
Definition: partmanager.cpp:369
kndbgstream & endl(kndbgstream &s)
virtual void setActivePart(Part *part, TQWidget *widget=0L)
Sets the active part.
Definition: partmanager.cpp:411
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:563
virtual void setSelectedPart(Part *part, TQWidget *widget=0L)
Sets the selected part.
Definition: partmanager.cpp:505
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:166
SelectionPolicy
Selection policy. The default policy of a PartManager is Direct.
Definition: partmanager.h:59
virtual Part * selectedPart() const
Returns the current selected part.
Definition: partmanager.cpp:534
virtual TQWidget * selectedWidget() const
Returns the selected widget of the current selected part (see selectedPart()).
Definition: partmanager.cpp:539
kdbgstream kdFatal(int area=0)
const TQPtrList< Part > * parts() const
Returns the list of parts being managed by the partmanager.
Definition: partmanager.cpp:558
void setSelectionPolicy(SelectionPolicy policy)
Sets the selection policy of the partmanager.
Definition: partmanager.cpp:136
SelectionPolicy selectionPolicy() const
Returns the current selection policy.
Definition: partmanager.cpp:141
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:333
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:393
void removeManagedTopLevelWidget(const TQWidget *topLevel)
Removes the topLevel widget from the list of managed toplevel widgets.
Definition: partmanager.cpp:576
void setAllowNestedParts(bool allow)
Specifies whether the partmanager should handle/allow nested parts or not.
Definition: partmanager.cpp:146
Trinity API Reference