class PartManager

The part manager is an object which knows about all parts (even nested ones) and handles activation/deactivation. More...

Full nameKParts::PartManager
Definition#include <partmanager.h>
InheritsQObject (qt)
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Types

Public Methods

Signals

Protected Slots


Detailed Description

The part manager is an object which knows about all parts (even nested ones) and handles activation/deactivation.

Applications that want to embed parts without merging GUIs only use a KPartManager. Those who want to merge GUIs use a KPartsMainWindow for example, in addition to a part manager.

Parts know about the part manager, to add nested parts to it, and get access to the window caption.

 PartManager ( QWidget * parent, const char * name = 0L )

Create a part manager.

Parameters:
parentThe toplevel widget (window / dialog).

void  setAllowNestedParts ( bool allow )

Specify whether the partmanager should handle/allow nested parts or not. This is a property the shell has to set/specify. Per default we assume that the shell cannot handle nested parts. However in case of a KOffice shell for example we allow nested parts. A Part is nested (a child part) if its parent object inherits KParts::Part. If a child part is activated and nested parts are not allowed/handled, then the top parent part in the tree is activated.

void  addPart ( Part *part, bool setActive = true )

[virtual]

Add a Part to the manager.

Sets it to the active part automatically.

void  removePart ( Part *part )

[virtual]

Remove a part.

Sets the active part to 0 if part is the activePart().

void  setActivePart ( Part *part, QWidget *widget = 0L )

[virtual]

Set the active part.

The active part receives events.

Part * activePart ()

[const virtual]

Retrieve the active part.

const QList<Part> * parts ()

[const]

Retrieve a list of parts managed being managed.

void  partAdded ( KParts::Part *part )

[signal]

Emitted when a new part has been added.

void  partRemoved ( KParts::Part *part )

[signal]

Emitted when a part has been removed.

void  activePartChanged ( KParts::Part *newPart )

[signal]

Emitted when the active part has changed.

void  slotObjectDestroyed ()

[protected slot]

Removes a part when it is destroyed.


Generated by: dfaure@faure on Sun Mar 26 14:24:54 2000, using kdoc 2.0a35.