instance
and make the Plugin objects children of parent.
It is recommended to use the last loadPlugins method instead,
to support enabling and disabling of plugins.
@short Load the plugin libraries from the directories appropriate to instance
and make the Plugin objects children of parent.
*/
public static native void loadPlugins(TQObject parent, TDEInstanceInterface instance);
/**
Load the plugin libraries specified by the list docs
and make the
Plugin objects children of parent
.
It is recommended to use the last loadPlugins method instead,
to support enabling and disabling of plugins.
@short Load the plugin libraries specified by the list docs
and make the Plugin objects children of parent
.
*/
// void loadPlugins(TQObject* arg1,const TQValueListpluginInfos
, make the
Plugin objects children of parent
, and use the given instance.
It is recommended to use the last loadPlugins method instead,
to support enabling and disabling of plugins.
@short Load the plugin libraries specified by the list pluginInfos
, make the Plugin objects children of parent
, and use the given instance.
*/
// void loadPlugins(TQObject* arg1,const TQValueListinstance
, make the
Plugin objects children of parent
, and insert the plugin as a child GUI client
of parentGUIClient.
This method uses the TDEConfig object of the given instance, to find out which
plugins are enabled and which are disabled. What happens by default (i.e.
for new plugins that are not in that config file) is controlled by
enableNewPluginsByDefault.
It can be overridden by the plugin if it
sets the X-TDE-PluginInfo-EnabledByDefault key in the .desktop file
(with the same name as the .rc file)
If a disabled plugin is already loaded it will be removed from the GUI
factory and deleted.
This method is automatically called by KParts.Plugin and by KParts.MainWindow.
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() ) { TQPtrList@short Load the plugin libraries for the givenplugins = KParts.Plugin.pluginObjects( this ); TQPtrListIterator it( plugins ); KParts.Plugin plugin; while( ( plugin = it.current() ) != 0 ) { ++it; factory().addClient( plugin ); } }
instance
, make the Plugin objects children of parent
, and insert the plugin as a child GUI client of parentGUIClient.
*/
public static native void loadPlugins(TQObject parent, KXMLGUIClientInterface parentGUIClient, TDEInstanceInterface instance, boolean enableNewPluginsByDefault);
public static native void loadPlugins(TQObject parent, KXMLGUIClientInterface parentGUIClient, TDEInstanceInterface instance);
/**
Returns a list of plugin objects loaded for parent.
This
functions basically calls the queryList method of
TQObject to retrieve the list of child objects inheriting
KParts.Plugin .
@short Returns a list of plugin objects loaded for parent.
*/
// TQPtrListinstance
's "data" directory (+"/kpartplugins")
@return A list of TQDomDocument s, containing the parsed xml documents returned by plugins.
@short Look for plugins in the instance
's "data" directory (+"/kpartplugins")
*/
// TQValueListlibname
@short
*/
protected static native Plugin loadPlugin(TQObject parent, String libname);
/**
Retrieves an action of the client by name. If not found, it looks in its child clients.
This method is provided for convenience, as it uses actionCollection()
to get the action object.
@short Retrieves an action of the client by name.
*/
public native KAction action(String name);
/**
Retrieves an action for a given TQDomElement. The default
implementation uses the "name" attribute to query the action
object via the other action() method.
@short Retrieves an action for a given TQDomElement.
*/
public native KAction action(TQDomElement element);
/**
Retrieves the entire action collection for the GUI client. If
you subclass KXMLGUIClient you should call
KActionCollection.setWidget( TQWidget ) with this object, or
you will encounter subtle bugs with KAction keyboard shortcuts.
This is not necessary if your KXMLGUIClient is a KMainWindow.
@short Retrieves the entire action collection for the GUI client.
@see KActionCollection#setWidget(
@see #org#kde#qt#TQWidget*
*/
public native KActionCollection actionCollection();
/**
@return The instance ( TDEInstance ) for this GUI client.
@short
*/
public native TDEInstanceInterface instance();
/**
@return The parsed XML in a TQDomDocument, set by
setXMLFile() or setXML().
This document describes the layout of the GUI.
@short
*/
public native TQDomDocument domDocument();
/**
@short
*/
public native void setXMLGUIBuildDocument(TQDomDocument doc);
/**
@short
*/
public native TQDomDocument xmlguiBuildDocument();
/**
This method is called by the KXMLGUIFactory as soon as the client
is added to the KXMLGUIFactory's GUI.
@short This method is called by the KXMLGUIFactory as soon as the client is added to the KXMLGUIFactory's GUI.
*/
public native void setFactory(KXMLGUIFactory factory);
/**
Retrieves a pointer to the KXMLGUIFactory this client is
associated with (will return null if the client's GUI has not been built
by a KXMLGUIFactory.
@short Retrieves a pointer to the KXMLGUIFactory this client is associated with (will return 0L if the client's GUI has not been built by a KXMLGUIFactory.
*/
public native KXMLGUIFactory factory();
/**
KXMLGUIClients can form a simple child/parent object tree. This
method returns a pointer to the parent client or null if it has no
parent client assigned.
@short KXMLGUIClients can form a simple child/parent object tree.
*/
public native KXMLGUIClientInterface parentClient();
/**
Use this method to make a client a child client of another client.
Usually you don't need to call this method, as it is called
automatically when using the second constructor, which takes a
parent argument.
@short Use this method to make a client a child client of another client.
*/
public native void insertChildClient(KXMLGUIClientInterface child);
/**
Removes the given child
from the client's children list.
@short Removes the given child
from the client's children list.
*/
public native void removeChildClient(KXMLGUIClientInterface child);
/**
Retrieves a list of all child clients.
@short Retrieves a list of all child clients.
*/
// const TQPtrList\