-
Notifications
You must be signed in to change notification settings - Fork 0
/
textEdit.h
60 lines (46 loc) · 1.03 KB
/
textEdit.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
//textEdit.h
#ifndef TEXTEDIT_H
#define TEXTEDIT_H
#include <qwidget.h>
#include <qevent.h>
#include <qlayout.h>
#include <qabstractlayout.h>
#include <qlabel.h>
#include <qstring.h>
#include <qmultilineedit.h>
#include <wchar.h>
#include <stdlib.h>
#include "recogArea.h"
class recogArea;
class MyMultiLineEdit : public QMultiLineEdit
{
Q_OBJECT
public:
MyMultiLineEdit( QWidget* parent, const char* name );
bool myHasMarkedText();
public slots:
void myEnd();
void myDel();
void setFound( wchar_t );
};
class textEdit : public QWidget
{
Q_OBJECT
public slots:
void setText( QString );
public:
textEdit( QWidget* parent = 0, const char* name = 0 );
~textEdit();
QMultiLineEdit* getMyMultiLineEdit();
recogArea* getRecogArea();
QSize sizeHint() const;
QSizePolicy sizePolicy() const;
private:
recogArea* entry;
QLabel* textLab;
MyMultiLineEdit* textbox;
QVBoxLayout* mainLay;
QSpacerItem* topShim;
QSpacerItem* bottomShim;
};
#endif //TEXTEDIT_H