1 /***************************************************************************
2                   ocrresedit.h  - ocr-result edit widget
3                              -------------------
4     begin                : Fri 12 Feb 2003
5     copyright            : (C) 2003 by Klaas Freitag
6     email                : freitag@suse.de
7  ***************************************************************************/
8 
9 /***************************************************************************
10  *                                                                         *
11  *  This file may be distributed and/or modified under the terms of the    *
12  *  GNU General Public License version 2 as published by the Free Software *
13  *  Foundation and appearing in the file COPYING included in the           *
14  *  packaging of this file.                                                *
15  *
16  *  As a special exception, permission is given to link this program       *
17  *  with any version of the KADMOS ocr/icr engine of reRecognition GmbH,   *
18  *  Kreuzlingen and distribute the resulting executable without            *
19  *  including the source code for KADMOS in the source distribution.       *
20  *
21  *  As a special exception, permission is given to link this program       *
22  *  with any edition of Qt, and distribute the resulting executable,       *
23  *  without including the source code for Qt in the source distribution.   *
24  *                                                                         *
25  ***************************************************************************/
26 
27 #ifndef OCRRESEDIT_H
28 #define OCRRESEDIT_H
29 
30 #include <ktextedit.h>
31 
32 class QPoint;
33 class QRect;
34 
35 class OcrResEdit : public KTextEdit
36 {
37     Q_OBJECT
38 
39 public:
40     explicit OcrResEdit(QWidget *parent);
41 
42 public slots:
43     void slotSelectWord(const QPoint &pos);
44 
45     void slotSaveText();
46     void slotSetReadOnly(bool isRO);
47 
48 signals:
49     void highlightWord(const QRect &r);
50     void scrollToWord(const QRect &r);
51 
52 private slots:
53     void slotUpdateHighlight();
54 };
55 
56 #endif                          // OCRRESEDIT_H
57