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.
tdebindings/kdejava/koala/org/kde/koala/KToolBarPopupAction.java

143 lines
6.6 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.QObject;
import org.kde.qt.QWidget;
/**
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 KToolBarPopupAction extends KAction {
protected KToolBarPopupAction(Class dummy){super((Class) null);}
public native QMetaObject metaObject();
public native String className();
/**
Create a KToolBarPopupAction, 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 KToolBarPopupAction, with a text, an icon, an optional accelerator, parent and name.
*/
public KToolBarPopupAction(String text, String icon, KShortcut cut, QObject parent, String name) {
super((Class) null);
newKToolBarPopupAction(text,icon,cut,parent,name);
}
private native void newKToolBarPopupAction(String text, String icon, KShortcut cut, QObject parent, String name);
public KToolBarPopupAction(String text, String icon, KShortcut cut, QObject parent) {
super((Class) null);
newKToolBarPopupAction(text,icon,cut,parent);
}
private native void newKToolBarPopupAction(String text, String icon, KShortcut cut, QObject parent);
public KToolBarPopupAction(String text, String icon, KShortcut cut) {
super((Class) null);
newKToolBarPopupAction(text,icon,cut);
}
private native void newKToolBarPopupAction(String text, String icon, KShortcut cut);
public KToolBarPopupAction(String text, String icon) {
super((Class) null);
newKToolBarPopupAction(text,icon);
}
private native void newKToolBarPopupAction(String text, String icon);
/**
Create a KToolBarPopupAction, 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 KToolBarPopupAction, with a text, an icon, an accelerator, a slot connected to the action, parent and name.
*/
public KToolBarPopupAction(String text, String icon, KShortcut cut, QObject receiver, String slot, QObject parent, String name) {
super((Class) null);
newKToolBarPopupAction(text,icon,cut,receiver,slot,parent,name);
}
private native void newKToolBarPopupAction(String text, String icon, KShortcut cut, QObject receiver, String slot, QObject parent, String name);
public KToolBarPopupAction(String text, String icon, KShortcut cut, QObject receiver, String slot, QObject parent) {
super((Class) null);
newKToolBarPopupAction(text,icon,cut,receiver,slot,parent);
}
private native void newKToolBarPopupAction(String text, String icon, KShortcut cut, QObject receiver, String slot, QObject parent);
/**
Create a KToolBarPopupAction, 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 KToolBarPopupAction, with a KGuiItem, an accelerator, a slot connected to the action, parent and name.
*/
public KToolBarPopupAction(KGuiItem item, KShortcut cut, QObject receiver, String slot, KActionCollection parent, String name) {
super((Class) null);
newKToolBarPopupAction(item,cut,receiver,slot,parent,name);
}
private native void newKToolBarPopupAction(KGuiItem item, KShortcut cut, QObject receiver, String slot, KActionCollection parent, String name);
public native int plug(QWidget widget, int index);
public native int plug(QWidget 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 KPopupMenu popupMenu();
/**
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.
@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.
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 KToolbar.
*/
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();
}