//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;

/**

  Checkbox like action.
  This action provides two states: checked or not.
  See {@link KToggleActionSignals} for signals emitted by KToggleAction
		@short Checkbox like action.

*/
public class KToggleAction extends KAction  {
	protected KToggleAction(Class dummy){super((Class) null);}
	public native QMetaObject metaObject();
	public native String className();
	/**	
		 Constructs a toggle action with text and potential keyboard
		 accelerator but nothing else. Use this only if you really
		 know what you are doing.
			@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.
		     		@short    Constructs a toggle action with text and potential keyboard  accelerator but nothing else.
	*/
	public KToggleAction(String text, KShortcut cut, QObject parent, String name) {
		super((Class) null);
		newKToggleAction(text,cut,parent,name);
	}
	private native void newKToggleAction(String text, KShortcut cut, QObject parent, String name);
	public KToggleAction(String text, KShortcut cut, QObject parent) {
		super((Class) null);
		newKToggleAction(text,cut,parent);
	}
	private native void newKToggleAction(String text, KShortcut cut, QObject parent);
	public KToggleAction(String text, KShortcut cut) {
		super((Class) null);
		newKToggleAction(text,cut);
	}
	private native void newKToggleAction(String text, KShortcut cut);
	public KToggleAction(String text) {
		super((Class) null);
		newKToggleAction(text);
	}
	private native void newKToggleAction(String text);
	/**	
			@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 to execute this action.
			@param parent This action's parent.
			@param name An internal name for this action.
		     		@short
	*/
	public KToggleAction(String text, KShortcut cut, QObject receiver, String slot, QObject parent, String name) {
		super((Class) null);
		newKToggleAction(text,cut,receiver,slot,parent,name);
	}
	private native void newKToggleAction(String text, KShortcut cut, QObject receiver, String slot, QObject parent, String name);
	public KToggleAction(String text, KShortcut cut, QObject receiver, String slot, QObject parent) {
		super((Class) null);
		newKToggleAction(text,cut,receiver,slot,parent);
	}
	private native void newKToggleAction(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.
		     		@short
	*/
	public KToggleAction(String text, QIconSet pix, KShortcut cut, QObject parent, String name) {
		super((Class) null);
		newKToggleAction(text,pix,cut,parent,name);
	}
	private native void newKToggleAction(String text, QIconSet pix, KShortcut cut, QObject parent, String name);
	public KToggleAction(String text, QIconSet pix, KShortcut cut, QObject parent) {
		super((Class) null);
		newKToggleAction(text,pix,cut,parent);
	}
	private native void newKToggleAction(String text, QIconSet pix, KShortcut cut, QObject parent);
	public KToggleAction(String text, QIconSet pix, KShortcut cut) {
		super((Class) null);
		newKToggleAction(text,pix,cut);
	}
	private native void newKToggleAction(String text, QIconSet pix, KShortcut cut);
	public KToggleAction(String text, QIconSet pix) {
		super((Class) null);
		newKToggleAction(text,pix);
	}
	private native void newKToggleAction(String text, QIconSet pix);
	/**	
			@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.
		     		@short
	*/
	public KToggleAction(String text, String pix, KShortcut cut, QObject parent, String name) {
		super((Class) null);
		newKToggleAction(text,pix,cut,parent,name);
	}
	private native void newKToggleAction(String text, String pix, KShortcut cut, QObject parent, String name);
	public KToggleAction(String text, String pix, KShortcut cut, QObject parent) {
		super((Class) null);
		newKToggleAction(text,pix,cut,parent);
	}
	private native void newKToggleAction(String text, String pix, KShortcut cut, QObject parent);
	public KToggleAction(String text, String pix, KShortcut cut) {
		super((Class) null);
		newKToggleAction(text,pix,cut);
	}
	private native void newKToggleAction(String text, String pix, KShortcut cut);
	public KToggleAction(String text, String pix) {
		super((Class) null);
		newKToggleAction(text,pix);
	}
	private native void newKToggleAction(String text, String pix);
	/**	
			@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 to execute this action.
			@param parent This action's parent.
			@param name An internal name for this action.
		     		@short
	*/
	public KToggleAction(String text, QIconSet pix, KShortcut cut, QObject receiver, String slot, QObject parent, String name) {
		super((Class) null);
		newKToggleAction(text,pix,cut,receiver,slot,parent,name);
	}
	private native void newKToggleAction(String text, QIconSet pix, KShortcut cut, QObject receiver, String slot, QObject parent, String name);
	public KToggleAction(String text, QIconSet pix, KShortcut cut, QObject receiver, String slot, QObject parent) {
		super((Class) null);
		newKToggleAction(text,pix,cut,receiver,slot,parent);
	}
	private native void newKToggleAction(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 to execute this action.
			@param parent This action's parent.
			@param name An internal name for this action.
		     		@short
	*/
	public KToggleAction(String text, String pix, KShortcut cut, QObject receiver, String slot, QObject parent, String name) {
		super((Class) null);
		newKToggleAction(text,pix,cut,receiver,slot,parent,name);
	}
	private native void newKToggleAction(String text, String pix, KShortcut cut, QObject receiver, String slot, QObject parent, String name);
	public KToggleAction(String text, String pix, KShortcut cut, QObject receiver, String slot, QObject parent) {
		super((Class) null);
		newKToggleAction(text,pix,cut,receiver,slot,parent);
	}
	private native void newKToggleAction(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.
		     		@short
	*/
	public KToggleAction(QObject parent, String name) {
		super((Class) null);
		newKToggleAction(parent,name);
	}
	private native void newKToggleAction(QObject parent, String name);
	public KToggleAction(QObject parent) {
		super((Class) null);
		newKToggleAction(parent);
	}
	private native void newKToggleAction(QObject parent);
	public KToggleAction() {
		super((Class) null);
		newKToggleAction();
	}
	private native void newKToggleAction();
	/**	
		  "Plug" or insert this action into a given widget.
			  This will typically be a menu or a toolbar.  From this point
		  on, you will never need to directly manipulate the item in the
		  menu or toolbar.  You do all enabling/disabling/manipulation
		  directly with your KToggleAction object.
			@param widget The GUI element to display this action.
			@param index The index of the item.
		     		@short     "Plug" or insert this action into a given widget.
	*/
	public native int plug(QWidget widget, int index);
	public native int plug(QWidget widget);
	/**	
		  Returns the actual state of the action.
		     		@short     Returns the actual state of the action.
	*/
	public native boolean isChecked();
	/**	
				@return which "exclusive group" this action is part of.

		@short   
		@see #setExclusiveGroup
	*/
	public native String exclusiveGroup();
	/**	
		 Defines which "exclusive group" this action is part of.
		 In a given exclusive group, only one toggle action can be checked
		 at a any moment. Checking an action unchecks the other actions
		 of the group.
		     		@short    Defines which "exclusive group" this action is part of.
	*/
	public native void setExclusiveGroup(String name);
	/**	
		 Defines the text (and icon, tooltip, whatsthis) that should be displayed
		 instead of the normal text, when the action is checked.
		 This feature replaces the checkmark that usually appears in front of the text, in menus.
		 It is useful when the text is mainly a verb: e.g. "Show <foo>"
		 should turn into "Hide <foo>" when activated.
			 If hasIcon(), the icon is kept for the 'checked state', unless
		 <code>checkedItem</code> defines an icon explicitely. Same thing for tooltip and whatsthis.
				@short    Defines the text (and icon, tooltip, whatsthis) that should be displayed  instead of the normal text, when the action is checked.
	*/
	public native void setCheckedState(KGuiItem checkedItem);
	public native String toolTip();
	/**	
		  Sets the state of the action.
		     		@short     Sets the state of the action.
	*/
	public native void setChecked(boolean arg1);
	protected native void updateChecked(int id);
	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();
}
