//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.QPoint;
import org.kde.qt.QIconSet;
import org.kde.qt.QWidget;

/**

 A KActionMenu is an action that holds a sub-menu of other actions.
 insert() and remove() allow to insert and remove actions into this action-menu.
 Plugged in a popupmenu, it will create a submenu.
 Plugged in a toolbar, it will create a button with a popup menu.
 This is the action used by the XMLGUI since it holds other actions.
 If you want a submenu for selecting one tool among many (without icons), see KSelectAction.
 See also setDelayed about the main action.
 		@short    A KActionMenu is an action that holds a sub-menu of other actions.

*/
public class KActionMenu extends KAction  {
	protected KActionMenu(Class dummy){super((Class) null);}
	public native QMetaObject metaObject();
	public native String className();
	public KActionMenu(String text, QObject parent, String name) {
		super((Class) null);
		newKActionMenu(text,parent,name);
	}
	private native void newKActionMenu(String text, QObject parent, String name);
	public KActionMenu(String text, QObject parent) {
		super((Class) null);
		newKActionMenu(text,parent);
	}
	private native void newKActionMenu(String text, QObject parent);
	public KActionMenu(String text) {
		super((Class) null);
		newKActionMenu(text);
	}
	private native void newKActionMenu(String text);
	public KActionMenu(String text, QIconSet icon, QObject parent, String name) {
		super((Class) null);
		newKActionMenu(text,icon,parent,name);
	}
	private native void newKActionMenu(String text, QIconSet icon, QObject parent, String name);
	public KActionMenu(String text, QIconSet icon, QObject parent) {
		super((Class) null);
		newKActionMenu(text,icon,parent);
	}
	private native void newKActionMenu(String text, QIconSet icon, QObject parent);
	public KActionMenu(String text, QIconSet icon) {
		super((Class) null);
		newKActionMenu(text,icon);
	}
	private native void newKActionMenu(String text, QIconSet icon);
	public KActionMenu(String text, String icon, QObject parent, String name) {
		super((Class) null);
		newKActionMenu(text,icon,parent,name);
	}
	private native void newKActionMenu(String text, String icon, QObject parent, String name);
	public KActionMenu(String text, String icon, QObject parent) {
		super((Class) null);
		newKActionMenu(text,icon,parent);
	}
	private native void newKActionMenu(String text, String icon, QObject parent);
	public KActionMenu(String text, String icon) {
		super((Class) null);
		newKActionMenu(text,icon);
	}
	private native void newKActionMenu(String text, String icon);
	public KActionMenu(QObject parent, String name) {
		super((Class) null);
		newKActionMenu(parent,name);
	}
	private native void newKActionMenu(QObject parent, String name);
	public KActionMenu(QObject parent) {
		super((Class) null);
		newKActionMenu(parent);
	}
	private native void newKActionMenu(QObject parent);
	public KActionMenu() {
		super((Class) null);
		newKActionMenu();
	}
	private native void newKActionMenu();
	public native void insert(KAction arg1, int index);
	public native void insert(KAction arg1);
	public native void remove(KAction arg1);
	public native KPopupMenu popupMenu();
	public native void popup(QPoint global);
	/**	
		 Returns true if this action creates a delayed popup menu
		 when plugged in a KToolbar.
		     		@short    Returns true if this action creates a delayed popup menu  when plugged in a KToolbar.
	*/
	public native boolean delayed();
	/**	
		 If set to true, this action will create a delayed popup menu
		 when plugged in a KToolbar. Otherwise it creates a normal popup.
		 Default: delayed
			 Remember that if the "main" action (the toolbar button itself)
		 cannot be clicked, then you should call setDelayed(false).
			 On the opposite, if the main action can be clicked, it can only happen
		 in a toolbar: in a menu, the parent of a submenu can't be activated.
		 To get a "normal" menu item when plugged a menu (and no submenu)
		 use KToolBarPopupAction.
		     		@short    If set to true, this action will create a delayed popup menu  when plugged in a KToolbar.
	*/
	public native void setDelayed(boolean _delayed);
	/**	
		 Returns true if this action creates a sticky popup menu.
		 See setStickyMenu().
		     		@short    Returns true if this action creates a sticky popup menu.
	*/
	public native boolean stickyMenu();
	/**	
		 If set to true, this action will create a sticky popup menu
		 when plugged in a KToolbar.
		 "Sticky", means it's visible until a selection is made or the mouse is
		 clicked elsewhere. This feature allows you to make a selection without
		 having to press and hold down the mouse while making a selection.
		 Default: sticky.
		     		@short    If set to true, this action will create a sticky popup menu  when plugged in a KToolbar.
	*/
	public native void setStickyMenu(boolean sticky);
	public native int plug(QWidget widget, int index);
	public native int plug(QWidget widget);
	/** 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();
}
