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",
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",
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 );
A factory for creating a KOCRDialog.
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.
TDEInstance * instance() const
Returns the instance.
void setName(const TQCString &instanceName)
Creates a new instance with the given name.
Base class for OCR Dialogs.
int id() const
Returns the current id for an image.
int nextId()
Returns the id for the next image.
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 KScanDialog.
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.
void setName(const TQCString &instanceName)
Creates a new instance with the given name.
TDEInstance * instance() const
Returns the instance.
This is a base class for scanning dialogs.
void finalImage(const TQImage &img, int id)
Informs you that an image has scanned.
int id() const
Returns the current id for an image.
void textRecognized(const TQString &text, int id)
Informs you that the image with the id id has been run through text-recognition.
void preview(const TQImage &img, int id)
Informs you that an image has been previewed.
int nextId()
Returns the id for the next image.