23 #include <kdialogbase.h>
24 #include <kinstance.h>
25 #include <klibloader.h>
78 static KScanDialog * getScanDialog( TQWidget *parent=0L,
79 const char *name=0,
bool modal=
false );
108 KScanDialog(
int dialogFace=Tabbed,
int buttonMask = Close|Help,
109 TQWidget *parent=0L,
const char *name=0,
bool modal=
false );
122 int id()
const {
return m_currentId; }
170 virtual void virtual_hook(
int id,
void* data );
172 class KScanDialogPrivate;
173 KScanDialogPrivate *d;
195 bool modal=
false ) = 0;
205 virtual TQObject* createObject( TQObject* parent = 0,
const char* name = 0,
206 const char* classname = TQOBJECT_OBJECT_NAME_STRING,
207 const TQStringList &args = TQStringList() );
214 void setName(
const TQCString& instanceName ) {
216 m_instance =
new TDEInstance( instanceName );
223 TDEInstance *
instance()
const {
return m_instance; }
226 TDEInstance *m_instance;
228 virtual void virtual_hook(
int id,
void* data );
230 class KScanDialogFactoryPrivate* d;
251 static KOCRDialog * getOCRDialog( TQWidget *parent=0L,
252 const char *name=0,
bool modal=
false );
267 KOCRDialog(
int dialogFace=Tabbed,
int buttonMask = Close|Help,
268 TQWidget *parent=0L,
const char *name=0,
bool modal=
false );
279 int id()
const {
return m_currentId; }
306 virtual void virtual_hook(
int id,
void* data );
308 class KOCRDialogPrivate;
309 KOCRDialogPrivate *d;
331 bool modal=
false ) = 0;
341 virtual TQObject* createObject( TQObject* parent = 0,
const char* name = 0,
342 const char* className = TQOBJECT_OBJECT_NAME_STRING,
343 const TQStringList &args = TQStringList() );
350 void setName(
const TQCString& instanceName ) {
352 m_instance =
new TDEInstance( instanceName );
359 TDEInstance *
instance()
const {
return m_instance; }
362 TDEInstance *m_instance;
364 virtual void virtual_hook(
int id,
void* data );
void finalImage(const TQImage &img, int id)
Informs you that an image has scanned.
TDEInstance * instance() const
Returns the instance.
void setName(const TQCString &instanceName)
Creates a new instance with the given name.
This is a base class for scanning dialogs.
int id() const
Returns the current id for an image.
virtual KScanDialog * createDialog(TQWidget *parent=0, const char *name=0, bool modal=false)=0
Your library should reimplement this method to return your KScanDialog derived dialog.
int nextId()
Returns the id for the next image.
int id() const
Returns the current id for an image.
void setName(const TQCString &instanceName)
Creates a new instance with the given name.
void textRecognized(const TQString &text, int id)
Informs you that the image with the id id has been run through text-recognition.
int nextId()
Returns the id for the next image.
virtual KOCRDialog * createDialog(TQWidget *parent=0, const char *name=0, bool modal=false)=0
Your library should reimplement this method to return your KOCRDialog derived dialog.
void preview(const TQImage &img, int id)
Informs you that an image has been previewed.
TDEInstance * instance() const
Returns the instance.
Base class for OCR Dialogs.
A factory for creating a KScanDialog.
void textRecognized(const TQString &text, int id)
Informs you that the image with the id id has been run through text-recognition.
A factory for creating a KOCRDialog.