summaryrefslogtreecommitdiffstats
path: root/kdejava/koala/org/kde/koala/KOCRDialog.java
blob: 2f645feaf796dfd77c218525299313216c38764c (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
//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 org.kde.qt.QWidget;

/**

 Base class for OCR Dialogs.
  See {@link KOCRDialogSignals} for signals emitted by KOCRDialog
		@short    Base class for OCR Dialogs.

*/
public class KOCRDialog extends KDialogBase  {
	protected KOCRDialog(Class dummy){super((Class) null);}
	public native QMetaObject metaObject();
	public native String className();
	/**	
		 Creates the user's preferred OCR dialog and returns it,
		 or null if no OCR-support
		 is available. Pass a suitable <code>parent</code> widget, if you like. If you
		 don't you have to 'delete' the returned pointer yourself.
			@param parent the QWidget's parent, or 0
			@param name the name of the QObject, can be 0
			@param modal if true the dialog is model
				@return the KOCRDialog, or 0 if the function failed
     
		@short    Creates the user's preferred OCR dialog and returns it,  or 0L if no OCR-support  is available.
	*/
	public static native KOCRDialog getOCRDialog(QWidget parent, String name, boolean modal);
	public static native KOCRDialog getOCRDialog(QWidget parent, String name);
	public static native KOCRDialog getOCRDialog(QWidget parent);
	public static native KOCRDialog getOCRDialog();
	/**	
		 Constructs the OCR dialog. If you implement an own dialog, you can
		 customize it with the usual KDialogBase flags.
			@param dialogFace the KDialogBase.DialogType
			@param buttonMask a ORed mask of all buttons (see
		 KDialogBase.ButtonCode)
			@param parent the QWidget's parent, or 0
			@param name the name of the QObject, can be 0
			@param modal if true the dialog is model
		     		@short    Constructs the OCR dialog.
	*/
	public KOCRDialog(int dialogFace, int buttonMask, QWidget parent, String name, boolean modal) {
		super((Class) null);
		newKOCRDialog(dialogFace,buttonMask,parent,name,modal);
	}
	private native void newKOCRDialog(int dialogFace, int buttonMask, QWidget parent, String name, boolean modal);
	public KOCRDialog(int dialogFace, int buttonMask, QWidget parent, String name) {
		super((Class) null);
		newKOCRDialog(dialogFace,buttonMask,parent,name);
	}
	private native void newKOCRDialog(int dialogFace, int buttonMask, QWidget parent, String name);
	public KOCRDialog(int dialogFace, int buttonMask, QWidget parent) {
		super((Class) null);
		newKOCRDialog(dialogFace,buttonMask,parent);
	}
	private native void newKOCRDialog(int dialogFace, int buttonMask, QWidget parent);
	public KOCRDialog(int dialogFace, int buttonMask) {
		super((Class) null);
		newKOCRDialog(dialogFace,buttonMask);
	}
	private native void newKOCRDialog(int dialogFace, int buttonMask);
	public KOCRDialog(int dialogFace) {
		super((Class) null);
		newKOCRDialog(dialogFace);
	}
	private native void newKOCRDialog(int dialogFace);
	public KOCRDialog() {
		super((Class) null);
		newKOCRDialog();
	}
	private native void newKOCRDialog();
	/**	
		 Returns the current id for an image. You can use that in your subclass
		 for the signals. The id is used in the signals to let people know
		 which text-recognition belongs to which scan.
				@return the current id for the image

		@short    Returns the current id for an image.
		@see #nextId
		@see #textRecognized
	*/
	protected native int id();
	/**	
		 Returns the id for the next image. You can use that in your subclass
		 for the signals.
				@return the id for the next image

		@short    Returns the id for the next image.
		@see #id
		@see #textRecognized
	*/
	protected native int nextId();
	/** 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();
}