|
|
The part manager is an object which knows about a collection of 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. See also KParts::Part::manager and KParts::Part::setManager .
|
Create a part manager.
Parameters:
parent | The toplevel widget (window / dialog). |
void |
Set the selection policy of the partmanager.
SelectionPolicy |
[const]
Retrieve the current selection policy.
void |
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.
bool |
[virtual]
void |
[virtual]
Add a Part to the manager.
Sets it to the active part automatically if setActive
is true (default ).
void |
[virtual]
Remove a part from the manager (this does not delete the object) .
Sets the active part to 0 if part
is the activePart() .
void |
[virtual]
Set the active part.
The active part receives activation events.
widget
can be used to specify which widget was responsible for the activation.
This is important if you have multiple views for a document/part , like in KOffice .
Part * |
[const virtual]
Retrieve the active part.
QWidget * |
[const virtual]
Retrieve the active widget of the current active part (see activePart ).
void |
[virtual]
Set the selected part.
The selected part receives selection events.
widget
can be used to specify which widget was responsible for the selection.
This is important if you have multiple views for a document/part , like in KOffice .
Part * |
[const virtual]
Retrieve the current selected part.
QWidget * |
[const virtual]
Retrieve the selected widget of the current selected part (see selectedPart ).
const QList<Part> * |
[const]
Retrieve the list of parts being managed by the partmanager.
void |
[signal]
Emitted when a new part has been added.
void |
[signal]
Emitted when a part has been removed.
void |
[signal]
Emitted when the active part has changed.
void |
[protected slot]
Removes a part when it is destroyed.
void |
[protected slot]
Generated by: root@porky.devel.redhat.com on Wed May 10 08:57:00 2000, using kdoc 2.0a35. |