class KParts.PartBase |
|
|
Base class for all parts. Base class for all parts. |
|
Constructor. |
|
|
|
|
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. |
DoNotLoadPlugins | - | Don't load any plugins at all. | |
LoadPlugins | - | Load new plugins automatically. Can be overridden by the plugin if it sets EnabledByDefault=false in the corresponding .desktop file. | |
LoadPluginsIfEnabled | - | New plugins are disabled by default. Can be overridden by the plugin if it sets EnabledByDefault=true in the corresponding .desktop file. |