summaryrefslogtreecommitdiffstats
path: root/kdejava/koala/org/kde/koala/KRecentFilesAction.java
diff options
context:
space:
mode:
Diffstat (limited to 'kdejava/koala/org/kde/koala/KRecentFilesAction.java')
-rw-r--r--kdejava/koala/org/kde/koala/KRecentFilesAction.java275
1 files changed, 275 insertions, 0 deletions
diff --git a/kdejava/koala/org/kde/koala/KRecentFilesAction.java b/kdejava/koala/org/kde/koala/KRecentFilesAction.java
new file mode 100644
index 00000000..f1afaf9c
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KRecentFilesAction.java
@@ -0,0 +1,275 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QObject;
+import org.kde.qt.QIconSet;
+import org.kde.qt.QWidget;
+
+/**
+
+ 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 KRecentFilesActionSignals} for signals emitted by KRecentFilesAction
+ @author Michael Koch
+
+ @short Recent files action.
+
+*/
+public class KRecentFilesAction extends KListAction {
+ protected KRecentFilesAction(Class dummy){super((Class) null);}
+ public native QMetaObject 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 KRecentFilesAction(String text, KShortcut cut, QObject parent, String name, int maxItems) {
+ super((Class) null);
+ newKRecentFilesAction(text,cut,parent,name,maxItems);
+ }
+ private native void newKRecentFilesAction(String text, KShortcut cut, QObject parent, String name, int maxItems);
+ public KRecentFilesAction(String text, KShortcut cut, QObject parent, String name) {
+ super((Class) null);
+ newKRecentFilesAction(text,cut,parent,name);
+ }
+ private native void newKRecentFilesAction(String text, KShortcut cut, QObject parent, String name);
+ public KRecentFilesAction(String text, KShortcut cut, QObject parent) {
+ super((Class) null);
+ newKRecentFilesAction(text,cut,parent);
+ }
+ private native void newKRecentFilesAction(String text, KShortcut cut, QObject 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 KRecentFilesAction(String text, KShortcut cut, QObject receiver, String slot, QObject parent, String name, int maxItems) {
+ super((Class) null);
+ newKRecentFilesAction(text,cut,receiver,slot,parent,name,maxItems);
+ }
+ private native void newKRecentFilesAction(String text, KShortcut cut, QObject receiver, String slot, QObject parent, String name, int maxItems);
+ public KRecentFilesAction(String text, KShortcut cut, QObject receiver, String slot, QObject parent, String name) {
+ super((Class) null);
+ newKRecentFilesAction(text,cut,receiver,slot,parent,name);
+ }
+ private native void newKRecentFilesAction(String text, KShortcut cut, QObject receiver, String slot, QObject parent, String name);
+ public KRecentFilesAction(String text, KShortcut cut, QObject receiver, String slot, QObject parent) {
+ super((Class) null);
+ newKRecentFilesAction(text,cut,receiver,slot,parent);
+ }
+ private native void newKRecentFilesAction(String text, KShortcut cut, QObject receiver, String slot, QObject 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 KRecentFilesAction(String text, QIconSet pix, KShortcut cut, QObject parent, String name, int maxItems) {
+ super((Class) null);
+ newKRecentFilesAction(text,pix,cut,parent,name,maxItems);
+ }
+ private native void newKRecentFilesAction(String text, QIconSet pix, KShortcut cut, QObject parent, String name, int maxItems);
+ public KRecentFilesAction(String text, QIconSet pix, KShortcut cut, QObject parent, String name) {
+ super((Class) null);
+ newKRecentFilesAction(text,pix,cut,parent,name);
+ }
+ private native void newKRecentFilesAction(String text, QIconSet pix, KShortcut cut, QObject parent, String name);
+ public KRecentFilesAction(String text, QIconSet pix, KShortcut cut, QObject parent) {
+ super((Class) null);
+ newKRecentFilesAction(text,pix,cut,parent);
+ }
+ private native void newKRecentFilesAction(String text, QIconSet pix, KShortcut cut, QObject 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 KRecentFilesAction(String text, String pix, KShortcut cut, QObject parent, String name, int maxItems) {
+ super((Class) null);
+ newKRecentFilesAction(text,pix,cut,parent,name,maxItems);
+ }
+ private native void newKRecentFilesAction(String text, String pix, KShortcut cut, QObject parent, String name, int maxItems);
+ public KRecentFilesAction(String text, String pix, KShortcut cut, QObject parent, String name) {
+ super((Class) null);
+ newKRecentFilesAction(text,pix,cut,parent,name);
+ }
+ private native void newKRecentFilesAction(String text, String pix, KShortcut cut, QObject parent, String name);
+ public KRecentFilesAction(String text, String pix, KShortcut cut, QObject parent) {
+ super((Class) null);
+ newKRecentFilesAction(text,pix,cut,parent);
+ }
+ private native void newKRecentFilesAction(String text, String pix, KShortcut cut, QObject 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 KRecentFilesAction(String text, QIconSet pix, KShortcut cut, QObject receiver, String slot, QObject parent, String name, int maxItems) {
+ super((Class) null);
+ newKRecentFilesAction(text,pix,cut,receiver,slot,parent,name,maxItems);
+ }
+ private native void newKRecentFilesAction(String text, QIconSet pix, KShortcut cut, QObject receiver, String slot, QObject parent, String name, int maxItems);
+ public KRecentFilesAction(String text, QIconSet pix, KShortcut cut, QObject receiver, String slot, QObject parent, String name) {
+ super((Class) null);
+ newKRecentFilesAction(text,pix,cut,receiver,slot,parent,name);
+ }
+ private native void newKRecentFilesAction(String text, QIconSet pix, KShortcut cut, QObject receiver, String slot, QObject parent, String name);
+ public KRecentFilesAction(String text, QIconSet pix, KShortcut cut, QObject receiver, String slot, QObject parent) {
+ super((Class) null);
+ newKRecentFilesAction(text,pix,cut,receiver,slot,parent);
+ }
+ private native void newKRecentFilesAction(String text, QIconSet pix, KShortcut cut, QObject receiver, String slot, QObject 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 KRecentFilesAction(String text, String pix, KShortcut cut, QObject receiver, String slot, QObject parent, String name, int maxItems) {
+ super((Class) null);
+ newKRecentFilesAction(text,pix,cut,receiver,slot,parent,name,maxItems);
+ }
+ private native void newKRecentFilesAction(String text, String pix, KShortcut cut, QObject receiver, String slot, QObject parent, String name, int maxItems);
+ public KRecentFilesAction(String text, String pix, KShortcut cut, QObject receiver, String slot, QObject parent, String name) {
+ super((Class) null);
+ newKRecentFilesAction(text,pix,cut,receiver,slot,parent,name);
+ }
+ private native void newKRecentFilesAction(String text, String pix, KShortcut cut, QObject receiver, String slot, QObject parent, String name);
+ public KRecentFilesAction(String text, String pix, KShortcut cut, QObject receiver, String slot, QObject parent) {
+ super((Class) null);
+ newKRecentFilesAction(text,pix,cut,receiver,slot,parent);
+ }
+ private native void newKRecentFilesAction(String text, String pix, KShortcut cut, QObject receiver, String slot, QObject 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 KRecentFilesAction(QObject parent, String name, int maxItems) {
+ super((Class) null);
+ newKRecentFilesAction(parent,name,maxItems);
+ }
+ private native void newKRecentFilesAction(QObject parent, String name, int maxItems);
+ public KRecentFilesAction(QObject parent, String name) {
+ super((Class) null);
+ newKRecentFilesAction(parent,name);
+ }
+ private native void newKRecentFilesAction(QObject parent, String name);
+ public KRecentFilesAction(QObject parent) {
+ super((Class) null);
+ newKRecentFilesAction(parent);
+ }
+ private native void newKRecentFilesAction(QObject parent);
+ public KRecentFilesAction() {
+ super((Class) null);
+ newKRecentFilesAction();
+ }
+ private native void newKRecentFilesAction();
+ public native int plug(QWidget widget, int index);
+ public native int plug(QWidget 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 KConfig 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 KConfig.
+ @short Loads the recent files entries from a given KConfig object.
+ */
+ public native void loadEntries(KConfig config, String groupname);
+ public native void loadEntries(KConfig config);
+ /**
+ Saves the current recent files entries to a given KConfig 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 KConfig.
+ @short Saves the current recent files entries to a given KConfig object.
+ */
+ public native void saveEntries(KConfig config, String groupname);
+ public native void saveEntries(KConfig 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();
+}