summaryrefslogtreecommitdiffstats
path: root/kdejava/koala/org/kde/koala/KReplaceDialog.java
diff options
context:
space:
mode:
Diffstat (limited to 'kdejava/koala/org/kde/koala/KReplaceDialog.java')
-rw-r--r--kdejava/koala/org/kde/koala/KReplaceDialog.java132
1 files changed, 132 insertions, 0 deletions
diff --git a/kdejava/koala/org/kde/koala/KReplaceDialog.java b/kdejava/koala/org/kde/koala/KReplaceDialog.java
new file mode 100644
index 00000000..96ae0c90
--- /dev/null
+++ b/kdejava/koala/org/kde/koala/KReplaceDialog.java
@@ -0,0 +1,132 @@
+//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 java.util.ArrayList;
+import org.kde.qt.QShowEvent;
+import org.kde.qt.QWidget;
+
+/**
+
+ <b></b>etail:
+ This widget inherits from KFindDialog and implements
+ the following additional functionalities: a replacement string
+ object and an area for a user-defined widget to extend the dialog.
+ <b></b>xample:
+ To use the basic replace dialog:
+ <pre>
+ </pre>
+ To use your own extensions:
+ <pre>
+ </pre>
+ @author S.R.Haque <srhaque@iee.org>
+
+ @short A generic "replace" dialog.
+
+*/
+public class KReplaceDialog extends KFindDialog {
+ protected KReplaceDialog(Class dummy){super((Class) null);}
+ public static final int PromptOnReplace = 256;
+ public static final int BackReference = 512;
+
+ public native QMetaObject metaObject();
+ public native String className();
+ /**
+ Construct a replace dialog.read-only or rather select-only combo box with a
+ parent object and a name.
+ @param parent The parent object of this widget
+ @param name The name of this widget
+ @param options A bitfield of the Options to be enabled.
+ @param findStrings A String[] to insert in the combo box of text to find
+ @param replaceStrings A String[] to insert in the combo box of text to
+ replace with
+ @param hasSelection Whether a selection exists
+ @short Construct a replace dialog.
+ */
+ public KReplaceDialog(QWidget parent, String name, long options, String[] findStrings, String[] replaceStrings, boolean hasSelection) {
+ super((Class) null);
+ newKReplaceDialog(parent,name,options,findStrings,replaceStrings,hasSelection);
+ }
+ private native void newKReplaceDialog(QWidget parent, String name, long options, String[] findStrings, String[] replaceStrings, boolean hasSelection);
+ public KReplaceDialog(QWidget parent, String name, long options, String[] findStrings, String[] replaceStrings) {
+ super((Class) null);
+ newKReplaceDialog(parent,name,options,findStrings,replaceStrings);
+ }
+ private native void newKReplaceDialog(QWidget parent, String name, long options, String[] findStrings, String[] replaceStrings);
+ public KReplaceDialog(QWidget parent, String name, long options, String[] findStrings) {
+ super((Class) null);
+ newKReplaceDialog(parent,name,options,findStrings);
+ }
+ private native void newKReplaceDialog(QWidget parent, String name, long options, String[] findStrings);
+ public KReplaceDialog(QWidget parent, String name, long options) {
+ super((Class) null);
+ newKReplaceDialog(parent,name,options);
+ }
+ private native void newKReplaceDialog(QWidget parent, String name, long options);
+ public KReplaceDialog(QWidget parent, String name) {
+ super((Class) null);
+ newKReplaceDialog(parent,name);
+ }
+ private native void newKReplaceDialog(QWidget parent, String name);
+ public KReplaceDialog(QWidget parent) {
+ super((Class) null);
+ newKReplaceDialog(parent);
+ }
+ private native void newKReplaceDialog(QWidget parent);
+ public KReplaceDialog() {
+ super((Class) null);
+ newKReplaceDialog();
+ }
+ private native void newKReplaceDialog();
+ /**
+ Provide the list of <code>strings</code> to be displayed as the history
+ of replacement strings. <code>strings</code> might get truncated if it is
+ too long.
+ @param history The replacement history.
+ @short Provide the list of <code>strings</code> to be displayed as the history of replacement strings.
+ @see #replacementHistory
+ */
+ public native void setReplacementHistory(String[] history);
+ /**
+ Returns the list of history items.
+ @short Returns the list of history items.
+ @see #setReplacementHistory
+ */
+ public native ArrayList replacementHistory();
+ /**
+ Set the options which are enabled.
+ @param options The setting of the Options.
+ @short Set the options which are enabled.
+ */
+ public native void setOptions(long options);
+ /**
+ Returns the state of the options. Disabled options may be returned in
+ an indeterminate state.
+ @short Returns the state of the options.
+ @see #setOptions
+ */
+ public native long options();
+ /**
+ Returns the replacement string.
+ @short Returns the replacement string.
+ */
+ public native String replacement();
+ /**
+ Returns an empty widget which the user may fill with additional UI
+ elements as required. The widget occupies the width of the dialog,
+ and is positioned immediately the regular expression support widgets
+ for the replacement string.
+ @short Returns an empty widget which the user may fill with additional UI elements as required.
+ */
+ public native QWidget replaceExtension();
+ protected native void slotOk();
+ public native void showEvent(QShowEvent arg1);
+ /** 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();
+}