summaryrefslogtreecommitdiffstats
path: root/kdejava/koala/org/kde/koala/KComboBox.java
diff options
context:
space:
mode:
Diffstat (limited to 'kdejava/koala/org/kde/koala/KComboBox.java')
-rw-r--r--kdejava/koala/org/kde/koala/KComboBox.java72
1 files changed, 36 insertions, 36 deletions
diff --git a/kdejava/koala/org/kde/koala/KComboBox.java b/kdejava/koala/org/kde/koala/KComboBox.java
index 4f4e150a..01a76b62 100644
--- a/kdejava/koala/org/kde/koala/KComboBox.java
+++ b/kdejava/koala/org/kde/koala/KComboBox.java
@@ -2,22 +2,22 @@
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.QPixmap;
-import org.kde.qt.QLineEdit;
-import org.kde.qt.QEvent;
-import org.kde.qt.QWidget;
-import org.kde.qt.QWheelEvent;
-import org.kde.qt.QComboBox;
+import org.kde.qt.TQObject;
+import org.kde.qt.TQPopupMenu;
+import org.kde.qt.TQPixmap;
+import org.kde.qt.TQLineEdit;
+import org.kde.qt.TQEvent;
+import org.kde.qt.TQWidget;
+import org.kde.qt.TQWheelEvent;
+import org.kde.qt.TQComboBox;
/**
A combined button, line-edit and a popup list widget.
<li><b>Detail </b></li>
- This widget inherits from QComboBox and implements the following
+ This widget inherits from TQComboBox and implements the following
additional functionalities: a completion object that provides both automatic
and manual text completion as well as text rotation features, configurable
key-bindings to activate these features, and a popup-menu item that can be
@@ -40,7 +40,7 @@ import org.kde.qt.QComboBox;
parameter in the <code>setCompletionObject</code> call to false.
Beware: The completion object can be deleted on you, especially if a call
such as setEditable(false) is made. Store the pointer at your own risk,
- and consider using QGuardedPtr<KCompletion>.
+ and consider using TQGuardedPtr<KCompletion>.
The default key-bindings for completion and rotation is determined from the
global settings in KStdAccel. These values, however, can be overridden
locally by invoking KCompletionBase.setKeyBinding(). The values can
@@ -63,7 +63,7 @@ import org.kde.qt.QComboBox;
</pre>
A read-only KComboBox will have the same background color as a
disabled KComboBox, but its foreground color will be the one used for
- the read-write mode. This differs from QComboBox's implementation
+ the read-write mode. This differs from TQComboBox's implementation
and is done to give visual distinction between the three different modes:
disabled, read-only, and read-write.
<li><b>Usage </b></li>
@@ -103,9 +103,9 @@ import org.kde.qt.QComboBox;
@short An enhanced combo box.
*/
-public class KComboBox extends QComboBox implements KCompletionBaseInterface {
+public class KComboBox extends TQComboBox implements KCompletionBaseInterface {
protected KComboBox(Class dummy){super((Class) null);}
- public native QMetaObject metaObject();
+ public native TQMetaObject metaObject();
public native String className();
/**
Constructs a read-only or rather select-only combo box with a
@@ -114,16 +114,16 @@ public class KComboBox extends QComboBox implements KCompletionBaseInterface {
@param name The name of this widget
@short Constructs a read-only or rather select-only combo box with a parent object and a name.
*/
- public KComboBox(QWidget parent, String name) {
+ public KComboBox(TQWidget parent, String name) {
super((Class) null);
newKComboBox(parent,name);
}
- private native void newKComboBox(QWidget parent, String name);
- public KComboBox(QWidget parent) {
+ private native void newKComboBox(TQWidget parent, String name);
+ public KComboBox(TQWidget parent) {
super((Class) null);
newKComboBox(parent);
}
- private native void newKComboBox(QWidget parent);
+ private native void newKComboBox(TQWidget parent);
public KComboBox() {
super((Class) null);
newKComboBox();
@@ -138,16 +138,16 @@ public class KComboBox extends QComboBox implements KCompletionBaseInterface {
@param name The name of this widget.
@short Constructs a "read-write" or "read-only" combo box depending on the value of the first argument( <code>rw</code> ) with a parent, a name.
*/
- public KComboBox(boolean rw, QWidget parent, String name) {
+ public KComboBox(boolean rw, TQWidget parent, String name) {
super((Class) null);
newKComboBox(rw,parent,name);
}
- private native void newKComboBox(boolean rw, QWidget parent, String name);
- public KComboBox(boolean rw, QWidget parent) {
+ private native void newKComboBox(boolean rw, TQWidget parent, String name);
+ public KComboBox(boolean rw, TQWidget parent) {
super((Class) null);
newKComboBox(rw,parent);
}
- private native void newKComboBox(boolean rw, QWidget parent);
+ private native void newKComboBox(boolean rw, TQWidget parent);
public KComboBox(boolean rw) {
super((Class) null);
newKComboBox(rw);
@@ -175,8 +175,8 @@ public class KComboBox extends QComboBox implements KCompletionBaseInterface {
for displaying.
@short Inserts <code>url</code> with the pixmap &p pixmap at position <code>index</code> into the combobox.
*/
- public native void insertURL(QPixmap pixmap, KURL url, int index);
- public native void insertURL(QPixmap pixmap, KURL url);
+ public native void insertURL(TQPixmap pixmap, KURL url, int index);
+ public native void insertURL(TQPixmap pixmap, KURL url);
/**
Replaces the item at position <code>index</code> with <code>url.</code>
KURL.prettyURL() is used so that the url is properly decoded
@@ -190,7 +190,7 @@ public class KComboBox extends QComboBox implements KCompletionBaseInterface {
for displaying.
@short Replaces the item at position <code>index</code> with <code>url</code> and pixmap <code>pixmap.</code>
*/
- public native void changeURL(QPixmap pixmap, KURL url, int index);
+ public native void changeURL(TQPixmap pixmap, KURL url, int index);
/**
Returns the current cursor position.
This method always returns a -1 if the combo-box is <b>not</b>
@@ -201,23 +201,23 @@ public class KComboBox extends QComboBox implements KCompletionBaseInterface {
*/
public native int cursorPosition();
/**
- Re-implemented from QComboBox.
+ Re-implemented from TQComboBox.
If <code>true</code>, the completion mode will be set to automatic.
Otherwise, it is defaulted to the global setting. This
method has been replaced by the more comprehensive
setCompletionMode().
@param autocomplete Flag to enable/disable automatic completion mode.
- @short Re-implemented from QComboBox.
+ @short Re-implemented from TQComboBox.
*/
public native void setAutoCompletion(boolean autocomplete);
/**
- Re-implemented from QComboBox.
+ Re-implemented from TQComboBox.
Returns <code>true</code> if the current completion mode is set
to automatic. See its more comprehensive replacement
completionMode().
@return <code>true</code> when completion mode is automatic.
- @short Re-implemented from QComboBox.
+ @short Re-implemented from TQComboBox.
*/
public native boolean autoCompletion();
/**
@@ -243,7 +243,7 @@ public class KComboBox extends QComboBox implements KCompletionBaseInterface {
/**
Enables/Disables handling of URL drops. If enabled and the user
drops an URL, the decoded URL will be inserted. Otherwise the default
- behavior of QComboBox is used, which inserts the encoded URL.
+ behavior of TQComboBox is used, which inserts the encoded URL.
@param enable If <code>true</code>, insert decoded URLs
@short Enables/Disables handling of URL drops.
*/
@@ -287,7 +287,7 @@ public class KComboBox extends QComboBox implements KCompletionBaseInterface {
Re-implemented for internal reasons. API not affected.
@short Re-implemented for internal reasons.
*/
- public native boolean eventFilter(QObject arg1, QEvent arg2);
+ public native boolean eventFilter(TQObject arg1, TQEvent arg2);
/**
@param create Set this to false if you don't want the box to be created
i.e. to test if it is available.
@@ -307,7 +307,7 @@ public class KComboBox extends QComboBox implements KCompletionBaseInterface {
simply be ignored.
@short Re-implemented for internal reasons.
*/
- public native void setLineEdit(QLineEdit arg1);
+ public native void setLineEdit(TQLineEdit arg1);
/**
Iterates through all possible matches of the completed text
or the history list.
@@ -318,7 +318,7 @@ public class KComboBox extends QComboBox implements KCompletionBaseInterface {
iteration will not work if there are no previous matches, i.e.
no text has been completed and the nix shell history list
rotation is only available if the insertion policy for this
- widget is set either <code>QComobBox</code>.AtTop or <code>QComboBox</code>.AtBottom.
+ widget is set either <code>TQComobBox</code>.AtTop or <code>TQComboBox</code>.AtBottom.
For other insertion modes whatever has been typed by the user
when the rotation event was initiated will be lost.
@param type The key-binding invoked.
@@ -348,9 +348,9 @@ public class KComboBox extends QComboBox implements KCompletionBaseInterface {
public native void setCurrentItem(String item, boolean insert);
public native void setCurrentItem(String item);
/**
- Simply calls QComboBox' implementation. Only here to not become
+ Simply calls TQComboBox' implementation. Only here to not become
shadowed.
- @short Simply calls QComboBox' implementation.
+ @short Simply calls TQComboBox' implementation.
*/
public native void setCurrentItem(int index);
protected native void setCompletedText(String arg1, boolean arg2);
@@ -362,7 +362,7 @@ public class KComboBox extends QComboBox implements KCompletionBaseInterface {
protected native void create(long arg1, boolean initializeWindow);
protected native void create(long arg1);
protected native void create();
- protected native void wheelEvent(QWheelEvent ev);
+ protected native void wheelEvent(TQWheelEvent ev);
/**
Completes text according to the completion mode.
Note: this method is <code>not</code> invoked if the completion mode is