//Auto-generated by kalyptus. DO NOT EDIT. package org.kde.koala; import org.kde.qt.Qt; import org.kde.qt.TQMetaObject; import org.kde.qt.QtSupport; import org.kde.qt.TQObject; import org.kde.qt.TQIconSet; import org.kde.qt.TQWidget; /** Checkbox like action. This action provides two states: checked or not. See {@link TDEToggleActionSignals} for signals emitted by TDEToggleAction @short Checkbox like action. */ public class TDEToggleAction extends TDEAction { protected TDEToggleAction(Class dummy){super((Class) null);} public native TQMetaObject 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 TDEToggleAction(String text, TDEShortcut cut, TQObject parent, String name) { super((Class) null); newTDEToggleAction(text,cut,parent,name); } private native void newTDEToggleAction(String text, TDEShortcut cut, TQObject parent, String name); public TDEToggleAction(String text, TDEShortcut cut, TQObject parent) { super((Class) null); newTDEToggleAction(text,cut,parent); } private native void newTDEToggleAction(String text, TDEShortcut cut, TQObject parent); public TDEToggleAction(String text, TDEShortcut cut) { super((Class) null); newTDEToggleAction(text,cut); } private native void newTDEToggleAction(String text, TDEShortcut cut); public TDEToggleAction(String text) { super((Class) null); newTDEToggleAction(text); } private native void newTDEToggleAction(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 TDEToggleAction(String text, TDEShortcut cut, TQObject receiver, String slot, TQObject parent, String name) { super((Class) null); newTDEToggleAction(text,cut,receiver,slot,parent,name); } private native void newTDEToggleAction(String text, TDEShortcut cut, TQObject receiver, String slot, TQObject parent, String name); public TDEToggleAction(String text, TDEShortcut cut, TQObject receiver, String slot, TQObject parent) { super((Class) null); newTDEToggleAction(text,cut,receiver,slot,parent); } private native void newTDEToggleAction(String text, TDEShortcut cut, TQObject receiver, String slot, TQObject 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 TDEToggleAction(String text, TQIconSet pix, TDEShortcut cut, TQObject parent, String name) { super((Class) null); newTDEToggleAction(text,pix,cut,parent,name); } private native void newTDEToggleAction(String text, TQIconSet pix, TDEShortcut cut, TQObject parent, String name); public TDEToggleAction(String text, TQIconSet pix, TDEShortcut cut, TQObject parent) { super((Class) null); newTDEToggleAction(text,pix,cut,parent); } private native void newTDEToggleAction(String text, TQIconSet pix, TDEShortcut cut, TQObject parent); public TDEToggleAction(String text, TQIconSet pix, TDEShortcut cut) { super((Class) null); newTDEToggleAction(text,pix,cut); } private native void newTDEToggleAction(String text, TQIconSet pix, TDEShortcut cut); public TDEToggleAction(String text, TQIconSet pix) { super((Class) null); newTDEToggleAction(text,pix); } private native void newTDEToggleAction(String text, TQIconSet 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 TDEToggleAction(String text, String pix, TDEShortcut cut, TQObject parent, String name) { super((Class) null); newTDEToggleAction(text,pix,cut,parent,name); } private native void newTDEToggleAction(String text, String pix, TDEShortcut cut, TQObject parent, String name); public TDEToggleAction(String text, String pix, TDEShortcut cut, TQObject parent) { super((Class) null); newTDEToggleAction(text,pix,cut,parent); } private native void newTDEToggleAction(String text, String pix, TDEShortcut cut, TQObject parent); public TDEToggleAction(String text, String pix, TDEShortcut cut) { super((Class) null); newTDEToggleAction(text,pix,cut); } private native void newTDEToggleAction(String text, String pix, TDEShortcut cut); public TDEToggleAction(String text, String pix) { super((Class) null); newTDEToggleAction(text,pix); } private native void newTDEToggleAction(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 TDEToggleAction(String text, TQIconSet pix, TDEShortcut cut, TQObject receiver, String slot, TQObject parent, String name) { super((Class) null); newTDEToggleAction(text,pix,cut,receiver,slot,parent,name); } private native void newTDEToggleAction(String text, TQIconSet pix, TDEShortcut cut, TQObject receiver, String slot, TQObject parent, String name); public TDEToggleAction(String text, TQIconSet pix, TDEShortcut cut, TQObject receiver, String slot, TQObject parent) { super((Class) null); newTDEToggleAction(text,pix,cut,receiver,slot,parent); } private native void newTDEToggleAction(String text, TQIconSet pix, TDEShortcut cut, TQObject receiver, String slot, TQObject 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 TDEToggleAction(String text, String pix, TDEShortcut cut, TQObject receiver, String slot, TQObject parent, String name) { super((Class) null); newTDEToggleAction(text,pix,cut,receiver,slot,parent,name); } private native void newTDEToggleAction(String text, String pix, TDEShortcut cut, TQObject receiver, String slot, TQObject parent, String name); public TDEToggleAction(String text, String pix, TDEShortcut cut, TQObject receiver, String slot, TQObject parent) { super((Class) null); newTDEToggleAction(text,pix,cut,receiver,slot,parent); } private native void newTDEToggleAction(String text, String pix, TDEShortcut cut, TQObject receiver, String slot, TQObject parent); /** @param parent This action's parent. @param name An internal name for this action. @short */ public TDEToggleAction(TQObject parent, String name) { super((Class) null); newTDEToggleAction(parent,name); } private native void newTDEToggleAction(TQObject parent, String name); public TDEToggleAction(TQObject parent) { super((Class) null); newTDEToggleAction(parent); } private native void newTDEToggleAction(TQObject parent); public TDEToggleAction() { super((Class) null); newTDEToggleAction(); } private native void newTDEToggleAction(); /** "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 TDEToggleAction 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(TQWidget widget, int index); public native int plug(TQWidget 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 " should turn into "Hide " when activated. If hasIcon(), the icon is kept for the 'checked state', unless checkedItem 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(); }