summaryrefslogtreecommitdiffstats
path: root/kdejava/koala/org/kde/koala/KLineEdit.java
diff options
context:
space:
mode:
Diffstat (limited to 'kdejava/koala/org/kde/koala/KLineEdit.java')
-rw-r--r--kdejava/koala/org/kde/koala/KLineEdit.java108
1 files changed, 54 insertions, 54 deletions
diff --git a/kdejava/koala/org/kde/koala/KLineEdit.java b/kdejava/koala/org/kde/koala/KLineEdit.java
index 04136209..bacfdca2 100644
--- a/kdejava/koala/org/kde/koala/KLineEdit.java
+++ b/kdejava/koala/org/kde/koala/KLineEdit.java
@@ -2,25 +2,25 @@
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.QContextMenuEvent;
-import org.kde.qt.QFocusEvent;
-import org.kde.qt.QMouseEvent;
-import org.kde.qt.QKeyEvent;
-import org.kde.qt.QDropEvent;
-import org.kde.qt.QEvent;
-import org.kde.qt.QWidget;
-import org.kde.qt.QResizeEvent;
-import org.kde.qt.QLineEdit;
+import org.kde.qt.TQObject;
+import org.kde.qt.TQPopupMenu;
+import org.kde.qt.TQContextMenuEvent;
+import org.kde.qt.TQFocusEvent;
+import org.kde.qt.TQMouseEvent;
+import org.kde.qt.TQKeyEvent;
+import org.kde.qt.TQDropEvent;
+import org.kde.qt.TQEvent;
+import org.kde.qt.TQWidget;
+import org.kde.qt.TQResizeEvent;
+import org.kde.qt.TQLineEdit;
/**
- An enhanced QLineEdit widget for inputting text.
+ An enhanced TQLineEdit widget for inputting text.
<li><b>Detail </b></li>
- This widget inherits from QLineEdit and implements the following
+ This widget inherits from TQLineEdit and implements the following
additional functionalities: a completion object that provides both
automatic and manual text completion as well as multiple match iteration
features, configurable key-bindings to activate these features and a
@@ -33,7 +33,7 @@ import org.kde.qt.QLineEdit;
user in filling out the remaining text. The text rotation signal is
intended to be used to iterate through the list of all possible matches
whenever there is more than one match for the entered text. The
- <code>returnPressed</code>( String ) signals are the same as QLineEdit's
+ <code>returnPressed</code>( String ) signals are the same as TQLineEdit's
except it provides the current text in the widget as its argument whenever
appropriate.
This widget by default creates a completion object when you invoke
@@ -52,14 +52,14 @@ import org.kde.qt.QLineEdit;
calling useGlobalSettings(). An alternate method would be to default
individual key-bindings by using setKeyBinding() with the default
second argument.
- If <code>EchoMode</code> for this widget is set to something other than <code>QLineEdit</code>.Normal,
+ If <code>EchoMode</code> for this widget is set to something other than <code>TQLineEdit</code>.Normal,
the completion mode will always be defaulted to KGlobalSettings.CompletionNone.
This is done purposefully to guard against protected entries such as passwords being
- cached in KCompletion's list. Hence, if the <code>EchoMode</code> is not QLineEdit.Normal, the
+ cached in KCompletion's list. Hence, if the <code>EchoMode</code> is not TQLineEdit.Normal, the
completion mode is automatically disabled.
A read-only KLineEdit will have the same background color as a
disabled KLineEdit, but its foreground color will be the one used
- for the read-write mode. This differs from QLineEdit's implementation
+ for the read-write mode. This differs from TQLineEdit'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>
@@ -101,12 +101,12 @@ import org.kde.qt.QLineEdit;
See {@link KLineEditSignals} for signals emitted by KLineEdit
@author Dawit Alemayehu <adawit@kde.org>
- @short An enhanced QLineEdit widget for inputting text.
+ @short An enhanced TQLineEdit widget for inputting text.
*/
-public class KLineEdit extends QLineEdit implements KCompletionBaseInterface {
+public class KLineEdit extends TQLineEdit implements KCompletionBaseInterface {
protected KLineEdit(Class dummy){super((Class) null);}
- public native QMetaObject metaObject();
+ public native TQMetaObject metaObject();
public native String className();
/**
Constructs a KLineEdit object with a default text, a parent,
@@ -116,32 +116,32 @@ public class KLineEdit extends QLineEdit implements KCompletionBaseInterface {
@param name the name of this widget
@short Constructs a KLineEdit object with a default text, a parent, and a name.
*/
- public KLineEdit(String string, QWidget parent, String name) {
+ public KLineEdit(String string, TQWidget parent, String name) {
super((Class) null);
newKLineEdit(string,parent,name);
}
- private native void newKLineEdit(String string, QWidget parent, String name);
- public KLineEdit(String string, QWidget parent) {
+ private native void newKLineEdit(String string, TQWidget parent, String name);
+ public KLineEdit(String string, TQWidget parent) {
super((Class) null);
newKLineEdit(string,parent);
}
- private native void newKLineEdit(String string, QWidget parent);
+ private native void newKLineEdit(String string, TQWidget parent);
/**
Constructs a KLineEdit object with a parent and a name.
@param parent The parent object of this widget.
@param name The name of this widget.
@short Constructs a KLineEdit object with a parent and a name.
*/
- public KLineEdit(QWidget parent, String name) {
+ public KLineEdit(TQWidget parent, String name) {
super((Class) null);
newKLineEdit(parent,name);
}
- private native void newKLineEdit(QWidget parent, String name);
- public KLineEdit(QWidget parent) {
+ private native void newKLineEdit(TQWidget parent, String name);
+ public KLineEdit(TQWidget parent) {
super((Class) null);
newKLineEdit(parent);
}
- private native void newKLineEdit(QWidget parent);
+ private native void newKLineEdit(TQWidget parent);
public KLineEdit() {
super((Class) null);
newKLineEdit();
@@ -183,7 +183,7 @@ public class KLineEdit extends QLineEdit 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 QLineEdit is used, which inserts the encoded URL.
+ behavior of TQLineEdit is used, which inserts the encoded URL.
@param enable If <code>true</code>, insert decoded URLs
@short Enables/Disables handling of URL drops.
*/
@@ -215,7 +215,7 @@ public class KLineEdit extends QLineEdit 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.
@@ -241,11 +241,11 @@ public class KLineEdit extends QLineEdit implements KCompletionBaseInterface {
/**
Enable text squeezing whenever the supplied text is too long.
Only works for "read-only" mode.
- Note that once text squeezing is enabled, QLineEdit.text()
- and QLineEdit.displayText() return the squeezed text. If
+ Note that once text squeezing is enabled, TQLineEdit.text()
+ and TQLineEdit.displayText() return the squeezed text. If
you want the original text, use {@link #originalText}.
@short Enable text squeezing whenever the supplied text is too long.
- @see org.kde.qt.QLineEdit
+ @see org.kde.qt.TQLineEdit
*/
public native void setEnableSqueezedText(boolean enable);
/**
@@ -257,9 +257,9 @@ public class KLineEdit extends QLineEdit implements KCompletionBaseInterface {
/**
Returns the original text if text squeezing is enabled.
If the widget is not in "read-only" mode, this function
- returns the same thing as QLineEdit.text().
+ returns the same thing as TQLineEdit.text().
@short Returns the original text if text squeezing is enabled.
- @see org.kde.qt.QLineEdit
+ @see org.kde.qt.TQLineEdit
*/
public native String originalText();
/**
@@ -308,9 +308,9 @@ public class KLineEdit extends QLineEdit implements KCompletionBaseInterface {
*/
public native void setCompletedItems(String[] items, boolean autoSuggest);
/**
- Reimplemented to workaround a buggy QLineEdit.clear()
+ Reimplemented to workaround a buggy TQLineEdit.clear()
(changing the clipboard to the text we just had in the lineedit)
- @short Reimplemented to workaround a buggy QLineEdit.clear() (changing the clipboard to the text we just had in the lineedit)
+ @short Reimplemented to workaround a buggy TQLineEdit.clear() (changing the clipboard to the text we just had in the lineedit)
*/
public native void clear();
/**
@@ -326,46 +326,46 @@ public class KLineEdit extends QLineEdit implements KCompletionBaseInterface {
public native void setText(String arg1);
/**
Re-implemented for internal reasons. API not affected.
- See QLineEdit.resizeEvent().
+ See TQLineEdit.resizeEvent().
@short Re-implemented for internal reasons.
*/
- protected native void resizeEvent(QResizeEvent arg1);
+ protected native void resizeEvent(TQResizeEvent arg1);
/**
Re-implemented for internal reasons. API not affected.
- See QLineEdit.keyPressEvent().
+ See TQLineEdit.keyPressEvent().
@short Re-implemented for internal reasons.
*/
- protected native void keyPressEvent(QKeyEvent arg1);
+ protected native void keyPressEvent(TQKeyEvent arg1);
/**
Re-implemented for internal reasons. API not affected.
- See QLineEdit.mousePressEvent().
+ See TQLineEdit.mousePressEvent().
@short Re-implemented for internal reasons.
*/
- protected native void mousePressEvent(QMouseEvent arg1);
+ protected native void mousePressEvent(TQMouseEvent arg1);
/**
Re-implemented for internal reasons. API not affected.
- See QWidget.mouseDoubleClickEvent().
+ See TQWidget.mouseDoubleClickEvent().
@short Re-implemented for internal reasons.
*/
- protected native void mouseDoubleClickEvent(QMouseEvent arg1);
+ protected native void mouseDoubleClickEvent(TQMouseEvent arg1);
/**
Re-implemented for internal reasons. API not affected.
- See QLineEdit.contextMenuEvent().
+ See TQLineEdit.contextMenuEvent().
@short Re-implemented for internal reasons.
*/
- protected native void contextMenuEvent(QContextMenuEvent arg1);
+ protected native void contextMenuEvent(TQContextMenuEvent arg1);
/**
Re-implemented for internal reasons. API not affected.
- See QLineEdit.createPopupMenu().
+ See TQLineEdit.createPopupMenu().
@short Re-implemented for internal reasons.
*/
- protected native QPopupMenu createPopupMenu();
+ protected native TQPopupMenu createPopupMenu();
/**
Re-implemented to handle URI drops.
- See QLineEdit.dropEvent().
+ See TQLineEdit.dropEvent().
@short Re-implemented to handle URI drops.
*/
- protected native void dropEvent(QDropEvent arg1);
+ protected native void dropEvent(TQDropEvent arg1);
protected native void setCompletedText(String arg1, boolean arg2);
/**
Sets the widget in userSelection mode or in automatic completion
@@ -383,10 +383,10 @@ public class KLineEdit extends QLineEdit implements KCompletionBaseInterface {
protected native void create();
/**
Re-implemented for internal reasons. API not affected.
- See QLineEdit.focusInEvent().
+ See TQLineEdit.focusInEvent().
@short Re-implemented for internal reasons.
*/
- protected native void focusInEvent(QFocusEvent arg1);
+ protected native void focusInEvent(TQFocusEvent arg1);
/**
Whether in current state text should be auto-suggested
@short Whether in current state text should be auto-suggested