summaryrefslogtreecommitdiffstats
path: root/kdejava/koala/org/kde/koala/KInputDialog.java
diff options
context:
space:
mode:
Diffstat (limited to 'kdejava/koala/org/kde/koala/KInputDialog.java')
-rw-r--r--kdejava/koala/org/kde/koala/KInputDialog.java52
1 files changed, 26 insertions, 26 deletions
diff --git a/kdejava/koala/org/kde/koala/KInputDialog.java b/kdejava/koala/org/kde/koala/KInputDialog.java
index 2abcb298..4b6317a6 100644
--- a/kdejava/koala/org/kde/koala/KInputDialog.java
+++ b/kdejava/koala/org/kde/koala/KInputDialog.java
@@ -2,18 +2,18 @@
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 java.util.ArrayList;
-import org.kde.qt.QValidator;
-import org.kde.qt.QWidget;
+import org.kde.qt.TQValidator;
+import org.kde.qt.TQWidget;
/**
The KInputDialog class provides a simple dialog to get a single value
from the user. The value can be a string, a number (either an integer or
a float) or an item from a list. This class is designed to be source
- compatible with QInputDialog.
+ compatible with TQInputDialog.
Five static convenience functions are provided: getText(), getInteger().
getDouble(), getItem() and getItemList().
@author Nadeem Hasan <nhasan@kde.org>
@@ -23,7 +23,7 @@ import org.kde.qt.QWidget;
*/
public class KInputDialog extends KDialogBase {
protected KInputDialog(Class dummy){super((Class) null);}
- public native QMetaObject metaObject();
+ public native TQMetaObject metaObject();
public native String className();
/**
Static convenience function to get a string from the user.
@@ -34,8 +34,8 @@ public class KInputDialog extends KDialogBase {
If you provide a validator, the Ok button is disabled as long as
the validator doesn't return Acceptable. If there is no validator,
the Ok button is enabled whenever the line edit isn't empty. If you
- want to accept empty input, create a trivial QValidator that
- always returns acceptable, e.g. QRegExpValidator with a regexp
+ want to accept empty input, create a trivial TQValidator that
+ always returns acceptable, e.g. TQRegExpValidator with a regexp
of ".*".
@param caption Caption of the dialog
@param label Text of the label for the line edit
@@ -43,31 +43,31 @@ public class KInputDialog extends KDialogBase {
@param ok This boolean would be set to true if user pressed Ok
@param parent Parent of the dialog widget
@param name Name of the dialog widget
- @param validator A {@link QValidator} to be associated with the line edit
+ @param validator A {@link TQValidator} to be associated with the line edit
@param mask Mask associated with the line edit. See the
- documentation for {@link QLineEdit} about masks.
+ documentation for {@link TQLineEdit} about masks.
@return String user entered if Ok was pressed, else a null string
@short Static convenience function to get a string from the user.
*/
- public static native String getText(String caption, String label, String value, boolean[] ok, QWidget parent, String name, QValidator validator, String mask);
- public static native String getText(String caption, String label, String value, boolean[] ok, QWidget parent, String name, QValidator validator);
- public static native String getText(String caption, String label, String value, boolean[] ok, QWidget parent, String name);
- public static native String getText(String caption, String label, String value, boolean[] ok, QWidget parent);
+ public static native String getText(String caption, String label, String value, boolean[] ok, TQWidget parent, String name, TQValidator validator, String mask);
+ public static native String getText(String caption, String label, String value, boolean[] ok, TQWidget parent, String name, TQValidator validator);
+ public static native String getText(String caption, String label, String value, boolean[] ok, TQWidget parent, String name);
+ public static native String getText(String caption, String label, String value, boolean[] ok, TQWidget parent);
public static native String getText(String caption, String label, String value, boolean[] ok);
public static native String getText(String caption, String label, String value);
public static native String getText(String caption, String label);
/**
Same as {@link #getText} except it provides an extra parameter to specify
- a QWhatsThis text for the input widget.
+ a TQWhatsThis text for the input widget.
### KDE4: Merge with getText.
- @short Same as @ref getText except it provides an extra parameter to specify a QWhatsThis text for the input widget.
+ @short Same as @ref getText except it provides an extra parameter to specify a TQWhatsThis text for the input widget.
*/
- public static native String text(String caption, String label, String value, boolean[] ok, QWidget parent, String name, QValidator validator, String mask, String whatsThis);
- public static native String text(String caption, String label, String value, boolean[] ok, QWidget parent, String name, QValidator validator, String mask);
- public static native String text(String caption, String label, String value, boolean[] ok, QWidget parent, String name, QValidator validator);
- public static native String text(String caption, String label, String value, boolean[] ok, QWidget parent, String name);
- public static native String text(String caption, String label, String value, boolean[] ok, QWidget parent);
+ public static native String text(String caption, String label, String value, boolean[] ok, TQWidget parent, String name, TQValidator validator, String mask, String whatsThis);
+ public static native String text(String caption, String label, String value, boolean[] ok, TQWidget parent, String name, TQValidator validator, String mask);
+ public static native String text(String caption, String label, String value, boolean[] ok, TQWidget parent, String name, TQValidator validator);
+ public static native String text(String caption, String label, String value, boolean[] ok, TQWidget parent, String name);
+ public static native String text(String caption, String label, String value, boolean[] ok, TQWidget parent);
public static native String text(String caption, String label, String value, boolean[] ok);
public static native String text(String caption, String label, String value);
public static native String text(String caption, String label);
@@ -87,8 +87,8 @@ public class KInputDialog extends KDialogBase {
@short Static convenience function to get a multiline string from the user.
*/
- public static native String getMultiLineText(String caption, String label, String value, boolean[] ok, QWidget parent, String name);
- public static native String getMultiLineText(String caption, String label, String value, boolean[] ok, QWidget parent);
+ public static native String getMultiLineText(String caption, String label, String value, boolean[] ok, TQWidget parent, String name);
+ public static native String getMultiLineText(String caption, String label, String value, boolean[] ok, TQWidget parent);
public static native String getMultiLineText(String caption, String label, String value, boolean[] ok);
public static native String getMultiLineText(String caption, String label, String value);
public static native String getMultiLineText(String caption, String label);
@@ -112,8 +112,8 @@ public class KInputDialog extends KDialogBase {
@short Static convenience function to let the user select an item from a list.
*/
- public static native String getItem(String caption, String label, String[] list, int current, boolean editable, boolean[] ok, QWidget parent, String name);
- public static native String getItem(String caption, String label, String[] list, int current, boolean editable, boolean[] ok, QWidget parent);
+ public static native String getItem(String caption, String label, String[] list, int current, boolean editable, boolean[] ok, TQWidget parent, String name);
+ public static native String getItem(String caption, String label, String[] list, int current, boolean editable, boolean[] ok, TQWidget parent);
public static native String getItem(String caption, String label, String[] list, int current, boolean editable, boolean[] ok);
public static native String getItem(String caption, String label, String[] list, int current, boolean editable);
public static native String getItem(String caption, String label, String[] list, int current);
@@ -138,8 +138,8 @@ public class KInputDialog extends KDialogBase {
@short Static convenience function to let the user select one or more items from a listbox.
*/
- public static native ArrayList getItemList(String caption, String label, String[] list, String[] select, boolean multiple, boolean[] ok, QWidget parent, String name);
- public static native ArrayList getItemList(String caption, String label, String[] list, String[] select, boolean multiple, boolean[] ok, QWidget parent);
+ public static native ArrayList getItemList(String caption, String label, String[] list, String[] select, boolean multiple, boolean[] ok, TQWidget parent, String name);
+ public static native ArrayList getItemList(String caption, String label, String[] list, String[] select, boolean multiple, boolean[] ok, TQWidget parent);
public static native ArrayList getItemList(String caption, String label, String[] list, String[] select, boolean multiple, boolean[] ok);
public static native ArrayList getItemList(String caption, String label, String[] list, String[] select, boolean multiple);
public static native ArrayList getItemList(String caption, String label, String[] list, String[] select);