summaryrefslogtreecommitdiffstats
path: root/kdejava/koala/org/kde/koala/KAction.java
diff options
context:
space:
mode:
Diffstat (limited to 'kdejava/koala/org/kde/koala/KAction.java')
-rw-r--r--kdejava/koala/org/kde/koala/KAction.java84
1 files changed, 42 insertions, 42 deletions
diff --git a/kdejava/koala/org/kde/koala/KAction.java b/kdejava/koala/org/kde/koala/KAction.java
index e7027803..76e99f77 100644
--- a/kdejava/koala/org/kde/koala/KAction.java
+++ b/kdejava/koala/org/kde/koala/KAction.java
@@ -2,13 +2,13 @@
package org.kde.koala;
import org.kde.qt.Qt;
-import org.kde.qt.QMetaObject;
+import org.kde.qt.TQMetaObject;
import org.kde.qt.QtSupport;
-import org.kde.qt.QObject;
-import org.kde.qt.QPopupMenu;
-import org.kde.qt.QIconSet;
-import org.kde.qt.QWidget;
-import org.kde.qt.QObject;
+import org.kde.qt.TQObject;
+import org.kde.qt.TQPopupMenu;
+import org.kde.qt.TQIconSet;
+import org.kde.qt.TQWidget;
+import org.kde.qt.TQObject;
/**
@@ -53,9 +53,9 @@ import org.kde.qt.QObject;
If you are in the situation of wanting to map the activated()
signal of multiple action objects to one slot, with a special
argument bound to each action, then you might consider using
- QSignalMapper . A tiny example:
+ TQSignalMapper . A tiny example:
<pre>
- QSignalMapper desktopNumberMapper = new QSignalMapper( this );
+ TQSignalMapper desktopNumberMapper = new TQSignalMapper( this );
connect( desktopNumberMapper, SIGNAL("mapped( int )"),
this, SLOT("moveWindowToDesktop( int )") );
for ( uint i = 0; i < numberOfDesktops; ++i ) {
@@ -93,7 +93,7 @@ import org.kde.qt.QObject;
the standard shortcut. It further says that whenever this action
is invoked, it will use the fileNew() slot to execute it.
<pre>
- QPopupMenu file = new QPopupMenu;
+ TQPopupMenu file = new TQPopupMenu;
newAct.plug(file);
</pre>
That just inserted the action into the File menu. The point is, it's not
@@ -142,7 +142,7 @@ import org.kde.qt.QObject;
@see KStdAction
*/
-public class KAction extends QObject {
+public class KAction extends TQObject {
protected KAction(Class dummy){super((Class) null);}
/**
@short
@@ -153,7 +153,7 @@ public class KAction extends QObject {
public static final int PopupMenuActivation = 3;
public static final int ToolBarActivation = 4;
- public native QMetaObject metaObject();
+ public native TQMetaObject metaObject();
public native String className();
/**
Constructs an action with text, potential keyboard
@@ -173,11 +173,11 @@ public class KAction extends QObject {
@param name An internal name for this action.
@short Constructs an action with text, potential keyboard shortcut, and a SLOT to call when this action is invoked by the user.
*/
- public KAction(String text, KShortcut cut, QObject receiver, String slot, KActionCollection parent, String name) {
+ public KAction(String text, KShortcut cut, TQObject receiver, String slot, KActionCollection parent, String name) {
super((Class) null);
newKAction(text,cut,receiver,slot,parent,name);
}
- private native void newKAction(String text, KShortcut cut, QObject receiver, String slot, KActionCollection parent, String name);
+ private native void newKAction(String text, KShortcut cut, TQObject receiver, String slot, KActionCollection parent, String name);
/**
Constructs an action with text, icon, potential keyboard
shortcut, and a SLOT to call when this action is invoked by
@@ -195,11 +195,11 @@ public class KAction extends QObject {
@param name An internal name for this action.
@short Constructs an action with text, icon, potential keyboard shortcut, and a SLOT to call when this action is invoked by the user.
*/
- public KAction(String text, QIconSet pix, KShortcut cut, QObject receiver, String slot, KActionCollection parent, String name) {
+ public KAction(String text, TQIconSet pix, KShortcut cut, TQObject receiver, String slot, KActionCollection parent, String name) {
super((Class) null);
newKAction(text,pix,cut,receiver,slot,parent,name);
}
- private native void newKAction(String text, QIconSet pix, KShortcut cut, QObject receiver, String slot, KActionCollection parent, String name);
+ private native void newKAction(String text, TQIconSet pix, KShortcut cut, TQObject receiver, String slot, KActionCollection parent, String name);
/**
Constructs an action with text, icon, potential keyboard
shortcut, and a SLOT to call when this action is invoked by
@@ -218,11 +218,11 @@ public class KAction extends QObject {
@param name An internal name for this action.
@short Constructs an action with text, icon, potential keyboard shortcut, and a SLOT to call when this action is invoked by the user.
*/
- public KAction(String text, String pix, KShortcut cut, QObject receiver, String slot, KActionCollection parent, String name) {
+ public KAction(String text, String pix, KShortcut cut, TQObject receiver, String slot, KActionCollection parent, String name) {
super((Class) null);
newKAction(text,pix,cut,receiver,slot,parent,name);
}
- private native void newKAction(String text, String pix, KShortcut cut, QObject receiver, String slot, KActionCollection parent, String name);
+ private native void newKAction(String text, String pix, KShortcut cut, TQObject receiver, String slot, KActionCollection parent, String name);
/**
The same as the above constructor, but with a KGuiItem providing
the text and icon.
@@ -234,11 +234,11 @@ public class KAction extends QObject {
@param name An internal name for this action.
@short The same as the above constructor, but with a KGuiItem providing the text and icon.
*/
- public KAction(KGuiItem item, KShortcut cut, QObject receiver, String slot, KActionCollection parent, String name) {
+ public KAction(KGuiItem item, KShortcut cut, TQObject receiver, String slot, KActionCollection parent, String name) {
super((Class) null);
newKAction(item,cut,receiver,slot,parent,name);
}
- private native void newKAction(KGuiItem item, KShortcut cut, QObject receiver, String slot, KActionCollection parent, String name);
+ private native void newKAction(KGuiItem item, KShortcut cut, TQObject receiver, String slot, KActionCollection parent, String name);
/**
"Plug" or insert this action into a given widget.
This will
@@ -251,8 +251,8 @@ public class KAction extends QObject {
this is negative, the action is inserted at the end.
@short "Plug" or insert this action into a given widget.
*/
- public native int plug(QWidget widget, int index);
- public native int plug(QWidget widget);
+ public native int plug(TQWidget widget, int index);
+ public native int plug(TQWidget widget);
/**
"Unplug" or remove this action from a given widget.
This will typically be a menu or a toolbar. This is rarely
@@ -264,7 +264,7 @@ public class KAction extends QObject {
@param w Remove the action from this GUI element.
@short "Unplug" or remove this action from a given widget.
*/
- public native void unplug(QWidget w);
+ public native void unplug(TQWidget w);
/**
returns whether the action is plugged into any container widget or not.
@short returns whether the action is plugged into any container widget or not.
@@ -274,22 +274,22 @@ public class KAction extends QObject {
returns whether the action is plugged into the given container
@short returns whether the action is plugged into the given container
*/
- public native boolean isPlugged(QWidget container);
+ public native boolean isPlugged(TQWidget container);
/**
returns whether the action is plugged into the given container with the given, container specific, id (often
menu or toolbar id ) .
@short returns whether the action is plugged into the given container with the given, container specific, id (often menu or toolbar id ) .
*/
- public native boolean isPlugged(QWidget container, int id);
+ public native boolean isPlugged(TQWidget container, int id);
/**
returns whether the action is plugged into the given container with the given, container specific, representative
container widget item.
@short returns whether the action is plugged into the given container with the given, container specific, representative container widget item.
*/
- public native boolean isPlugged(QWidget container, QWidget _representative);
- public native QWidget container(int index);
+ public native boolean isPlugged(TQWidget container, TQWidget _representative);
+ public native TQWidget container(int index);
public native int itemId(int index);
- public native QWidget representative(int index);
+ public native TQWidget representative(int index);
public native int containerCount();
public native int kaccelCount();
public native boolean hasIcon();
@@ -334,19 +334,19 @@ public class KAction extends QObject {
*/
public native String toolTip();
/**
- Get the QIconSet from which the icons used to display this action will
+ Get the TQIconSet from which the icons used to display this action will
be chosen.
In KDE4 set group default to KIcon.Small while removing the other
iconSet() function.
- @short Get the QIconSet from which the icons used to display this action will be chosen.
+ @short Get the TQIconSet from which the icons used to display this action will be chosen.
*/
- public native QIconSet iconSet(int group, int size);
- public native QIconSet iconSet(int group);
+ public native TQIconSet iconSet(int group, int size);
+ public native TQIconSet iconSet(int group);
/**
Remove in KDE4
@short Remove in KDE4
*/
- public native QIconSet iconSet();
+ public native TQIconSet iconSet();
public native String icon();
public native KActionCollection parentCollection();
public native void unplugAll();
@@ -367,7 +367,7 @@ public class KAction extends QObject {
Sets the What's this text for the action. This text will be displayed when
a widget that has been created by plugging this action into a container
is clicked on in What's this mode.
- The What's this text can include QML markup as well as raw text.
+ The What's this text can include TQML markup as well as raw text.
@short Sets the What's this text for the action.
*/
public native void setWhatsThis(String text);
@@ -385,11 +385,11 @@ public class KAction extends QObject {
*/
public native void setToolTip(String arg1);
/**
- Sets the QIconSet from which the icons used to display this action will
+ Sets the TQIconSet from which the icons used to display this action will
be chosen.
- @short Sets the QIconSet from which the icons used to display this action will be chosen.
+ @short Sets the TQIconSet from which the icons used to display this action will be chosen.
*/
- public native void setIconSet(QIconSet iconSet);
+ public native void setIconSet(TQIconSet iconSet);
public native void setIcon(String icon);
/**
Enables or disables this action. All uses of this action (eg. in menus
@@ -419,15 +419,15 @@ public class KAction extends QObject {
*/
public static native int getToolButtonID();
protected native KToolBar toolBar(int index);
- protected native QPopupMenu popupMenu(int index);
+ protected native TQPopupMenu popupMenu(int index);
protected native void removeContainer(int index);
- protected native int findContainer(QWidget widget);
+ protected native int findContainer(TQWidget widget);
protected native int findContainer(int id);
- protected native void plugMainWindowAccel(QWidget w);
- protected native void addContainer(QWidget parent, int id);
- protected native void addContainer(QWidget parent, QWidget representative);
+ protected native void plugMainWindowAccel(TQWidget w);
+ protected native void addContainer(TQWidget parent, int id);
+ protected native void addContainer(TQWidget parent, TQWidget representative);
protected native void updateShortcut(int i);
- protected native void updateShortcut(QPopupMenu menu, int id);
+ protected native void updateShortcut(TQPopupMenu menu, int id);
protected native void updateGroup(int id);
protected native void updateText(int i);
protected native void updateEnabled(int i);