summaryrefslogtreecommitdiffstats
path: root/tdejava/koala/org/trinitydesktop/koala/TDERecentFilesAction.java
diff options
context:
space:
mode:
Diffstat (limited to 'tdejava/koala/org/trinitydesktop/koala/TDERecentFilesAction.java')
-rw-r--r--tdejava/koala/org/trinitydesktop/koala/TDERecentFilesAction.java275
1 files changed, 275 insertions, 0 deletions
diff --git a/tdejava/koala/org/trinitydesktop/koala/TDERecentFilesAction.java b/tdejava/koala/org/trinitydesktop/koala/TDERecentFilesAction.java
new file mode 100644
index 00000000..973b9a78
--- /dev/null
+++ b/tdejava/koala/org/trinitydesktop/koala/TDERecentFilesAction.java
@@ -0,0 +1,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();
+}