summaryrefslogtreecommitdiffstats
path: root/kdejava/koala/org/kde/koala/KReplaceDialog.java
blob: fd82bde39da44362112de14d2c1f43fb62fbcbd6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
//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 retquired. 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 retquired.
	*/
	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();
}