//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.QtSupport; import org.kde.qt.TQWidget; import org.kde.qt.TQDomElement; /** A KXMLGUIClient can be used with KXMLGUIFactory to create a GUI from actions and an XML document, and can be dynamically merged with other KXMLGUIClients. @short */ public class KXMLGUIClient implements QtSupport, KXMLGUIClientInterface { private long _qt; private boolean _allocatedInJavaWorld = true; protected KXMLGUIClient(Class dummy){} public static final int StateNoReverse = 0; public static final int StateReverse = 1; /** Constructs a KXMLGUIClient which can be used with a KXMLGUIFactory to create a GUI from actions and an XML document, and which can be dynamically merged with other KXMLGUIClients. @short Constructs a KXMLGUIClient which can be used with a KXMLGUIFactory to create a GUI from actions and an XML document, and which can be dynamically merged with other KXMLGUIClients. */ public KXMLGUIClient() { newKXMLGUIClient(); } private native void newKXMLGUIClient(); /** Constructs a KXMLGUIClient which can be used with a KXMLGUIFactory to create a GUI from actions and an XML document, and which can be dynamically merged with other KXMLGUIClients. This constructor takes an additional parent argument, which makes the client a child client of the parent. Child clients are automatically added to the GUI if the parent is added. @short Constructs a KXMLGUIClient which can be used with a KXMLGUIFactory to create a GUI from actions and an XML document, and which can be dynamically merged with other KXMLGUIClients. */ public KXMLGUIClient(KXMLGUIClientInterface parent) { newKXMLGUIClient(parent); } private native void newKXMLGUIClient(KXMLGUIClientInterface parent); /** 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 ( KInstance ) for this GUI client. @short */ public native KInstanceInterface 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(); /** This will return the name of the XML file as set by setXMLFile(). If setXML() is used directly, then this will return NULL. The filename that this returns is obvious for components as each component has exactly one XML file. In non-components, however, there are usually two: the global file and the local file. This function doesn't really care about that, though. It will always return the last XML file set. This, in almost all cases, will be the local XML file. @return The name of the XML file or null @short This will return the name of the XML file as set by setXMLFile(). */ public native String xmlFile(); public native String localXMLFile(); /** @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.
		 
		 
		   
		     ...