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

import org.trinitydesktop.qt.Qt;
import org.trinitydesktop.qt.TQMetaObject;
import org.trinitydesktop.qt.QtSupport;
import org.trinitydesktop.qt.TQObject;
import org.trinitydesktop.qt.TQWidget;

/**

 This action is a normal action everywhere, except in a toolbar
 where it also has a popupmenu (optionnally delayed). This action is designed
 for history actions (back/forward, undo/redo) and for any other action
 that has more detail in a toolbar than in a menu (e.g. tool chooser
 with "Other" leading to a dialog...).
 		@short    This action is a normal action everywhere, except in a toolbar  where it also has a popupmenu (optionnally delayed).

*/
public class TDEToolBarPopupAction extends TDEAction  {
	protected TDEToolBarPopupAction(Class dummy){super((Class) null);}
	public native TQMetaObject metaObject();
	public native String className();
	/**
		 Create a TDEToolBarPopupAction, with a text, an icon, an optional accelerator,
		 parent and name.
			@param text The text that will be displayed.
			@param icon The icon to display.
			@param cut The corresponding keyboard accelerator (shortcut).
			@param parent This action's parent.
			@param name An internal name for this action.
		     		@short    Create a TDEToolBarPopupAction, with a text, an icon, an optional accelerator,  parent and name.
	*/
	public TDEToolBarPopupAction(String text, String icon, TDEShortcut cut, TQObject parent, String name) {
		super((Class) null);
		newTDEToolBarPopupAction(text,icon,cut,parent,name);
	}
	private native void newTDEToolBarPopupAction(String text, String icon, TDEShortcut cut, TQObject parent, String name);
	public TDEToolBarPopupAction(String text, String icon, TDEShortcut cut, TQObject parent) {
		super((Class) null);
		newTDEToolBarPopupAction(text,icon,cut,parent);
	}
	private native void newTDEToolBarPopupAction(String text, String icon, TDEShortcut cut, TQObject parent);
	public TDEToolBarPopupAction(String text, String icon, TDEShortcut cut) {
		super((Class) null);
		newTDEToolBarPopupAction(text,icon,cut);
	}
	private native void newTDEToolBarPopupAction(String text, String icon, TDEShortcut cut);
	public TDEToolBarPopupAction(String text, String icon) {
		super((Class) null);
		newTDEToolBarPopupAction(text,icon);
	}
	private native void newTDEToolBarPopupAction(String text, String icon);
	/**
		 Create a TDEToolBarPopupAction, with a text, an icon, an accelerator,
		 a slot connected to the action, parent and name.
			 If you do not want or have a keyboard accelerator, set the
		 <code>cut</code> param to 0.
			@param text The text that will be displayed.
			@param icon The icon to display.
			@param cut The corresponding keyboard accelerator (shortcut).
			@param receiver The SLOT's owner.
			@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    Create a TDEToolBarPopupAction, with a text, an icon, an accelerator,  a slot connected to the action, parent and name.
	*/
	public TDEToolBarPopupAction(String text, String icon, TDEShortcut cut, TQObject receiver, String slot, TQObject parent, String name) {
		super((Class) null);
		newTDEToolBarPopupAction(text,icon,cut,receiver,slot,parent,name);
	}
	private native void newTDEToolBarPopupAction(String text, String icon, TDEShortcut cut, TQObject receiver, String slot, TQObject parent, String name);
	public TDEToolBarPopupAction(String text, String icon, TDEShortcut cut, TQObject receiver, String slot, TQObject parent) {
		super((Class) null);
		newTDEToolBarPopupAction(text,icon,cut,receiver,slot,parent);
	}
	private native void newTDEToolBarPopupAction(String text, String icon, TDEShortcut cut, TQObject receiver, String slot, TQObject parent);
	/**
		 Create a TDEToolBarPopupAction, with a KGuiItem, an accelerator,
		 a slot connected to the action, parent and name. The text and the
		 icon are taken from the KGuiItem.
			 If you do not want or have a keyboard accelerator, set the
		 <code>cut</code> param to 0.
			@param item The text and icon that will be displayed.
			@param cut The corresponding keyboard accelerator (shortcut).
			@param receiver The SLOT's owner.
			@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    Create a TDEToolBarPopupAction, with a KGuiItem, an accelerator,  a slot connected to the action, parent and name.
	*/
	public TDEToolBarPopupAction(KGuiItem item, TDEShortcut cut, TQObject receiver, String slot, TDEActionCollection parent, String name) {
		super((Class) null);
		newTDEToolBarPopupAction(item,cut,receiver,slot,parent,name);
	}
	private native void newTDEToolBarPopupAction(KGuiItem item, TDEShortcut cut, TQObject receiver, String slot, TDEActionCollection parent, String name);
	public native int plug(TQWidget widget, int index);
	public native int plug(TQWidget widget);
	/**
		 The popup menu that is shown when clicking (some time) on the toolbar
		 button. You may want to plug items into it on creation, or connect to
		 aboutToShow for a more dynamic menu.
		     		@short    The popup menu that is shown when clicking (some time) on the toolbar  button.
	*/
	public native TDEPopupMenu popupMenu();
	/**
		 Returns true if this action creates a delayed popup menu
		 when plugged in a TDEToolbar.
		     		@short    Returns true if this action creates a delayed popup menu  when plugged in a TDEToolbar.
	*/
	public native boolean delayed();
	/**
		 If set to true, this action will create a delayed popup menu
		 when plugged in a TDEToolbar. Otherwise it creates a normal popup.
		 Default: delayed.
		     		@short    If set to true, this action will create a delayed popup menu  when plugged in a TDEToolbar.
	*/
	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 TDEToolbar.
		 "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.
		 Only available if delayed() is true.
		 Default: sticky.
		     		@short    If set to true, this action will create a sticky popup menu  when plugged in a TDEToolbar.
	*/
	public native void setStickyMenu(boolean sticky);
	/** 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();
}
