//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 org.kde.qt.TQImage;
import org.kde.qt.TQWidget;
/**
This is a base class for scanning dialogs. You can derive from this class
and implement your own dialog. An implementation is available in
tdegraphics/libkscan.
Application developers that wish to add scanning support to their program
can use the static method KScanDialog
.getScanDialog() to get an instance
of the user's preferred scanning dialog.
Typical usage looks like this (e.g. in a slotShowScanDialog() method):
if ( !m_scanDialog ) { m_scanDialog = KScanDialog.getScanDialog( this, "scandialog" ); if ( !m_scanDialog ) // no scanning support installed? return; connect( m_scanDialog, SIGNAL("finalImage( TQImage, int )"), SLOT("slotScanned( TQImage, int )")); } if ( m_scanDialog.setup() ) // only if scanner configured/available m_scanDialog.show();This will create and show a non-modal scanning dialog. Connect to more signals if you like. If you implement an own scan-dialog, you also have to implement a KScanDialogFactory. See {@link KScanDialogSignals} for signals emitted by KScanDialog @author Carsten Pfeiffer
parent
widget, if you like. If you
don't you have to 'delete' the returned pointer yourself.
@param parent the TQWidget's parent, or 0
@param name the name of the TQObject, can be 0
@param modal if true the dialog is model
@return the KScanDialog, or 0 if the function failed
@short Creates the user's preferred scanning dialog and returns it, or 0L if no scan-support is available.
*/
public static native KScanDialog getScanDialog(TQWidget parent, String name, boolean modal);
public static native KScanDialog getScanDialog(TQWidget parent, String name);
public static native KScanDialog getScanDialog(TQWidget parent);
public static native KScanDialog getScanDialog();
/**
Constructs the scan 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 TQWidget's parent, or 0
@param name the name of the TQObject, can be 0
@param modal if true the dialog is model
@short Constructs the scan dialog.
@see KDialogBase
*/
public KScanDialog(int dialogFace, int buttonMask, TQWidget parent, String name, boolean modal) {
super((Class) null);
newKScanDialog(dialogFace,buttonMask,parent,name,modal);
}
private native void newKScanDialog(int dialogFace, int buttonMask, TQWidget parent, String name, boolean modal);
public KScanDialog(int dialogFace, int buttonMask, TQWidget parent, String name) {
super((Class) null);
newKScanDialog(dialogFace,buttonMask,parent,name);
}
private native void newKScanDialog(int dialogFace, int buttonMask, TQWidget parent, String name);
public KScanDialog(int dialogFace, int buttonMask, TQWidget parent) {
super((Class) null);
newKScanDialog(dialogFace,buttonMask,parent);
}
private native void newKScanDialog(int dialogFace, int buttonMask, TQWidget parent);
public KScanDialog(int dialogFace, int buttonMask) {
super((Class) null);
newKScanDialog(dialogFace,buttonMask);
}
private native void newKScanDialog(int dialogFace, int buttonMask);
public KScanDialog(int dialogFace) {
super((Class) null);
newKScanDialog(dialogFace);
}
private native void newKScanDialog(int dialogFace);
public KScanDialog() {
super((Class) null);
newKScanDialog();
}
private native void newKScanDialog();
/**
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 preview and 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 #finalImage
@see #preview
@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 #finalImage
@see #preview
@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();
}