class PartBase |
|
Base class for all parts.
Base class for all parts. |
|
Constructor. |
|
|
|
Load the Plugins honoring the PluginLoadingMode.
If you call this method in an already constructed GUI (like when the user has changed which plugins are enabled) you need to add the new plugins to the KXMLGUIFactory: if( factory() ) { QList |
|
|
Set the componentData(KComponentData) for this part.
Call this *first* in the inherited class constructor, because it loads the i18n catalogs. |
|
Set the componentData(KComponentData) for this part.
Call this *first* in the inherited class constructor, because it loads the i18n catalogs. |
|
Internal method. Called by KParts.Part to specify the parent object for plugin objects.
Internal |
|
If you change the binary interface offered by your part, you can avoid crashes
from old plugins lying around by setting X-KDE-InterfaceVersion=2 in the
.desktop files of the plugins, and calling setPluginInterfaceVersion( 2 ), so that
the old plugins are not loaded. Increase both numbers every time a
binary incompatible change in the application's plugin interface is made.
version - the interface version that plugins must have in order to be loaded. For a KParts.Part: call this before setComponentData. For a KParts.MainWindow: call this before createGUI. |
|
Set how plugins should be loaded
loadingMode - see PluginLoadingMode For a KParts.Part: call this before setComponentData. For a KParts.MainWindow: call this before createGUI. |
Don't load any plugins at all.
DoNotLoadPlugins | - 0 | - | ||
LoadPlugins | - 1 | - | ||
LoadPluginsIfEnabled | - 2 | - |