summaryrefslogtreecommitdiffstats
path: root/kdejava/koala/org/kde/koala/KToggleAction.java
diff options
context:
space:
mode:
authortoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
committertoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
commit90825e2392b2d70e43c7a25b8a3752299a933894 (patch)
treee33aa27f02b74604afbfd0ea4f1cfca8833d882a /kdejava/koala/org/kde/koala/KToggleAction.java
downloadtdebindings-90825e2392b2d70e43c7a25b8a3752299a933894.tar.gz
tdebindings-90825e2392b2d70e43c7a25b8a3752299a933894.zip
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebindings@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdejava/koala/org/kde/koala/KToggleAction.java')
-rw-r--r--kdejava/koala/org/kde/koala/KToggleAction.java245
1 files changed, 245 insertions, 0 deletions
diff --git a/kdejava/koala/org/kde/koala/KToggleAction.java b/kdejava/koala/org/kde/koala/KToggleAction.java
new file mode 100644
index 00000000..d4b0a3e5
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KToggleAction.java
@@ -0,0 +1,245 @@
+//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();
+}