//Auto-generated by kalyptus. DO NOT EDIT. package org.kde.koala; import org.kde.qt.Qt; import org.kde.qt.TQDomDocument; import org.kde.qt.TQMetaObject; import org.kde.qt.QtSupport; import org.kde.qt.TQObject; import org.kde.qt.TQWidget; import org.kde.qt.TQDomElement; import org.kde.qt.TQObject; /** A plugin is the way to add actions to an existing KParts application, or to a Part. The XML of those plugins looks exactly like of the shell or parts, with one small difference: The document tag should have an additional attribute, named "library", and contain the name of the library implementing the plugin. If you want this plugin to be used by a part, you need to install the rc file under the directory "data" (TDEDIR/share/apps usually)+"/instancename/kpartplugins/" where instancename is the name of the part's instance. You should also install a "plugin info" .desktop file with the same name. \see PluginInfo @short A plugin is the way to add actions to an existing KParts application, or to a Part. */ public class Plugin extends TQObject implements KXMLGUIClientInterface { protected Plugin(Class dummy){super((Class) null);} public native TQMetaObject metaObject(); public native String className(); /** Construct a new KParts plugin. @short Construct a new KParts plugin. */ public Plugin(TQObject parent, String name) { super((Class) null); newPlugin(parent,name); } private native void newPlugin(TQObject parent, String name); public Plugin(TQObject parent) { super((Class) null); newPlugin(parent); } private native void newPlugin(TQObject parent); public Plugin() { super((Class) null); newPlugin(); } private native void newPlugin(); /** Reimplemented for internal reasons @short Reimplemented for internal reasons */ public native String xmlFile(); /** Reimplemented for internal reasons @short Reimplemented for internal reasons */ public native String localXMLFile(); /** Load the plugin libraries from the directories appropriate to 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 TQValueList& arg2); >>>> NOT CONVERTED /** Load the plugin libraries specified by the list pluginInfos, 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 TQValueList& arg2,const TDEInstance* arg3); >>>> NOT CONVERTED /** Load the plugin libraries for the given instance, 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 plugins = KParts.Plugin.pluginObjects( this );
		   TQPtrListIterator it( plugins );
		   KParts.Plugin  plugin;
		   while( ( plugin = it.current() ) != 0 )
		   {
		     ++it;
		     factory().addClient(  plugin );
		   }
		 }
		 
@short Load the plugin libraries for the given 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. */ // TQPtrList pluginObjects(TQObject* arg1); >>>> NOT CONVERTED protected native void setInstance(TDEInstanceInterface instance); /** Look for plugins in the instance'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") */ // TQValueList pluginInfos(const TDEInstance* arg1); >>>> NOT CONVERTED /** @return The plugin created from the library libname @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* childClients(); >>>> NOT CONVERTED /** A client can have an own KXMLGUIBuilder. Use this method to assign your builder instance to the client (so that the KXMLGUIFactory can use it when building the client's GUI) Client specific guibuilders are useful if you want to create custom container widgets for your GUI. @short A client can have an own KXMLGUIBuilder. */ public native void setClientBuilder(KXMLGUIBuilderInterface builder); /** Retrieves the client's GUI builder or null if no client specific builder has been assigned via setClientBuilder() @short Retrieves the client's GUI builder or 0L if no client specific builder has been assigned via setClientBuilder() */ public native KXMLGUIBuilderInterface clientBuilder(); /** Forces this client to re-read its XML resource file. This is intended to be used when you know that the resource file has changed and you will soon be rebuilding the GUI. It has no useful effect with non-KParts GUIs, so don't bother using it unless your app is component based. @short Forces this client to re-read its XML resource file. */ public native void reloadXML(); /** ActionLists are a way for XMLGUI to support dynamic lists of actions. E.g. if you are writing a file manager, and there is a menu file whose contents depend on the mimetype of the file that is selected, then you can achieve this using ActionLists. It works as follows: In your xxxui.rc file ( the one that you set in setXMLFile() ), you put an

\

tag. E.g.
		 
		 
		   
		     ...