summaryrefslogtreecommitdiffstats
path: root/kdejava/koala/org/kde/koala/KKeyChooser.java
diff options
context:
space:
mode:
Diffstat (limited to 'kdejava/koala/org/kde/koala/KKeyChooser.java')
-rw-r--r--kdejava/koala/org/kde/koala/KKeyChooser.java195
1 files changed, 195 insertions, 0 deletions
diff --git a/kdejava/koala/org/kde/koala/KKeyChooser.java b/kdejava/koala/org/kde/koala/KKeyChooser.java
new file mode 100644
index 00000000..0c45d5e5
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KKeyChooser.java
@@ -0,0 +1,195 @@
+//Auto-generated by kalyptus. DO NOT EDIT.
+package org.kde.koala;
+
+import org.kde.qt.Qt;
+import org.kde.qt.QListViewItem;
+import org.kde.qt.QFont;
+import org.kde.qt.QMetaObject;
+import org.kde.qt.QtSupport;
+import org.kde.qt.QPoint;
+import org.kde.qt.QWidget;
+import org.kde.qt.QWidget;
+
+/**
+
+ Configure dictionaries of key/action associations for KAccel and
+ KGlobalAccel.
+ The class takes care of all aspects of configuration, including
+ handling key conflicts internally. Connect to the allDefault()
+ slot if you want to set all configurable shortcuts to their
+ default values.
+ See {@link KKeyChooserSignals} for signals emitted by KKeyChooser
+ @author Nicolas Hadacek <hadacek@via.ecp.fr>
+
+ @short Widget for configuration of KAccel and KGlobalAccel.
+ @see KKeyDialog
+
+*/
+public class KKeyChooser extends QWidget {
+ protected KKeyChooser(Class dummy){super((Class) null);}
+ public static final int NoKey = 1;
+ public static final int DefaultKey = 2;
+ public static final int CustomKey = 3;
+
+ public static final int Application = 0;
+ public static final int ApplicationGlobal = 1;
+ public static final int Standard = 2;
+ public static final int Global = 3;
+
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Constructor.
+ @param parent the parent widget for this widget
+ @param type the ActionType for this KKeyChooser
+ @param bAllowLetterShortcuts Set to false if unmodified alphanumeric
+ keys ('A', '1', etc.) are not permissible shortcuts.
+ @short Constructor.
+ */
+ // KKeyChooser* KKeyChooser(QWidget* arg1,ActionType arg2,bool arg3); >>>> NOT CONVERTED
+ // KKeyChooser* KKeyChooser(QWidget* arg1,ActionType arg2); >>>> NOT CONVERTED
+ public KKeyChooser(QWidget parent) {
+ super((Class) null);
+ newKKeyChooser(parent);
+ }
+ private native void newKKeyChooser(QWidget parent);
+ /**
+ \overload
+ @param parent parent widget
+ @param coll the KActionCollection to configure
+ @param bAllowLetterShortcuts Set to false if unmodified alphanumeric
+ keys ('A', '1', etc.) are not permissible shortcuts.
+ @short \overload
+ */
+ public KKeyChooser(KActionCollection coll, QWidget parent, boolean bAllowLetterShortcuts) {
+ super((Class) null);
+ newKKeyChooser(coll,parent,bAllowLetterShortcuts);
+ }
+ private native void newKKeyChooser(KActionCollection coll, QWidget parent, boolean bAllowLetterShortcuts);
+ public KKeyChooser(KActionCollection coll, QWidget parent) {
+ super((Class) null);
+ newKKeyChooser(coll,parent);
+ }
+ private native void newKKeyChooser(KActionCollection coll, QWidget parent);
+ public KKeyChooser(KAccel actions, QWidget parent, boolean bAllowLetterShortcuts) {
+ super((Class) null);
+ newKKeyChooser(actions,parent,bAllowLetterShortcuts);
+ }
+ private native void newKKeyChooser(KAccel actions, QWidget parent, boolean bAllowLetterShortcuts);
+ public KKeyChooser(KAccel actions, QWidget parent) {
+ super((Class) null);
+ newKKeyChooser(actions,parent);
+ }
+ private native void newKKeyChooser(KAccel actions, QWidget parent);
+ public KKeyChooser(KGlobalAccel actions, QWidget parent) {
+ super((Class) null);
+ newKKeyChooser(actions,parent);
+ }
+ private native void newKKeyChooser(KGlobalAccel actions, QWidget parent);
+ // KKeyChooser* KKeyChooser(KShortcutList* arg1,QWidget* arg2,ActionType arg3,bool arg4); >>>> NOT CONVERTED
+ // KKeyChooser* KKeyChooser(KShortcutList* arg1,QWidget* arg2,ActionType arg3); >>>> NOT CONVERTED
+ public KKeyChooser(KShortcutList arg1, QWidget parent) {
+ super((Class) null);
+ newKKeyChooser(arg1,parent);
+ }
+ private native void newKKeyChooser(KShortcutList arg1, QWidget parent);
+ /**
+ Insert an action collection, i.e. add all its actions to the ones
+ already associated with the KKeyChooser object.
+ @short Insert an action collection, i.
+ */
+ public native boolean insert(KActionCollection arg1);
+ /**
+ Insert an action collection, i.e. add all its actions to the ones
+ already associated with the KKeyChooser object.
+ @param title subtree title of this collection of shortcut.
+ @short Insert an action collection, i.
+ */
+ public native boolean insert(KActionCollection arg1, String title);
+ public native void syncToConfig(String sConfigGroup, KConfigBase pConfig, boolean bClearUnset);
+ /**
+ This function writes any shortcut changes back to the original
+ action set(s).
+ @short This function writes any shortcut changes back to the original action set(s).
+ */
+ public native void commitChanges();
+ /**
+ This commits and then saves the actions to disk.
+ Any KActionCollection objects with the xmlFile() value set
+ will be written to an XML file. All other will be written
+ to the application's rc file.
+ @short This commits and then saves the actions to disk.
+ */
+ public native void save();
+ /**
+ Set all keys to their default values (bindings).
+ @short Set all keys to their default values (bindings).
+ */
+ public native void allDefault();
+ /**
+ Specifies whether to use the 3 or 4 modifier key scheme.
+ This determines which default is used when the 'Default' button is
+ clicked.
+ @short Specifies whether to use the 3 or 4 modifier key scheme.
+ */
+ public native void setPreferFourModifierKeys(boolean preferFourModifierKeys);
+ /**
+ Rebuild list entries based on underlying map.
+ Use this if you changed the underlying map.
+ @short Rebuild list entries based on underlying map.
+ */
+ public native void listSync();
+ /**
+ Checks whether the given shortcut conflicts with global keyboard shortcuts.
+ If yes, and the warnUser argument is true, warns the user and gives them a chance
+ to reassign the shortcut from the global shortcut.
+ @param cut the shortcut that will be checked for conflicts
+ @param warnUser if true, the user will be warned about a conflict and given a chance
+ to reassign the shortcut
+ @param parent parent widget for the warning dialog
+ @return true if there was conflict (and the user didn't reassign the shortcut)
+
+ @short Checks whether the given shortcut conflicts with global keyboard shortcuts.
+ */
+ public static native boolean checkGlobalShortcutsConflict(KShortcut cut, boolean warnUser, QWidget parent);
+ /**
+ Checks whether the given shortcut conflicts with standard keyboard shortcuts.
+ If yes, and the warnUser argument is true, warns the user and gives them a chance
+ to reassign the shortcut from the standard shortcut.
+ @param cut the shortcut that will be checked for conflicts
+ @param warnUser if true, the user will be warned about a conflict and given a chance
+ to reassign the shortcut
+ @param parent parent widget for the warning dialog
+ @return true if there was conflict (and the user didn't reassign the shortcut)
+
+ @short Checks whether the given shortcut conflicts with standard keyboard shortcuts.
+ */
+ public static native boolean checkStandardShortcutsConflict(KShortcut cut, boolean warnUser, QWidget parent);
+ // void initGUI(ActionType arg1,bool arg2); >>>> NOT CONVERTED
+ protected native boolean insert(KAccel arg1);
+ protected native boolean insert(KGlobalAccel arg1);
+ protected native boolean insert(KShortcutList arg1);
+ protected native void buildListView(int iList, String title);
+ protected native void buildListView(int iList);
+ protected native void readGlobalKeys();
+ protected native void updateButtons();
+ protected native void fontChange(QFont _font);
+ protected native void setShortcut(KShortcut cut);
+ protected native boolean isKeyPresent(KShortcut cut, boolean warnuser);
+ protected native boolean isKeyPresent(KShortcut cut);
+ // bool isKeyPresentLocally(const KShortcut& arg1,KKeyChooserItem* arg2,const QString& arg3); >>>> NOT CONVERTED
+ protected native void _warning(KKeySequence seq, String sAction, String sTitle);
+ protected native void slotNoKey();
+ protected native void slotDefaultKey();
+ protected native void slotCustomKey();
+ protected native void slotListItemSelected(QListViewItem item);
+ protected native void capturedShortcut(KShortcut cut);
+ protected native void slotSettingsChanged(int arg1);
+ protected native void slotListItemDoubleClicked(QListViewItem ipoQListViewItem, QPoint ipoQPoint, int c);
+ /** 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();
+}