summaryrefslogtreecommitdiffstats
path: root/tdejava/koala/org/trinitydesktop/koala/TDEIconDialog.java
blob: a09eeb03ea4520c18c7b004e2d12f9e23cc69ce6 (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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
//Auto-generated by kalyptus. DO NOT EDIT.
package org.trinitydesktop.koala;

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

/**

 Dialog for interactive selection of icons. Use the function
 getIcon() let the user select an icon.
 See {@link TDEIconDialogSignals} for signals emitted by TDEIconDialog
		@short An icon selection dialog.

*/
public class TDEIconDialog extends KDialogBase  {
	protected TDEIconDialog(Class dummy){super((Class) null);}
	public native TQMetaObject metaObject();
	public native String className();
	/**
		 Constructs an icon selection dialog using the global iconloader.
		     		@short    Constructs an icon selection dialog using the global iconloader.
	*/
	public TDEIconDialog(TQWidget parent, String name) {
		super((Class) null);
		newTDEIconDialog(parent,name);
	}
	private native void newTDEIconDialog(TQWidget parent, String name);
	public TDEIconDialog(TQWidget parent) {
		super((Class) null);
		newTDEIconDialog(parent);
	}
	private native void newTDEIconDialog(TQWidget parent);
	public TDEIconDialog() {
		super((Class) null);
		newTDEIconDialog();
	}
	private native void newTDEIconDialog();
	/**
		 Constructs an icon selection dialog using a specific iconloader.
		     		@short    Constructs an icon selection dialog using a specific iconloader.
	*/
	public TDEIconDialog(TDEIconLoader loader, TQWidget parent, String name) {
		super((Class) null);
		newTDEIconDialog(loader,parent,name);
	}
	private native void newTDEIconDialog(TDEIconLoader loader, TQWidget parent, String name);
	public TDEIconDialog(TDEIconLoader loader, TQWidget parent) {
		super((Class) null);
		newTDEIconDialog(loader,parent);
	}
	private native void newTDEIconDialog(TDEIconLoader loader, TQWidget parent);
	public TDEIconDialog(TDEIconLoader loader) {
		super((Class) null);
		newTDEIconDialog(loader);
	}
	private native void newTDEIconDialog(TDEIconLoader loader);
	/**
		 Sets a strict icon size policy for allowed icons. When true,
		 only icons of the specified group's size in getIcon() are shown.
		 When false, icons not available at the desired group's size will
		 also be selectable.
		     		@short    Sets a strict icon size policy for allowed icons.
	*/
	public native void setStrictIconSize(boolean b);
	/**
		 Returns true if a strict icon size policy is set.
		     		@short    Returns true if a strict icon size policy is set.
	*/
	public native boolean strictIconSize();
	/**
		 sets a custom icon directory
				@short    sets a custom icon directory
	*/
	public native void setCustomLocation(String location);
	/**
		 Sets the size of the icons to be shown / selected.
				@short    Sets the size of the icons to be shown / selected.
		@see TDEIcon#StdSizes
		@see #iconSize
	*/
	public native void setIconSize(int size);
	/**
		 Returns the iconsize set via setIconSize() or 0, if the default
		 iconsize will be used.
		     		@short    Returns the iconsize set via setIconSize() or 0, if the default  iconsize will be used.
	*/
	public native int iconSize();
	/**
		 Allows you to set the same parameters as in the class method
		 getIcon().
		     		@short    Allows you to set the same parameters as in the class method  getIcon().
	*/
	public native void setup(int group, int context, boolean strictIconSize, int iconSize, boolean user);
	public native void setup(int group, int context, boolean strictIconSize, int iconSize);
	public native void setup(int group, int context, boolean strictIconSize);
	public native void setup(int group, int context);
	public native void setup(int group);
	/**
		 Allows you to set the same parameters as in the class method
		 getIcon(), as well as two additional parameters to lock
		 the choice between system and user dirs and to lock the custom user
		 dir itself.
				@short    Allows you to set the same parameters as in the class method  getIcon(), as well as two additional parameters to lock  the choice between system and user dirs and to lock the custom user  dir itself.
	*/
	public native void setup(int group, int context, boolean strictIconSize, int iconSize, boolean user, boolean lockUser, boolean lockCustomDir);
	/**
		 exec()utes this modal dialog and returns the name of the selected icon,
		 or null if the dialog was aborted.
				@return the name of the icon, suitable for loading with TDEIconLoader.

		@short    exec()utes this modal dialog and returns the name of the selected icon,  or String.null if the dialog was aborted.
		@see #getIcon
	*/
	public native String openDialog();
	/**
		 show()es this dialog and emits a newIcon(String) signal when
		 successful. null will be emitted if the dialog was aborted.
		     		@short    show()es this dialog and emits a newIcon(String) signal when  successful.
	*/
	public native void showDialog();
	/**
		 Pops up the dialog an lets the user select an icon.
			@param group The icon group this icon is intended for. Providing the
		 group shows the icons in the dialog with the same appearance as when
		 used outside the dialog.
			@param context The initial icon context. Initially, the icons having
		 this context are shown in the dialog. The user can change this.
			@param strictIconSize When true, only icons of the specified group's size
		 are shown, otherwise icon not available in the desired group's size
		 will also be selectable.
			@param iconSize the size of the icons -- the default of the icongroup
		        if set to 0
			@param user Begin with the "user icons" instead of "system icons".
			@param parent The parent widget of the dialog.
			@param caption The caption to use for the dialog.
				@return The name of the icon, suitable for loading with TDEIconLoader.

		@version New in 3.0

		@short    Pops up the dialog an lets the user select an icon.
	*/
	public static native String getIcon(int group, int context, boolean strictIconSize, int iconSize, boolean user, TQWidget parent, String caption);
	public static native String getIcon(int group, int context, boolean strictIconSize, int iconSize, boolean user, TQWidget parent);
	public static native String getIcon(int group, int context, boolean strictIconSize, int iconSize, boolean user);
	public static native String getIcon(int group, int context, boolean strictIconSize, int iconSize);
	public static native String getIcon(int group, int context, boolean strictIconSize);
	public static native String getIcon(int group, int context);
	public static native String getIcon(int group);
	public static native String getIcon();
	protected native void slotOk();
	/** 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();
}