File indexing completed on 2024-04-14 14:35:57
0001 /*************************************************************************** 0002 ocrresedit.h - ocr-result edit widget 0003 ------------------- 0004 begin : Fri 12 Feb 2003 0005 copyright : (C) 2003 by Klaas Freitag 0006 email : freitag@suse.de 0007 ***************************************************************************/ 0008 0009 /*************************************************************************** 0010 * * 0011 * This file may be distributed and/or modified under the terms of the * 0012 * GNU General Public License version 2 as published by the Free Software * 0013 * Foundation and appearing in the file COPYING included in the * 0014 * packaging of this file. * 0015 * 0016 * As a special exception, permission is given to link this program * 0017 * with any version of the KADMOS ocr/icr engine of reRecognition GmbH, * 0018 * Kreuzlingen and distribute the resulting executable without * 0019 * including the source code for KADMOS in the source distribution. * 0020 * 0021 * As a special exception, permission is given to link this program * 0022 * with any edition of Qt, and distribute the resulting executable, * 0023 * without including the source code for Qt in the source distribution. * 0024 * * 0025 ***************************************************************************/ 0026 0027 #ifndef OCRRESEDIT_H 0028 #define OCRRESEDIT_H 0029 0030 #include <ktextedit.h> 0031 0032 class QPoint; 0033 class QRect; 0034 0035 class OcrResEdit : public KTextEdit 0036 { 0037 Q_OBJECT 0038 0039 public: 0040 explicit OcrResEdit(QWidget *parent); 0041 0042 public slots: 0043 void slotSelectWord(const QPoint &pos); 0044 0045 void slotSaveText(); 0046 void slotSetReadOnly(bool isRO); 0047 0048 signals: 0049 void highlightWord(const QRect &r); 0050 void scrollToWord(const QRect &r); 0051 0052 private slots: 0053 void slotUpdateHighlight(); 0054 }; 0055 0056 #endif // OCRRESEDIT_H