|
|
Base class for parts.
A "part" is a GUI component, featuring:
See also ReadOnlyPart and ReadWritePart, which define the framework for a "viewer" part and for an "editor"-like part. Use Part directly only if your part doesn't fit into those.
| |
Contructor.
Parameters:
| parent | Parent object of the part. |
| name | QT-internal name of the part. |
| ~ |
[virtual]
Destructor.
| void |
[virtual]
Embed this part into a host widget.
You don't need to do this if you created the widget with the correct parent widget - this is just a QWidget::reparent(). Note that the Part is still the holder of the QWidget, meaning that if you delete the Part, then the widget gets destroyed as well, and vice-versa. This method is not recommended since creating the widget with the correct parent is simpler anyway.
| QWidget * |
[virtual]
Returns: The widget defined by this part, set by setWidget().
| void |
[virtual]
Used by the part manager.
| PartManager * |
Returns the part manager handling this part, if any (0L otherwise).
| Part * |
[virtual]
| void |
[virtual]
Parameters:
| selectable | Indicates whether the part is selectable or not. |
| bool |
[const virtual]
Returns whether the part is selectable or not.
| void |
[signal]
Emitted by the part, to set the caption of the window(s) hosting this part
| void |
[signal]
Emited by the part, to set a text in the statusbar of the window(s) hosting this part
| protected: /** * Set the main widget. * * Call this in the Part-inherited class constructor. */ void |
[virtual signal]
| bool |
[virtual signal]
| void |
[virtual signal]
Convenience method which is called when the Part received a PartActivateEvent . Reimplement this if you don't want to reimplement event and test for the event yourself or even install an event filter.
| void |
[virtual signal]
Convenience method which is called when the Part received a PartSelectEvent . Reimplement this if you don't want to reimplement event and test for the event yourself or even install an event filter.
| void |
[virtual signal]
Convenience method which is called when the Part received a GUIActivateEvent . Reimplement this if you don't want to reimplement event and test for the event yourself or even install an event filter.
| QWidget * |
[signal]
Convenience method for KXMLGUIFactory::container.
Returns: a container widget owned by the Part's GUI.
| private slots: void |
[signal]