summaryrefslogtreecommitdiffstats
path: root/tdejava/koala/org/trinitydesktop/koala/KStdGuiItem.java
blob: 8c23bf6af68b58e75fd642893e2553155ccbf4ed (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
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
//Auto-generated by kalyptus. DO NOT EDIT.
package org.trinitydesktop.koala;

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

/**

 The various static methods returns standardized {@link KGuiItem}'s
 conforming to the KDE UI Standards. Use them instead of creating
 your own.
		@author Holger Freyther <freyther@kde.org>

		@short Provides a set of standardized KGuiItems.

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

	/**
		 The back and forward items by default use the RTL settings for Hebrew
		 and Arab countries. If you want those actions to ignore the RTL value
		 and force 'Western' behavior instead, use the IgnoreRTL value instead.
		     		@short    The back and forward items by default use the RTL settings for Hebrew  and Arab countries.
	*/
	public static final int UseRTL = 0;
	public static final int IgnoreRTL = 1;

	public static final int Ok = 1;
	public static final int Cancel = 2;
	public static final int Yes = 3;
	public static final int No = 4;
	public static final int Discard = 5;
	public static final int Save = 6;
	public static final int DontSave = 7;
	public static final int SaveAs = 8;
	public static final int Apply = 9;
	public static final int Clear = 10;
	public static final int Help = 11;
	public static final int Defaults = 12;
	public static final int Close = 13;
	public static final int Back = 14;
	public static final int Forward = 15;
	public static final int Print = 16;
	public static final int Continue = 17;
	public static final int Open = 18;
	public static final int Quit = 19;
	public static final int AdminMode = 20;
	public static final int Reset = 21;
	public static final int Delete = 22;
	public static final int Insert = 23;
	public static final int Configure = 24;
	public static final int Find = 25;
	public static final int Stop = 26;
	public static final int Add = 27;
	public static final int Remove = 28;
	public static final int Test = 29;
	public static final int Properties = 30;
	public static final int Overwrite = 31;

	public KStdGuiItem() {
		newKStdGuiItem();
	}
	private native void newKStdGuiItem();
	public static native KGuiItem guiItem(int ui_enum);
	public static native String stdItem(int ui_enum);
	public static native KGuiItem ok();
	public static native KGuiItem cancel();
	public static native KGuiItem yes();
	public static native KGuiItem no();
	public static native KGuiItem insert();
	public static native KGuiItem discard();
	public static native KGuiItem save();
	public static native KGuiItem help();
	public static native KGuiItem dontSave();
	public static native KGuiItem saveAs();
	public static native KGuiItem apply();
	public static native KGuiItem clear();
	public static native KGuiItem defaults();
	public static native KGuiItem close();
	public static native KGuiItem print();
	/**
				@short
	*/
	public static native KGuiItem properties();
	public static native KGuiItem reset();
	/**
				@short
	*/
	public static native KGuiItem overwrite();
	/**
		 Returns a KGuiItem suiting for cases where code or functionality
		 runs under root privileges. Used in conjunction with TDEConfig Modules.
		     		@short    Returns a KGuiItem suiting for cases where code or functionality  runs under root privileges.
	*/
	public static native KGuiItem adminMode();
	/**
		 Returns a "continue" item. The short name is due to "continue" being a
		 reserved word in the C++ language.
		     		@short    Returns a "continue" item.
	*/
	public static native KGuiItem cont();
	/**
		 Returns a "delete" item. The short name is due to "delete" being a
		 reserved word in the C++ language.
				@short    Returns a "delete" item.
	*/
	public static native KGuiItem del();
	public static native KGuiItem open();
	/**
		 Return a GUI item for a 'back' action, like Konqueror's back button.
		 This GUI item can optionally honor the user's setting for BiDi, so the
		 icon for right-to-left languages (Hebrew and Arab) has the arrow
		 pointing in the opposite direction.
		 By default the arrow points in the Western 'back' direction (i.e.
		 to the left). This is because usually you only want the Bidi aware
		 GUI item if you also want the 'forward' item. Those two are available
		 in the separate backAndForward() method.
		     		@short    Return a GUI item for a 'back' action, like Konqueror's back button.
	*/
	public static native KGuiItem back(int useBidi);
	public static native KGuiItem back();
	/**
		 Return a GUI item for a 'forward' action, like Konqueror's forward
		 button. This GUI item can optionally honor the user's setting for BiDi,
		 so the icon for right-to-left languages (Hebrew and Arab) has the arrow
		 pointing in the opposite direction.
		 By default the arrow points in the Western 'forward' direction (i.e.
		 to the right). This is because usually you only want the Bidi aware
		 GUI item if you also want the 'back' item. Those two are available
		 in the separate backAndForward() method.
		     		@short    Return a GUI item for a 'forward' action, like Konqueror's forward  button.
	*/
	public static native KGuiItem forward(int useBidi);
	public static native KGuiItem forward();
	/**
		 Returns a "configure" item.
				@short    Returns a "configure" item.
	*/
	public static native KGuiItem configure();
	/**
		 Return both a back and a forward item. This function always returns
		 items that are aware of the Right-to-Left setting for Arab and Hebrew
		 locales. If you have a reason for wanting the 'Western' back/forward
		 buttons, please use the back() and forward() items instead.
		     		@short    Return both a back and a forward item.
	*/
	// TQPair<KGuiItem, KGuiItem> backAndForward(); >>>> NOT CONVERTED
	public static native KGuiItem quit();
	/**
		 Returns a "find" item.
				@short    Returns a "find" item.
	*/
	public static native KGuiItem find();
	/**
		 Returns a "stop" item.
				@short    Returns a "stop" item.
	*/
	public static native KGuiItem stop();
	/**
		 Returns a "add" item.
				@short    Returns a "add" item.
	*/
	public static native KGuiItem add();
	/**
		 Returns a "remove" item.
				@short    Returns a "remove" item.
	*/
	public static native KGuiItem remove();
	/**
		 Returns a "test" item.
				@short    Returns a "test" item.
	*/
	public static native KGuiItem test();
	/** 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();
}