summaryrefslogtreecommitdiffstats
path: root/kdejava/koala/org/kde/koala/KXMLGUIBuilder.java
blob: 7096cc875510459c0fa05f6680a0e1a1644cd32d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
//Auto-generated by kalyptus. DO NOT EDIT.
package org.kde.koala;

import org.kde.qt.Qt;
import org.kde.qt.QtSupport;
import java.util.ArrayList;
import org.kde.qt.TQWidget;
import org.kde.qt.TQDomElement;

/**

 Abstract interface for a "GUI builder", used by the GUIFactory
 This interface is implemented by TDEMainWindow for the case where
 the toplevel widget is a TDEMainWindow. Other implementations may appear
 in the future (dialogs for instance)
 		@short    Abstract interface for a "GUI builder", used by the GUIFactory  This interface is implemented by TDEMainWindow for the case where  the toplevel widget is a TDEMainWindow.

*/
public class KXMLGUIBuilder implements QtSupport, KXMLGUIBuilderInterface {
	private long _qt;
	private boolean _allocatedInJavaWorld = true;
	protected KXMLGUIBuilder(Class dummy){}

	public KXMLGUIBuilder(TQWidget widget) {
		newKXMLGUIBuilder(widget);
	}
	private native void newKXMLGUIBuilder(TQWidget widget);
	public native KXMLGUIClientInterface builderClient();
	public native void setBuilderClient(KXMLGUIClientInterface client);
	public native TDEInstanceInterface builderInstance();
	public native void setBuilderInstance(TDEInstanceInterface instance);
	public native TQWidget widget();
	public native ArrayList containerTags();
	/**	
		 Creates a container (menubar/menu/toolbar/statusbar/separator/...)
		 from an element in the XML file
			@param parent The parent for the container
			@param index The index where the container should be inserted
		              into the parent container/widget
			@param element The element from the DOM tree describing the
		                container (use it to access container specified
		                attributes or child elements)
			@param id The id to be used for this container
		   		@short    Creates a container (menubar/menu/toolbar/statusbar/separator/.
	*/
	public native TQWidget createContainer(TQWidget parent, int index, TQDomElement element, int[] id);
	/**	
		 Removes the given (and previously via createContainer )
		 created container.
			   		@short    Removes the given (and previously via createContainer )  created container.
	*/
	public native void removeContainer(TQWidget container, TQWidget parent, TQDomElement element, int id);
	public native ArrayList customTags();
	public native int createCustomElement(TQWidget parent, int index, TQDomElement element);
	public native void removeCustomElement(TQWidget parent, int id);
	public native void finalizeGUI(KXMLGUIClientInterface client);
	/** 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();
}