-rw-r--r-- | core/apps/textedit/textedit.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/core/apps/textedit/textedit.h b/core/apps/textedit/textedit.h index f7d1052..4e469cc 100644 --- a/core/apps/textedit/textedit.h +++ b/core/apps/textedit/textedit.h | |||
@@ -8,24 +8,25 @@ | |||
8 | ** Foundation and appearing in the file LICENSE.GPL included in the | 8 | ** Foundation and appearing in the file LICENSE.GPL included in the |
9 | ** packaging of this file. | 9 | ** packaging of this file. |
10 | ** | 10 | ** |
11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE | 11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE |
12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. | 12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. |
13 | ** | 13 | ** |
14 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. | 14 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. |
15 | ** | 15 | ** |
16 | ** Contact info@trolltech.com if any conditions of this licensing are | 16 | ** Contact info@trolltech.com if any conditions of this licensing are |
17 | ** not clear to you. | 17 | ** not clear to you. |
18 | ** | 18 | ** |
19 | **********************************************************************/ | 19 | **********************************************************************/ |
20 | // additions made by L.J. Potter Sun 02-17-2002 22:27:46 | ||
20 | 21 | ||
21 | #ifndef TEXTEDIT_H | 22 | #ifndef TEXTEDIT_H |
22 | #define TEXTEDIT_H | 23 | #define TEXTEDIT_H |
23 | 24 | ||
24 | #define QTEXTEDIT_OPEN_API | 25 | #define QTEXTEDIT_OPEN_API |
25 | 26 | ||
26 | #include <qpe/filemanager.h> | 27 | #include <qpe/filemanager.h> |
27 | 28 | ||
28 | #include <qmainwindow.h> | 29 | #include <qmainwindow.h> |
29 | #include <qmultilineedit.h> | 30 | #include <qmultilineedit.h> |
30 | #include <qlist.h> | 31 | #include <qlist.h> |
31 | #include <qmap.h> | 32 | #include <qmap.h> |
@@ -45,58 +46,60 @@ class TextEdit : public QMainWindow | |||
45 | 46 | ||
46 | public: | 47 | public: |
47 | TextEdit( QWidget *parent = 0, const char *name = 0, WFlags f = 0 ); | 48 | TextEdit( QWidget *parent = 0, const char *name = 0, WFlags f = 0 ); |
48 | ~TextEdit(); | 49 | ~TextEdit(); |
49 | 50 | ||
50 | void openFile( const QString & ); | 51 | void openFile( const QString & ); |
51 | 52 | ||
52 | protected: | 53 | protected: |
53 | void closeEvent( QCloseEvent *e ); | 54 | void closeEvent( QCloseEvent *e ); |
54 | 55 | ||
55 | private slots: | 56 | private slots: |
56 | void setDocument(const QString&); | 57 | void setDocument(const QString&); |
57 | 58 | void changeFont(); | |
58 | void fileNew(); | 59 | void fileNew(); |
59 | void fileRevert(); | 60 | void fileRevert(); |
60 | void fileOpen(); | 61 | void fileOpen(); |
62 | void newFileOpen(); | ||
63 | bool save(); | ||
61 | 64 | ||
62 | void editCut(); | 65 | void editCut(); |
63 | void editCopy(); | 66 | void editCopy(); |
64 | void editPaste(); | 67 | void editPaste(); |
65 | void editFind(); | 68 | void editFind(); |
66 | 69 | ||
67 | void findNext(); | 70 | void findNext(); |
68 | void findClose(); | 71 | void findClose(); |
69 | 72 | ||
70 | void search(); | 73 | void search(); |
71 | void accept(); | 74 | void accept(); |
72 | 75 | ||
73 | void newFile( const DocLnk & ); | 76 | void newFile( const DocLnk & ); |
74 | void openFile( const DocLnk & ); | 77 | void openFile( const DocLnk & ); |
75 | void showEditTools(); | 78 | void showEditTools(); |
76 | 79 | ||
77 | void zoomIn(); | 80 | void zoomIn(); |
78 | void zoomOut(); | 81 | void zoomOut(); |
79 | void setBold(bool y); | 82 | void setBold(bool y); |
80 | void setItalic(bool y); | 83 | void setItalic(bool y); |
81 | void setWordWrap(bool y); | 84 | void setWordWrap(bool y); |
82 | 85 | ||
83 | private: | 86 | private: |
84 | void colorChanged( const QColor &c ); | 87 | void colorChanged( const QColor &c ); |
85 | bool save(); | ||
86 | void clear(); | 88 | void clear(); |
87 | void updateCaption( const QString &name=QString::null ); | 89 | void updateCaption( const QString &name=QString::null ); |
88 | void setFontSize(int sz, bool round_down_not_up); | 90 | void setFontSize(int sz, bool round_down_not_up); |
89 | 91 | ||
90 | private: | 92 | private: |
91 | QWidgetStack *editorStack; | 93 | QWidgetStack *editorStack; |
92 | FileSelector *fileSelector; | 94 | FileSelector *fileSelector; |
93 | QpeEditor* editor; | 95 | QpeEditor* editor; |
94 | QToolBar *menu, *editBar, *searchBar; | 96 | QToolBar *menu, *editBar, *searchBar; |
95 | QLineEdit *searchEdit; | 97 | QLineEdit *searchEdit; |
96 | DocLnk *doc; | 98 | DocLnk *doc; |
97 | bool searchVisible; | 99 | bool searchVisible; |
98 | bool bFromDocView; | 100 | bool bFromDocView; |
99 | QAction *zin, *zout; | 101 | QAction *zin, *zout; |
102 | QString currentFileName; | ||
100 | }; | 103 | }; |
101 | 104 | ||
102 | #endif | 105 | #endif |