org.kde.koala
public class PartManager extends QObject
UNKNOWN: The part manager is an object which knows about a collection of parts (even nested ones) and handles activation/deactivation.
Constructor Summary | |
---|---|
protected | PartManager(Class dummy) |
PartManager(QWidget parent, String name)
Constructs a part manager. | |
PartManager(QWidget parent) | |
PartManager(QWidget topLevel, QObject parent, String name)
Constructs a part manager. | |
PartManager(QWidget topLevel, QObject parent) |
Method Summary | |
---|---|
short | activationButtonMask() |
Part | activePart()
Returns the active part. |
QWidget | activeWidget()
Returns the active widget of the current active part (see activePart()). |
void | addManagedTopLevelWidget(QWidget topLevel)
Adds the topLevel widget to the list of managed toplevel widgets.
|
void | addPart(Part part, boolean setActive)
Adds a part to the manager.
|
void | addPart(Part part) |
boolean | allowNestedParts() |
String | className() |
boolean | eventFilter(QObject arg1, QEvent ev) |
boolean | ignoreScrollBars() |
QMetaObject | metaObject() |
int | reason() |
void | removeManagedTopLevelWidget(QWidget topLevel)
Removes the topLevel widget from the list of managed toplevel widgets. |
void | removePart(Part part)
Removes a part from the manager (this does not delete the object) .
|
void | replacePart(Part oldPart, Part newPart, boolean setActive)
Replaces oldPart with newPart , and sets newPart as active if
setActive is true.
|
void | replacePart(Part oldPart, Part newPart) |
Part | selectedPart()
Returns the current selected part. |
QWidget | selectedWidget()
Returns the selected widget of the current selected part (see selectedPart()). |
void | setActivationButtonMask(short buttonMask)
Specifies which mouse buttons the partmanager should react upon.
|
protected void | setActiveInstance(KInstanceInterface instance)
Changes the active instance when the active part changes.
|
void | setActivePart(Part part, QWidget widget)
Sets the active part.
|
void | setActivePart(Part part) |
void | setAllowNestedParts(boolean allow)
Specifies whether the partmanager should handle/allow nested parts
or not.
|
void | setIgnoreScrollBars(boolean ignore)
Specifies whether the partmanager should ignore mouse click events for
scrollbars or not. |
void | setSelectedPart(Part part, QWidget widget)
Sets the selected part.
|
void | setSelectedPart(Part part) |
protected void | slotManagedTopLevelWidgetDestroyed() |
protected void | slotObjectDestroyed()
Removes a part when it is destroyed. |
protected void | slotWidgetDestroyed() |
Parameters: parent The toplevel widget (window / dialog) the partmanager should monitor for activation/selection events name The object's name, if any.
UNKNOWN: Constructs a part manager.
Parameters: topLevel The toplevel widget (window / dialog ) the partmanager should monitor for activation/selection events parent The parent QObject. name The object's name, if any.
UNKNOWN: Constructs a part manager.
See Also: PartManager
UNKNOWN:
UNKNOWN: Returns the active part.
UNKNOWN: Returns the active widget of the current active part (see activePart()).
topLevel
widget to the list of managed toplevel widgets.
Usually a PartManager only listens for events (for activation/selection)
for one toplevel widget (and its children), the one specified in the
constructor. Sometimes however (like for example when using the KDE dockwidget
library), it is necessary to extend this.UNKNOWN: Adds the topLevel
widget to the list of managed toplevel widgets.
setActive
is true (default ).
Behavior fix in KDE3.4: the part's widget is shown only if setActive
is true,
it used to be shown in all cases before.UNKNOWN: Adds a part to the manager.
See Also: PartManager
UNKNOWN:
UNKNOWN:
See Also: PartManager
UNKNOWN:
Returns: the reason for the last activePartChanged signal emitted.
See Also: Reason
UNKNOWN:
topLevel
widget from the list of managed toplevel widgets.See Also: PartManager
UNKNOWN: Removes the topLevel
widget from the list of managed toplevel widgets.
part
is the activePart() .UNKNOWN: Removes a part from the manager (this does not delete the object) .
oldPart
with newPart
, and sets newPart
as active if
setActive
is true.
This is an optimised version of removePart + addPartUNKNOWN: Replaces oldPart
with newPart
, and sets newPart
as active if setActive
is true.
UNKNOWN: Returns the current selected part.
UNKNOWN: Returns the selected widget of the current selected part (see selectedPart()).
Parameters: buttonMask a combination of Qt.ButtonState values e.g. Qt.LeftButton | Qt.MidButton
UNKNOWN: Specifies which mouse buttons the partmanager should react upon.
UNKNOWN: Changes the active instance when the active part changes.
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.UNKNOWN: Sets the active part.
UNKNOWN: Specifies whether the partmanager should handle/allow nested parts or not.
UNKNOWN: Specifies whether the partmanager should ignore mouse click events for scrollbars or not.
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.UNKNOWN: Sets the selected part.
UNKNOWN:
UNKNOWN: Removes a part when it is destroyed.
UNKNOWN: