-rw-r--r-- | core/apps/textedit/textedit.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/core/apps/textedit/textedit.cpp b/core/apps/textedit/textedit.cpp index c9178a5..086fdb6 100644 --- a/core/apps/textedit/textedit.cpp +++ b/core/apps/textedit/textedit.cpp | |||
@@ -10,52 +10,54 @@ | |||
10 | ** packaging of this file. | 10 | ** packaging of this file. |
11 | ** | 11 | ** |
12 | **********************************************************************/ | 12 | **********************************************************************/ |
13 | // changes added by L. J. Potter Sun 02-17-2002 21:31:31 | 13 | // changes added by L. J. Potter Sun 02-17-2002 21:31:31 |
14 | 14 | ||
15 | #include "textedit.h" | 15 | #include "textedit.h" |
16 | #include "filePermissions.h" | 16 | #include "filePermissions.h" |
17 | 17 | ||
18 | /* OPIE */ | 18 | /* OPIE */ |
19 | #include <opie2/odebug.h> | 19 | #include <opie2/odebug.h> |
20 | #include <opie2/ofileselector.h> | 20 | #include <opie2/ofileselector.h> |
21 | #include <opie2/ofiledialog.h> | 21 | #include <opie2/ofiledialog.h> |
22 | #include <opie2/ofontselector.h> | 22 | #include <opie2/ofontselector.h> |
23 | #include <qpe/resource.h> | 23 | #include <qpe/resource.h> |
24 | #include <qpe/config.h> | 24 | #include <qpe/config.h> |
25 | #include <qpe/qpeapplication.h> | 25 | #include <qpe/qpeapplication.h> |
26 | using namespace Opie::Core; | 26 | |
27 | using namespace Opie::Ui; | ||
28 | 27 | ||
29 | /* QT */ | 28 | /* QT */ |
30 | #include <qmenubar.h> | 29 | #include <qmenubar.h> |
31 | #include <qtoolbar.h> | 30 | #include <qtoolbar.h> |
32 | #include <qtextstream.h> | 31 | #include <qtextstream.h> |
33 | #include <qclipboard.h> | 32 | #include <qclipboard.h> |
34 | #include <qaction.h> | 33 | #include <qaction.h> |
35 | #include <qlineedit.h> | 34 | #include <qlineedit.h> |
36 | #include <qmessagebox.h> | 35 | #include <qmessagebox.h> |
37 | #include <qlayout.h> | 36 | #include <qlayout.h> |
38 | #include <qtimer.h> | 37 | #include <qtimer.h> |
39 | #include <qdir.h> | 38 | #include <qdir.h> |
40 | 39 | ||
41 | /* STD */ | 40 | /* STD */ |
42 | #include <unistd.h> | 41 | #include <unistd.h> |
43 | #include <sys/stat.h> | 42 | #include <sys/stat.h> |
44 | #include <stdlib.h> //getenv | 43 | #include <stdlib.h> //getenv |
45 | 44 | ||
45 | using namespace Opie::Core; | ||
46 | using namespace Opie::Ui; | ||
47 | |||
46 | #if QT_VERSION < 300 | 48 | #if QT_VERSION < 300 |
47 | class QpeEditor : public QMultiLineEdit | 49 | class QpeEditor : public QMultiLineEdit |
48 | { | 50 | { |
49 | 51 | ||
50 | public: | 52 | public: |
51 | QpeEditor( QWidget *parent, const char * name = 0 ) | 53 | QpeEditor( QWidget *parent, const char * name = 0 ) |
52 | : QMultiLineEdit( parent, name ) { | 54 | : QMultiLineEdit( parent, name ) { |
53 | clearTableFlags(); | 55 | clearTableFlags(); |
54 | setTableFlags( Tbl_vScrollBar | Tbl_autoHScrollBar ); | 56 | setTableFlags( Tbl_vScrollBar | Tbl_autoHScrollBar ); |
55 | } | 57 | } |
56 | 58 | ||
57 | void find( const QString &txt, bool caseSensitive, | 59 | void find( const QString &txt, bool caseSensitive, |
58 | bool backwards ); | 60 | bool backwards ); |
59 | protected: | 61 | protected: |
60 | bool markIt; | 62 | bool markIt; |
61 | int line1, line2, col1, col2; | 63 | int line1, line2, col1, col2; |