You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
133 lines
4.9 KiB
133 lines
4.9 KiB
//Auto-generated by kalyptus. DO NOT EDIT.
|
|
package org.kde.koala;
|
|
|
|
import org.kde.qt.Qt;
|
|
import org.kde.qt.TQMetaObject;
|
|
import org.kde.qt.QtSupport;
|
|
import java.util.ArrayList;
|
|
import org.kde.qt.TQShowEvent;
|
|
import org.kde.qt.TQWidget;
|
|
|
|
/**
|
|
|
|
<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 TQMetaObject 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(TQWidget 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(TQWidget parent, String name, long options, String[] findStrings, String[] replaceStrings, boolean hasSelection);
|
|
public KReplaceDialog(TQWidget parent, String name, long options, String[] findStrings, String[] replaceStrings) {
|
|
super((Class) null);
|
|
newKReplaceDialog(parent,name,options,findStrings,replaceStrings);
|
|
}
|
|
private native void newKReplaceDialog(TQWidget parent, String name, long options, String[] findStrings, String[] replaceStrings);
|
|
public KReplaceDialog(TQWidget parent, String name, long options, String[] findStrings) {
|
|
super((Class) null);
|
|
newKReplaceDialog(parent,name,options,findStrings);
|
|
}
|
|
private native void newKReplaceDialog(TQWidget parent, String name, long options, String[] findStrings);
|
|
public KReplaceDialog(TQWidget parent, String name, long options) {
|
|
super((Class) null);
|
|
newKReplaceDialog(parent,name,options);
|
|
}
|
|
private native void newKReplaceDialog(TQWidget parent, String name, long options);
|
|
public KReplaceDialog(TQWidget parent, String name) {
|
|
super((Class) null);
|
|
newKReplaceDialog(parent,name);
|
|
}
|
|
private native void newKReplaceDialog(TQWidget parent, String name);
|
|
public KReplaceDialog(TQWidget parent) {
|
|
super((Class) null);
|
|
newKReplaceDialog(parent);
|
|
}
|
|
private native void newKReplaceDialog(TQWidget 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 TQWidget replaceExtension();
|
|
protected native void slotOk();
|
|
public native void showEvent(TQShowEvent 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();
|
|
}
|