org.kde.koala

Class KOCRDialog

public class KOCRDialog extends KDialogBase

Base class for OCR Dialogs. See KOCRDialogSignals for signals emitted by KOCRDialog

UNKNOWN: Base class for OCR Dialogs.

Constructor Summary
protected KOCRDialog(Class dummy)
KOCRDialog(int dialogFace, int buttonMask, QWidget parent, String name, boolean modal)
Constructs the OCR dialog.
KOCRDialog(int dialogFace, int buttonMask, QWidget parent, String name)
KOCRDialog(int dialogFace, int buttonMask, QWidget parent)
KOCRDialog(int dialogFace, int buttonMask)
KOCRDialog(int dialogFace)
KOCRDialog()
Method Summary
StringclassName()
voiddispose()
Delete the wrapped C++ instance ahead of finalize()
protected voidfinalize()
Deletes the wrapped C++ instance
static KOCRDialoggetOCRDialog(QWidget parent, String name, boolean modal)
Creates the user's preferred OCR dialog and returns it, or null if no OCR-support is available.
static KOCRDialoggetOCRDialog(QWidget parent, String name)
static KOCRDialoggetOCRDialog(QWidget parent)
static KOCRDialoggetOCRDialog()
protected intid()
Returns the current id for an image.
booleanisDisposed()
Has the wrapped C++ instance been deleted?
QMetaObjectmetaObject()
protected intnextId()
Returns the id for the next image.

Constructor Detail

KOCRDialog

protected KOCRDialog(Class dummy)

KOCRDialog

public KOCRDialog(int dialogFace, int buttonMask, QWidget parent, String name, boolean modal)
Constructs the OCR dialog. If you implement an own dialog, you can customize it with the usual KDialogBase flags.

Parameters: dialogFace the KDialogBase.DialogType buttonMask a ORed mask of all buttons (see KDialogBase.ButtonCode) parent the QWidget's parent, or 0 name the name of the QObject, can be 0 modal if true the dialog is model

UNKNOWN: Constructs the OCR dialog.

KOCRDialog

public KOCRDialog(int dialogFace, int buttonMask, QWidget parent, String name)

KOCRDialog

public KOCRDialog(int dialogFace, int buttonMask, QWidget parent)

KOCRDialog

public KOCRDialog(int dialogFace, int buttonMask)

KOCRDialog

public KOCRDialog(int dialogFace)

KOCRDialog

public KOCRDialog()

Method Detail

className

public String className()

dispose

public void dispose()
Delete the wrapped C++ instance ahead of finalize()

finalize

protected void finalize()
Deletes the wrapped C++ instance

getOCRDialog

public static KOCRDialog getOCRDialog(QWidget parent, String name, boolean modal)
Creates the user's preferred OCR dialog and returns it, or null if no OCR-support is available. Pass a suitable parent widget, if you like. If you don't you have to 'delete' the returned pointer yourself.

Parameters: parent the QWidget's parent, or 0 name the name of the QObject, can be 0 modal if true the dialog is model

Returns: the KOCRDialog, or 0 if the function failed

UNKNOWN: Creates the user's preferred OCR dialog and returns it, or 0L if no OCR-support is available.

getOCRDialog

public static KOCRDialog getOCRDialog(QWidget parent, String name)

getOCRDialog

public static KOCRDialog getOCRDialog(QWidget parent)

getOCRDialog

public static KOCRDialog getOCRDialog()

id

protected int id()
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.

Returns: the current id for the image

See Also: KOCRDialog KOCRDialog

UNKNOWN: Returns the current id for an image.

isDisposed

public boolean isDisposed()
Has the wrapped C++ instance been deleted?

metaObject

public QMetaObject metaObject()

nextId

protected int nextId()
Returns the id for the next image. You can use that in your subclass for the signals.

Returns: the id for the next image

See Also: KOCRDialog KOCRDialog

UNKNOWN: Returns the id for the next image.