//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.TQListViewItem; import org.kde.qt.TQMetaObject; import org.kde.qt.QtSupport; import org.kde.qt.TQDropEvent; import org.kde.qt.TQWidget; import org.kde.qt.TQDomElement; import org.kde.qt.TQWidget; /** This is the widget that does all of the work for the KEditToolbar dialog. In most cases, you will want to use the dialog instead of this widget directly. Typically, you would use this widget only if you wanted to embed the toolbar editing directly into your existing configure or preferences dialog. This widget only works if your application uses the XML UI framework for creating menus and toolbars. It depends on the XML files to describe the toolbar layouts and it requires the actions to determine which buttons are active. See {@link KEditToolbarWidgetSignals} for signals emitted by KEditToolbarWidget @author Kurt Granroth @version $Id$ @short A widget used to customize or configure toolbars. */ public class KEditToolbarWidget extends TQWidget implements KXMLGUIClientInterface { protected KEditToolbarWidget(Class dummy){super((Class) null);} public native TQMetaObject metaObject(); public native String className(); /** Constructor. This is the only entry point to this class. You must pass along your collection of actions (some of which appear in your toolbars). The other three parameters are optional. The second parameter, xmlfile, is the name (absolute or relative) of your application's UI resource file. If it is left blank, then the resource file: share/apps/appname/appnameui.rc is used. This is the same resource file that is used by the default createGUI function in TDEMainWindow so you're usually pretty safe in leaving it blank. The third parameter, global, controls whether or not the global resource file is used. If this is true, then you may edit all of the actions in your toolbars -- global ones and local one. If it is false, then you may edit only your application's entries. The only time you should set this to false is if your application does not use the global resource file at all (very rare) The last parameter, parent, is the standard parent stuff. @param collection The collection of actions to work on @param xmlfile The application's local resource file @param global If true, then the global resource file will also be parsed @param parent This widget's parent @short Constructor. */ public KEditToolbarWidget(TDEActionCollection collection, String xmlfile, boolean global, TQWidget parent) { super((Class) null); newKEditToolbarWidget(collection,xmlfile,global,parent); } private native void newKEditToolbarWidget(TDEActionCollection collection, String xmlfile, boolean global, TQWidget parent); public KEditToolbarWidget(TDEActionCollection collection, String xmlfile, boolean global) { super((Class) null); newKEditToolbarWidget(collection,xmlfile,global); } private native void newKEditToolbarWidget(TDEActionCollection collection, String xmlfile, boolean global); public KEditToolbarWidget(TDEActionCollection collection, String xmlfile) { super((Class) null); newKEditToolbarWidget(collection,xmlfile); } private native void newKEditToolbarWidget(TDEActionCollection collection, String xmlfile); public KEditToolbarWidget(TDEActionCollection collection) { super((Class) null); newKEditToolbarWidget(collection); } private native void newKEditToolbarWidget(TDEActionCollection collection); public KEditToolbarWidget(String defaultToolbar, TDEActionCollection collection, String file, boolean global, TQWidget parent) { super((Class) null); newKEditToolbarWidget(defaultToolbar,collection,file,global,parent); } private native void newKEditToolbarWidget(String defaultToolbar, TDEActionCollection collection, String file, boolean global, TQWidget parent); public KEditToolbarWidget(String defaultToolbar, TDEActionCollection collection, String file, boolean global) { super((Class) null); newKEditToolbarWidget(defaultToolbar,collection,file,global); } private native void newKEditToolbarWidget(String defaultToolbar, TDEActionCollection collection, String file, boolean global); public KEditToolbarWidget(String defaultToolbar, TDEActionCollection collection, String file) { super((Class) null); newKEditToolbarWidget(defaultToolbar,collection,file); } private native void newKEditToolbarWidget(String defaultToolbar, TDEActionCollection collection, String file); public KEditToolbarWidget(String defaultToolbar, TDEActionCollection collection) { super((Class) null); newKEditToolbarWidget(defaultToolbar,collection); } private native void newKEditToolbarWidget(String defaultToolbar, TDEActionCollection collection); /** Constructor for KParts based apps. The first parameter, factory, is a pointer to the XML GUI factory object for your application. It contains a list of all of the GUI clients (along with the action collections and xml files) and the toolbar editor uses that. The second parameter, parent, is the standard parent Use this like so:
		 KEditToolbar edit(factory());
		 if ( edit.exec() )
		 ...
		 
@param factory Your application's factory object @param parent This widget's parent @short Constructor for KParts based apps. */ public KEditToolbarWidget(KXMLGUIFactory factory, TQWidget parent) { super((Class) null); newKEditToolbarWidget(factory,parent); } private native void newKEditToolbarWidget(KXMLGUIFactory factory, TQWidget parent); public KEditToolbarWidget(KXMLGUIFactory factory) { super((Class) null); newKEditToolbarWidget(factory); } private native void newKEditToolbarWidget(KXMLGUIFactory factory); public KEditToolbarWidget(String defaultToolbar, KXMLGUIFactory factory, TQWidget parent) { super((Class) null); newKEditToolbarWidget(defaultToolbar,factory,parent); } private native void newKEditToolbarWidget(String defaultToolbar, KXMLGUIFactory factory, TQWidget parent); public KEditToolbarWidget(String defaultToolbar, KXMLGUIFactory factory) { super((Class) null); newKEditToolbarWidget(defaultToolbar,factory); } private native void newKEditToolbarWidget(String defaultToolbar, KXMLGUIFactory factory); /** @short */ public native TDEActionCollection actionCollection(); /** Save any changes the user made. The file will be in the user's local directory (usually $HOME/.trinity/share/apps/\). The filename will be the one specified in the constructor.. or the made up one if the filename was NULL. @return The status of whether or not the save succeeded. @short Save any changes the user made. */ public native boolean save(); /** Remove and readd all KMXLGUIClients to update the GUI @short Remove and readd all KMXLGUIClients to update the GUI */ public native void rebuildKXMLGUIClients(); protected native void setupLayout(); // void insertActive(ToolbarItem* arg1,TQListViewItem* arg2,bool arg3); >>>> NOT CONVERTED // void insertActive(ToolbarItem* arg1,TQListViewItem* arg2); >>>> NOT CONVERTED // void removeActive(ToolbarItem* arg1); >>>> NOT CONVERTED // void moveActive(ToolbarItem* arg1,TQListViewItem* arg2); >>>> NOT CONVERTED protected native void initNonKPart(TDEActionCollection collection, String file, boolean global); protected native void initKPart(KXMLGUIFactory factory); protected native void loadToolbarCombo(String defaultToolbar); protected native void loadToolbarCombo(); protected native void loadActionList(TQDomElement elem); protected native void updateLocal(TQDomElement elem); protected native void slotToolbarSelected(String text); protected native void slotInactiveSelected(TQListViewItem item); protected native void slotActiveSelected(TQListViewItem item); protected native void slotDropped(TDEListView list, TQDropEvent e, TQListViewItem after); protected native void slotInsertButton(); protected native void slotRemoveButton(); protected native void slotUpButton(); protected native void slotDownButton(); protected native void slotChangeIcon(); /** Deletes the wrapped C++ instance */ protected native void finalize() throws InternalError; /** Delete the wrapped C++ instance ahead of finalize() */ public native void dispose(); /** Has the wrapped C++ instance been deleted? */ public native boolean isDisposed(); /** 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 TDEAction 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 TDEAction action(TQDomElement element); /** @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(); /** 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.
		 
		 
		   
		     ...