You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
158 lines
7.3 KiB
158 lines
7.3 KiB
//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.QWidget;
|
|
|
|
/**
|
|
|
|
The KKeyDialog class is used for configuring dictionaries of key/action
|
|
associations for KActionCollection, KAccel, and KGlobalAccel. It uses the KKeyChooser widget
|
|
and offers buttons to set all keys to defaults and invoke on-line help.
|
|
Several static methods are supplied which provide the most convenient interface
|
|
to the dialog. The most common and most encouraged use is with KActionCollection.
|
|
<pre>
|
|
KKeyDialog.configure( actionCollection() );
|
|
</pre>
|
|
@author Nicolas Hadacek <hadacek@via.ecp.fr>
|
|
|
|
@short Dialog for configuration of KActionCollection, KAccel, and KGlobalAccel.
|
|
|
|
*/
|
|
public class KKeyDialog extends KDialogBase {
|
|
protected KKeyDialog(Class dummy){super((Class) null);}
|
|
public native QMetaObject metaObject();
|
|
public native String className();
|
|
/**
|
|
Constructs a KKeyDialog called <code>name</code> as a child of <code>parent.</code>
|
|
Set <code>bAllowLetterShortcuts</code> to false if unmodified alphanumeric
|
|
keys ('A', '1', etc.) are not permissible shortcuts.
|
|
@short Constructs a KKeyDialog called <code>name</code> as a child of <code>parent.</code>
|
|
*/
|
|
public KKeyDialog(boolean bAllowLetterShortcuts, QWidget parent, String name) {
|
|
super((Class) null);
|
|
newKKeyDialog(bAllowLetterShortcuts,parent,name);
|
|
}
|
|
private native void newKKeyDialog(boolean bAllowLetterShortcuts, QWidget parent, String name);
|
|
public KKeyDialog(boolean bAllowLetterShortcuts, QWidget parent) {
|
|
super((Class) null);
|
|
newKKeyDialog(bAllowLetterShortcuts,parent);
|
|
}
|
|
private native void newKKeyDialog(boolean bAllowLetterShortcuts, QWidget parent);
|
|
public KKeyDialog(boolean bAllowLetterShortcuts) {
|
|
super((Class) null);
|
|
newKKeyDialog(bAllowLetterShortcuts);
|
|
}
|
|
private native void newKKeyDialog(boolean bAllowLetterShortcuts);
|
|
public KKeyDialog() {
|
|
super((Class) null);
|
|
newKKeyDialog();
|
|
}
|
|
private native void newKKeyDialog();
|
|
/**
|
|
Insert an action collection, i.e. add all its actions to the ones
|
|
displayed by the dialog.
|
|
This method can be useful in applications following the document/view
|
|
design, with actions in both the document and the view.
|
|
Simply call insert with the action collections of each one in turn.
|
|
@return true :)
|
|
|
|
@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
|
|
displayed by the dialog.
|
|
This method can be useful in applications following the document/view
|
|
design, with actions in both the document and the view.
|
|
Simply call insert with the action collections of each one in turn.
|
|
@param title the title associated with the collection (if null, the
|
|
KAboutData.progName() of the collection's instance is used)
|
|
@return true :)
|
|
|
|
@short Insert an action collection, i.
|
|
*/
|
|
public native boolean insert(KActionCollection arg1, String title);
|
|
/**
|
|
Run the dialog and call commitChanges() if <code>bSaveSettings</code>
|
|
is true.
|
|
@short Run the dialog and call commitChanges() if <code>bSaveSettings</code> is true.
|
|
*/
|
|
public native boolean configure(boolean bSaveSettings);
|
|
public native boolean configure();
|
|
/**
|
|
Commit key setting changes so that changed settings actually become active.
|
|
This method is implicitly called from configure(boolean) if
|
|
<code>bSaveSettings</code> is true.
|
|
@short Commit key setting changes so that changed settings actually become active.
|
|
*/
|
|
public native void commitChanges();
|
|
/**
|
|
Pops up a modal dialog for configuring key settings. The new
|
|
shortcut settings will be active if the user presses OK. If
|
|
<code>bSaveSettings</code> if true, the settings will also be saved back to
|
|
the uirc file which they were intially read from.
|
|
@return Accept if the dialog was closed with OK, Reject otherwise.
|
|
|
|
@short Pops up a modal dialog for configuring key settings.
|
|
*/
|
|
public static native int configure(KActionCollection coll, QWidget parent, boolean bSaveSettings);
|
|
public static native int configure(KActionCollection coll, QWidget parent);
|
|
public static native int configure(KActionCollection coll);
|
|
/**
|
|
This is an overloaded member function, provided for convenience.
|
|
It behaves essentially like the above function, except that settings
|
|
are saved to a .rc file using KConfig.
|
|
@short This is an overloaded member function, provided for convenience.
|
|
*/
|
|
public static native int configure(KAccel keys, QWidget parent, boolean bSaveSettings);
|
|
public static native int configure(KAccel keys, QWidget parent);
|
|
public static native int configure(KAccel keys);
|
|
/**
|
|
This is an overloaded member function, provided for convenience.
|
|
It behaves essentially like the above function.
|
|
@short This is an overloaded member function, provided for convenience.
|
|
*/
|
|
public static native int configure(KGlobalAccel keys, QWidget parent, boolean bSaveSettings);
|
|
public static native int configure(KGlobalAccel keys, QWidget parent);
|
|
public static native int configure(KGlobalAccel keys);
|
|
/**
|
|
This is an overloaded member function, provided for convenience.
|
|
It behaves essentially like the above function.
|
|
@param coll the KActionCollection to configure
|
|
@param bAllowLetterShortcuts Set to false if unmodified alphanumeric
|
|
keys ('A', '1', etc.) are not permissible shortcuts.
|
|
@param parent the parent widget to attach to
|
|
@param bSaveSettings if true, the settings will also be saved back to
|
|
the uirc file which they were intially read from.
|
|
@short This is an overloaded member function, provided for convenience.
|
|
*/
|
|
public static native int configure(KActionCollection coll, boolean bAllowLetterShortcuts, QWidget parent, boolean bSaveSettings);
|
|
public static native int configure(KActionCollection coll, boolean bAllowLetterShortcuts, QWidget parent);
|
|
public static native int configure(KActionCollection coll, boolean bAllowLetterShortcuts);
|
|
/**
|
|
This is an overloaded member function, provided for convenience.
|
|
It behaves essentially like the above function.
|
|
@short This is an overloaded member function, provided for convenience.
|
|
*/
|
|
public static native int configure(KAccel keys, boolean bAllowLetterShortcuts, QWidget parent, boolean bSaveSettings);
|
|
public static native int configure(KAccel keys, boolean bAllowLetterShortcuts, QWidget parent);
|
|
public static native int configure(KAccel keys, boolean bAllowLetterShortcuts);
|
|
/**
|
|
This is an overloaded member function, provided for convenience.
|
|
It behaves essentially like the above function.
|
|
@short This is an overloaded member function, provided for convenience.
|
|
*/
|
|
public static native int configure(KGlobalAccel keys, boolean bAllowLetterShortcuts, QWidget parent, boolean bSaveSettings);
|
|
public static native int configure(KGlobalAccel keys, boolean bAllowLetterShortcuts, QWidget parent);
|
|
public static native int configure(KGlobalAccel keys, boolean bAllowLetterShortcuts);
|
|
/** 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();
|
|
}
|