org.kde.koala
public class Part extends QObject implements PartBaseInterface
UNKNOWN: Base class for parts.
| Constructor Summary | |
|---|---|
| protected | Part(Class dummy) |
| Part(QObject parent, String name)
Constructor. | |
| Part(QObject parent) | |
| Part() | |
| Method Summary | |
|---|---|
| String | className() |
| protected void | customEvent(QCustomEvent event) |
| void | embed(QWidget parentWidget)
Embed this part into a host widget.
|
| protected void | guiActivateEvent(GUIActivateEvent event)
Convenience method which is called when the Part received a
GUIActivateEvent .
|
| Part | hitTest(QWidget widget, QPoint globalPos)
Returns the part (this, or a child part) at the given global position.
|
| protected QWidget | hostContainer(String containerName)
Convenience method for KXMLGUIFactory.container. |
| boolean | isSelectable()
Returns whether the part is selectable or not. |
| protected void | loadPlugins(QObject parent, KXMLGUIClientInterface parentGUIClient, KInstanceInterface instance)
Load the Plugins honoring the PluginLoadingMode.
|
| PartManager | manager()
Returns the part manager handling this part, if any (null otherwise). |
| QMetaObject | metaObject() |
| protected void | partActivateEvent(PartActivateEvent event)
Convenience method which is called when the Part received a PartActivateEvent .
|
| QObject | partObject() |
| protected void | partSelectEvent(PartSelectEvent event)
Convenience method which is called when the Part received a
PartSelectEvent .
|
| protected void | setInstance(KInstanceInterface instance)
Set the instance ( KInstance) for this part.
|
| protected void | setInstance(KInstanceInterface instance, boolean loadPlugins)
Set the instance ( KInstance) for this part.
|
| void | setManager(PartManager manager)
Used by the part manager. |
| void | setPartObject(QObject object)
Internal method. |
| void | setSelectable(boolean selectable) |
| protected void | setWidget(QWidget widget)
Set the main widget.
|
| QWidget | widget() |
Parameters: parent Parent object of the part. name QT-internal name of the part.
UNKNOWN: Constructor.
UNKNOWN:
UNKNOWN: Embed this part into a host widget.
UNKNOWN: Convenience method which is called when the Part received a GUIActivateEvent .
Parameters: widget the part widget being clicked - usually the same as widget(), except in koffice. globalPos the mouse coordinates in global coordinates
UNKNOWN: Returns the part (this, or a child part) at the given global position.
Returns: a container widget owned by the Part's GUI.
UNKNOWN: Convenience method for KXMLGUIFactory.container.
UNKNOWN: Returns whether the part is selectable or not.
if( factory() )
{
QPtrList plugins = KParts.Plugin.pluginObjects( this );
QPtrListIterator it( plugins );
KParts.Plugin plugin;
while( ( plugin = it.current() ) != 0 )
{
++it;
factory().addClient( plugin );
}
}
UNKNOWN: Load the Plugins honoring the PluginLoadingMode.
UNKNOWN: Returns the part manager handling this part, if any (0L otherwise).
UNKNOWN: Convenience method which is called when the Part received a PartActivateEvent .
UNKNOWN: Convenience method which is called when the Part received a PartSelectEvent .
UNKNOWN: Set the instance ( KInstance) for this part.
UNKNOWN: Set the instance ( KInstance) for this part.
UNKNOWN:
UNKNOWN: Internal method.
Parameters: selectable Indicates whether the part is selectable or not.
UNKNOWN:
UNKNOWN: Set the main widget.
Returns: The widget defined by this part, set by setWidget().
UNKNOWN: