summaryrefslogtreecommitdiffstats
path: root/tdejava/koala/org/trinitydesktop/koala/TDERecentFilesAction.java
blob: 973b9a7857da5d9b2f2f8a861fcacb8e35b0a45f (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
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
//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.TQObject;
import org.trinitydesktop.qt.TQIconSet;
import org.trinitydesktop.qt.TQWidget;

/**

  This class is an action to handle a recent files submenu.
  The best way to create the action is to use KStdAction.openRecent.
  Then you simply need to call loadEntries on startup, saveEntries
  on shutdown, addURL when your application loads/saves a file.
 See {@link TDERecentFilesActionSignals} for signals emitted by TDERecentFilesAction
		@author Michael Koch

		@short Recent files action.

*/
public class TDERecentFilesAction extends TDEListAction  {
	protected TDERecentFilesAction(Class dummy){super((Class) null);}
	public native TQMetaObject metaObject();
	public native String className();
	/**
			@param text The text that will be displayed.
			@param cut The corresponding keyboard accelerator (shortcut).
			@param parent This action's parent.
			@param name An internal name for this action.
			@param maxItems The maximum number of files to display
		   		@short
	*/
	public TDERecentFilesAction(String text, TDEShortcut cut, TQObject parent, String name, int maxItems) {
		super((Class) null);
		newTDERecentFilesAction(text,cut,parent,name,maxItems);
	}
	private native void newTDERecentFilesAction(String text, TDEShortcut cut, TQObject parent, String name, int maxItems);
	public TDERecentFilesAction(String text, TDEShortcut cut, TQObject parent, String name) {
		super((Class) null);
		newTDERecentFilesAction(text,cut,parent,name);
	}
	private native void newTDERecentFilesAction(String text, TDEShortcut cut, TQObject parent, String name);
	public TDERecentFilesAction(String text, TDEShortcut cut, TQObject parent) {
		super((Class) null);
		newTDERecentFilesAction(text,cut,parent);
	}
	private native void newTDERecentFilesAction(String text, TDEShortcut cut, TQObject parent);
	/**
			@param text The text that will be displayed.
			@param cut The corresponding keyboard accelerator (shortcut).
			@param receiver The SLOT's parent.
			@param slot The SLOT to invoke when a URL is selected.
		  Its signature is of the form slotURLSelected( KURL ).
			@param parent This action's parent.
			@param name An internal name for this action.
			@param maxItems The maximum number of files to display
		   		@short
	*/
	public TDERecentFilesAction(String text, TDEShortcut cut, TQObject receiver, String slot, TQObject parent, String name, int maxItems) {
		super((Class) null);
		newTDERecentFilesAction(text,cut,receiver,slot,parent,name,maxItems);
	}
	private native void newTDERecentFilesAction(String text, TDEShortcut cut, TQObject receiver, String slot, TQObject parent, String name, int maxItems);
	public TDERecentFilesAction(String text, TDEShortcut cut, TQObject receiver, String slot, TQObject parent, String name) {
		super((Class) null);
		newTDERecentFilesAction(text,cut,receiver,slot,parent,name);
	}
	private native void newTDERecentFilesAction(String text, TDEShortcut cut, TQObject receiver, String slot, TQObject parent, String name);
	public TDERecentFilesAction(String text, TDEShortcut cut, TQObject receiver, String slot, TQObject parent) {
		super((Class) null);
		newTDERecentFilesAction(text,cut,receiver,slot,parent);
	}
	private native void newTDERecentFilesAction(String text, TDEShortcut cut, TQObject receiver, String slot, TQObject parent);
	/**
			@param text The text that will be displayed.
			@param pix The icons that go with this action.
			@param cut The corresponding keyboard accelerator (shortcut).
			@param parent This action's parent.
			@param name An internal name for this action.
			@param maxItems The maximum number of files to display
		   		@short
	*/
	public TDERecentFilesAction(String text, TQIconSet pix, TDEShortcut cut, TQObject parent, String name, int maxItems) {
		super((Class) null);
		newTDERecentFilesAction(text,pix,cut,parent,name,maxItems);
	}
	private native void newTDERecentFilesAction(String text, TQIconSet pix, TDEShortcut cut, TQObject parent, String name, int maxItems);
	public TDERecentFilesAction(String text, TQIconSet pix, TDEShortcut cut, TQObject parent, String name) {
		super((Class) null);
		newTDERecentFilesAction(text,pix,cut,parent,name);
	}
	private native void newTDERecentFilesAction(String text, TQIconSet pix, TDEShortcut cut, TQObject parent, String name);
	public TDERecentFilesAction(String text, TQIconSet pix, TDEShortcut cut, TQObject parent) {
		super((Class) null);
		newTDERecentFilesAction(text,pix,cut,parent);
	}
	private native void newTDERecentFilesAction(String text, TQIconSet pix, TDEShortcut cut, TQObject parent);
	/**
			@param text The text that will be displayed.
			@param pix The dynamically loaded icon that goes with this action.
			@param cut The corresponding keyboard accelerator (shortcut).
			@param parent This action's parent.
			@param name An internal name for this action.
			@param maxItems The maximum number of files to display
		   		@short
	*/
	public TDERecentFilesAction(String text, String pix, TDEShortcut cut, TQObject parent, String name, int maxItems) {
		super((Class) null);
		newTDERecentFilesAction(text,pix,cut,parent,name,maxItems);
	}
	private native void newTDERecentFilesAction(String text, String pix, TDEShortcut cut, TQObject parent, String name, int maxItems);
	public TDERecentFilesAction(String text, String pix, TDEShortcut cut, TQObject parent, String name) {
		super((Class) null);
		newTDERecentFilesAction(text,pix,cut,parent,name);
	}
	private native void newTDERecentFilesAction(String text, String pix, TDEShortcut cut, TQObject parent, String name);
	public TDERecentFilesAction(String text, String pix, TDEShortcut cut, TQObject parent) {
		super((Class) null);
		newTDERecentFilesAction(text,pix,cut,parent);
	}
	private native void newTDERecentFilesAction(String text, String pix, TDEShortcut cut, TQObject parent);
	/**
			@param text The text that will be displayed.
			@param pix The icons that go with this action.
			@param cut The corresponding keyboard accelerator (shortcut).
			@param receiver The SLOT's parent.
			@param slot The SLOT to invoke when a URL is selected.
		  Its signature is of the form slotURLSelected( KURL ).
			@param parent This action's parent.
			@param name An internal name for this action.
			@param maxItems The maximum number of files to display
		   		@short
	*/
	public TDERecentFilesAction(String text, TQIconSet pix, TDEShortcut cut, TQObject receiver, String slot, TQObject parent, String name, int maxItems) {
		super((Class) null);
		newTDERecentFilesAction(text,pix,cut,receiver,slot,parent,name,maxItems);
	}
	private native void newTDERecentFilesAction(String text, TQIconSet pix, TDEShortcut cut, TQObject receiver, String slot, TQObject parent, String name, int maxItems);
	public TDERecentFilesAction(String text, TQIconSet pix, TDEShortcut cut, TQObject receiver, String slot, TQObject parent, String name) {
		super((Class) null);
		newTDERecentFilesAction(text,pix,cut,receiver,slot,parent,name);
	}
	private native void newTDERecentFilesAction(String text, TQIconSet pix, TDEShortcut cut, TQObject receiver, String slot, TQObject parent, String name);
	public TDERecentFilesAction(String text, TQIconSet pix, TDEShortcut cut, TQObject receiver, String slot, TQObject parent) {
		super((Class) null);
		newTDERecentFilesAction(text,pix,cut,receiver,slot,parent);
	}
	private native void newTDERecentFilesAction(String text, TQIconSet pix, TDEShortcut cut, TQObject receiver, String slot, TQObject parent);
	/**
			@param text The text that will be displayed.
			@param pix The dynamically loaded icon that goes with this action.
			@param cut The corresponding keyboard accelerator (shortcut).
			@param receiver The SLOT's parent.
			@param slot The SLOT to invoke when a URL is selected.
		  Its signature is of the form slotURLSelected( KURL ).
			@param parent This action's parent.
			@param name An internal name for this action.
			@param maxItems The maximum number of files to display
		   		@short
	*/
	public TDERecentFilesAction(String text, String pix, TDEShortcut cut, TQObject receiver, String slot, TQObject parent, String name, int maxItems) {
		super((Class) null);
		newTDERecentFilesAction(text,pix,cut,receiver,slot,parent,name,maxItems);
	}
	private native void newTDERecentFilesAction(String text, String pix, TDEShortcut cut, TQObject receiver, String slot, TQObject parent, String name, int maxItems);
	public TDERecentFilesAction(String text, String pix, TDEShortcut cut, TQObject receiver, String slot, TQObject parent, String name) {
		super((Class) null);
		newTDERecentFilesAction(text,pix,cut,receiver,slot,parent,name);
	}
	private native void newTDERecentFilesAction(String text, String pix, TDEShortcut cut, TQObject receiver, String slot, TQObject parent, String name);
	public TDERecentFilesAction(String text, String pix, TDEShortcut cut, TQObject receiver, String slot, TQObject parent) {
		super((Class) null);
		newTDERecentFilesAction(text,pix,cut,receiver,slot,parent);
	}
	private native void newTDERecentFilesAction(String text, String pix, TDEShortcut cut, TQObject receiver, String slot, TQObject parent);
	/**
			@param parent This action's parent.
			@param name An internal name for this action.
			@param maxItems The maximum number of files to display
		   		@short
	*/
	public TDERecentFilesAction(TQObject parent, String name, int maxItems) {
		super((Class) null);
		newTDERecentFilesAction(parent,name,maxItems);
	}
	private native void newTDERecentFilesAction(TQObject parent, String name, int maxItems);
	public TDERecentFilesAction(TQObject parent, String name) {
		super((Class) null);
		newTDERecentFilesAction(parent,name);
	}
	private native void newTDERecentFilesAction(TQObject parent, String name);
	public TDERecentFilesAction(TQObject parent) {
		super((Class) null);
		newTDERecentFilesAction(parent);
	}
	private native void newTDERecentFilesAction(TQObject parent);
	public TDERecentFilesAction() {
		super((Class) null);
		newTDERecentFilesAction();
	}
	private native void newTDERecentFilesAction();
	public native int plug(TQWidget widget, int index);
	public native int plug(TQWidget widget);
	/**
		  Returns the maximum of items in the recent files list.
		   		@short     Returns the maximum of items in the recent files list.
	*/
	public native int maxItems();
	/**
		  Sets the maximum of items in the recent files list.
		  The default for this value is 10 set in the constructor.
			  If this value is lesser than the number of items currently
		  in the recent files list the last items are deleted until
		  the number of items are equal to the new maximum.
		   		@short     Sets the maximum of items in the recent files list.
	*/
	public native void setMaxItems(int maxItems);
	/**
		  Loads the recent files entries from a given TDEConfig object.
		  You can provide the name of the group used to load the entries.
		  If the groupname is empty, entries are load from a group called 'RecentFiles'
			  This method does not effect the active group of TDEConfig.
		   		@short     Loads the recent files entries from a given TDEConfig object.
	*/
	public native void loadEntries(TDEConfig config, String groupname);
	public native void loadEntries(TDEConfig config);
	/**
		  Saves the current recent files entries to a given TDEConfig object.
		  You can provide the name of the group used to load the entries.
		  If the groupname is empty, entries are saved to a group called 'RecentFiles'
			  This method does not effect the active group of TDEConfig.
		   		@short     Saves the current recent files entries to a given TDEConfig object.
	*/
	public native void saveEntries(TDEConfig config, String groupname);
	public native void saveEntries(TDEConfig config);
	/**
		  Add URL to recent files list.
			@param url The URL of the file
		   		@short     Add URL to recent files list.
	*/
	public native void addURL(KURL url);
	/**
		  Add URL to recent files list.
			@param url The URL of the file
			@param name The user visible pretty name that appears before the URL
				@short     Add URL to recent files list.
	*/
	public native void addURL(KURL url, String name);
	/**
		  Remove an URL from the recent files list.
			@param url The URL of the file
		   		@short     Remove an URL from the recent files list.
	*/
	public native void removeURL(KURL url);
	/**
		  Removes all entries from the recent files list.
		   		@short     Removes all entries from the recent files list.
	*/
	public native void clearURLList();
	protected native void itemSelected(String string);
	protected native void menuAboutToShow();
	protected native void menuItemActivated(int id);
	protected native void slotClicked();
	protected native void slotActivated(int arg1);
	protected native void slotActivated(String arg1);
	protected native void slotActivated();
	/** 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();
}