summaryrefslogtreecommitdiffstats
path: root/kdejava/koala/org/kde/koala/KURLBarItemDialog.java
blob: 473c63fe28e89a05d4652548c4194d9cbf46ea70 (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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
//Auto-generated by kalyptus. DO NOT EDIT.
package org.kde.koala;

import org.kde.qt.Qt;
import org.kde.qt.TQMetaObject;
import org.kde.qt.QtSupport;
import org.kde.qt.TQWidget;

/**

 A dialog that allows editing entries of a KURLBar ( KURLBarItem).
 The dialog offers to configure a given url, description and icon.
 See the class-method getInformation() for easy usage.
		@author Carsten Pfeiffer <pfeiffer@kde.org>
 
		@short    A dialog that allows editing entries of a KURLBar ( KURLBarItem).

*/
public class KURLBarItemDialog extends KDialogBase  {
	protected KURLBarItemDialog(Class dummy){super((Class) null);}
	public native TQMetaObject metaObject();
	public native String className();
	/**	
		 Constructs a KURLBarItemDialog.
			 <code>allowGlobal</code> if you set this to true, the dialog will have a checkbox
		                for the user to decide if he wants the entry to be
		                available globally or just for the current application.
		 <code>url</code> the url of the item
		 <code>description</code> a short, translated description of the item
		 <code>icon</code> an icon for the item
		 <code>appLocal</code> tells whether the item should be local for this application
		             or be available globally
		 <code>iconSize</code> determines the size of the icon that is shown/selectable
		 <code>parent</code> the parent-widget for the dialog
			 If you leave the icon empty, the default icon for the given url will be
		 used (KMimeType.pixmapForURL()).
		     		@short    Constructs a KURLBarItemDialog.
	*/
	public KURLBarItemDialog(boolean allowGlobal, KURL url, String description, String icon, boolean appLocal, int iconSize, TQWidget parent, String name) {
		super((Class) null);
		newKURLBarItemDialog(allowGlobal,url,description,icon,appLocal,iconSize,parent,name);
	}
	private native void newKURLBarItemDialog(boolean allowGlobal, KURL url, String description, String icon, boolean appLocal, int iconSize, TQWidget parent, String name);
	public KURLBarItemDialog(boolean allowGlobal, KURL url, String description, String icon, boolean appLocal, int iconSize, TQWidget parent) {
		super((Class) null);
		newKURLBarItemDialog(allowGlobal,url,description,icon,appLocal,iconSize,parent);
	}
	private native void newKURLBarItemDialog(boolean allowGlobal, KURL url, String description, String icon, boolean appLocal, int iconSize, TQWidget parent);
	public KURLBarItemDialog(boolean allowGlobal, KURL url, String description, String icon, boolean appLocal, int iconSize) {
		super((Class) null);
		newKURLBarItemDialog(allowGlobal,url,description,icon,appLocal,iconSize);
	}
	private native void newKURLBarItemDialog(boolean allowGlobal, KURL url, String description, String icon, boolean appLocal, int iconSize);
	public KURLBarItemDialog(boolean allowGlobal, KURL url, String description, String icon, boolean appLocal) {
		super((Class) null);
		newKURLBarItemDialog(allowGlobal,url,description,icon,appLocal);
	}
	private native void newKURLBarItemDialog(boolean allowGlobal, KURL url, String description, String icon, boolean appLocal);
	public KURLBarItemDialog(boolean allowGlobal, KURL url, String description, String icon) {
		super((Class) null);
		newKURLBarItemDialog(allowGlobal,url,description,icon);
	}
	private native void newKURLBarItemDialog(boolean allowGlobal, KURL url, String description, String icon);
	/**	
				@return the configured url
     
		@short
	*/
	public native KURL url();
	/**	
				@return the configured description
     
		@short
	*/
	public native String description();
	/**	
				@return the configured icon
     
		@short
	*/
	public native String iconName();
	/**	
				@return whether the item should be local to the application or global.
 If allowGlobal was set to false in the constructor, this will always
 return true.
     
		@short
	*/
	public native boolean applicationLocal();
	public native void urlChanged(String arg1);
	/**	
		 A convenience method to show the dialog and retrieve all the
		 properties via the given parameters. The parameters are used to
		 initialize the dialog and then return the user-configured values.
			 See the KURLBarItem constructor for the parameter description.
		     		@short    A convenience method to show the dialog and retrieve all the  properties via the given parameters.
	*/
	public static native boolean getInformation(boolean allowGlobal, KURL url, StringBuffer description, StringBuffer icon, boolean appLocal, int iconSize, TQWidget parent);
	public static native boolean getInformation(boolean allowGlobal, KURL url, StringBuffer description, StringBuffer icon, boolean appLocal, int iconSize);
	/** 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();
}