//Auto-generated by kalyptus. DO NOT EDIT.
package org.trinitydesktop.koala;

import org.trinitydesktop.qt.TQt;
import org.trinitydesktop.qt.TQListViewItem;
import org.trinitydesktop.qt.TQFont;
import org.trinitydesktop.qt.TQMetaObject;
import org.trinitydesktop.qt.QtSupport;
import org.trinitydesktop.qt.TQPoint;
import org.trinitydesktop.qt.TQWidget;
import org.trinitydesktop.qt.TQWidget;

/**

 Configure dictionaries of key/action associations for TDEAccel and
 TDEGlobalAccel.
 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 TDEAccel and TDEGlobalAccel.
		@see KKeyDialog

*/
public class KKeyChooser extends TQWidget  {
	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 TQMetaObject 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(TQWidget* arg1,ActionType arg2,bool arg3); >>>> NOT CONVERTED
	// KKeyChooser* KKeyChooser(TQWidget* arg1,ActionType arg2); >>>> NOT CONVERTED
	public KKeyChooser(TQWidget parent) {
		super((Class) null);
		newKKeyChooser(parent);
	}
	private native void newKKeyChooser(TQWidget parent);
	/**
		 \overload
			@param parent parent widget
			@param coll the TDEActionCollection to configure
			@param bAllowLetterShortcuts Set to false if unmodified alphanumeric
		  keys ('A', '1', etc.) are not permissible shortcuts.
		     		@short    \overload
	*/
	public KKeyChooser(TDEActionCollection coll, TQWidget parent, boolean bAllowLetterShortcuts) {
		super((Class) null);
		newKKeyChooser(coll,parent,bAllowLetterShortcuts);
	}
	private native void newKKeyChooser(TDEActionCollection coll, TQWidget parent, boolean bAllowLetterShortcuts);
	public KKeyChooser(TDEActionCollection coll, TQWidget parent) {
		super((Class) null);
		newKKeyChooser(coll,parent);
	}
	private native void newKKeyChooser(TDEActionCollection coll, TQWidget parent);
	public KKeyChooser(TDEAccel actions, TQWidget parent, boolean bAllowLetterShortcuts) {
		super((Class) null);
		newKKeyChooser(actions,parent,bAllowLetterShortcuts);
	}
	private native void newKKeyChooser(TDEAccel actions, TQWidget parent, boolean bAllowLetterShortcuts);
	public KKeyChooser(TDEAccel actions, TQWidget parent) {
		super((Class) null);
		newKKeyChooser(actions,parent);
	}
	private native void newKKeyChooser(TDEAccel actions, TQWidget parent);
	public KKeyChooser(TDEGlobalAccel actions, TQWidget parent) {
		super((Class) null);
		newKKeyChooser(actions,parent);
	}
	private native void newKKeyChooser(TDEGlobalAccel actions, TQWidget parent);
	// KKeyChooser* KKeyChooser(TDEShortcutList* arg1,TQWidget* arg2,ActionType arg3,bool arg4); >>>> NOT CONVERTED
	// KKeyChooser* KKeyChooser(TDEShortcutList* arg1,TQWidget* arg2,ActionType arg3); >>>> NOT CONVERTED
	public KKeyChooser(TDEShortcutList arg1, TQWidget parent) {
		super((Class) null);
		newKKeyChooser(arg1,parent);
	}
	private native void newKKeyChooser(TDEShortcutList arg1, TQWidget 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(TDEActionCollection 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(TDEActionCollection arg1, String title);
	public native void syncToConfig(String sConfigGroup, TDEConfigBase 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 TDEActionCollection 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(TDEShortcut cut, boolean warnUser, TQWidget 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(TDEShortcut cut, boolean warnUser, TQWidget parent);
	// void initGUI(ActionType arg1,bool arg2); >>>> NOT CONVERTED
	protected native boolean insert(TDEAccel arg1);
	protected native boolean insert(TDEGlobalAccel arg1);
	protected native boolean insert(TDEShortcutList 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(TQFont _font);
	protected native void setShortcut(TDEShortcut cut);
	protected native boolean isKeyPresent(TDEShortcut cut, boolean warnuser);
	protected native boolean isKeyPresent(TDEShortcut cut);
	// bool isKeyPresentLocally(const TDEShortcut& arg1,KKeyChooserItem* arg2,const TQString& 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(TQListViewItem item);
	protected native void capturedShortcut(TDEShortcut cut);
	protected native void slotSettingsChanged(int arg1);
	protected native void slotListItemDoubleClicked(TQListViewItem ipoTQListViewItem, TQPoint ipoTQPoint, 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();
}
