Diffstat (limited to 'core/apps/textedit/textedit.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/apps/textedit/textedit.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/apps/textedit/textedit.h b/core/apps/textedit/textedit.h index aca2933..a70b581 100644 --- a/core/apps/textedit/textedit.h +++ b/core/apps/textedit/textedit.h | |||
@@ -26,94 +26,95 @@ | |||
26 | 26 | ||
27 | #include "fileBrowser.h" | 27 | #include "fileBrowser.h" |
28 | #include "fileSaver.h" | 28 | #include "fileSaver.h" |
29 | 29 | ||
30 | #include <qpe/filemanager.h> | 30 | #include <qpe/filemanager.h> |
31 | 31 | ||
32 | #include <qmainwindow.h> | 32 | #include <qmainwindow.h> |
33 | #include <qmultilineedit.h> | 33 | #include <qmultilineedit.h> |
34 | #include <qlist.h> | 34 | #include <qlist.h> |
35 | #include <qmap.h> | 35 | #include <qmap.h> |
36 | 36 | ||
37 | class QAction; | 37 | class QAction; |
38 | class QWidgetStack; | 38 | class QWidgetStack; |
39 | class QToolButton; | 39 | class QToolButton; |
40 | class QPopupMenu; | 40 | class QPopupMenu; |
41 | class QToolBar; | 41 | class QToolBar; |
42 | class QLineEdit; | 42 | class QLineEdit; |
43 | class QAction; | 43 | class QAction; |
44 | class FileSelector; | 44 | class FileSelector; |
45 | class QpeEditor; | 45 | class QpeEditor; |
46 | class QPopupMenu; | 46 | class QPopupMenu; |
47 | 47 | ||
48 | class TextEdit : public QMainWindow | 48 | class TextEdit : public QMainWindow |
49 | { | 49 | { |
50 | Q_OBJECT | 50 | Q_OBJECT |
51 | 51 | ||
52 | public: | 52 | public: |
53 | TextEdit( QWidget *parent = 0, const char *name = 0, WFlags f = 0 ); | 53 | TextEdit( QWidget *parent = 0, const char *name = 0, WFlags f = 0 ); |
54 | ~TextEdit(); | 54 | ~TextEdit(); |
55 | QPopupMenu *font; | 55 | QPopupMenu *font; |
56 | QAction *nStart; | 56 | QAction *nStart; |
57 | bool edited, edited1; | 57 | bool edited, edited1; |
58 | void openFile( const QString & ); | 58 | void openFile( const QString & ); |
59 | public slots: | 59 | public slots: |
60 | void editorChanged(); | 60 | void editorChanged(); |
61 | 61 | ||
62 | protected: | 62 | protected: |
63 | void closeEvent( QCloseEvent *e ); | 63 | void closeEvent( QCloseEvent *e ); |
64 | 64 | ||
65 | private slots: | 65 | private slots: |
66 | void setDocument(const QString&); | 66 | void setDocument(const QString&); |
67 | void changeFont(); | 67 | void changeFont(); |
68 | void fileNew(); | 68 | void fileNew(); |
69 | void fileRevert(); | 69 | void fileRevert(); |
70 | void fileOpen(); | 70 | void fileOpen(); |
71 | void changeStartConfig(bool); | 71 | void changeStartConfig(bool); |
72 | bool save(); | 72 | bool save(); |
73 | bool saveAs(); | 73 | bool saveAs(); |
74 | void cleanUp(); | ||
74 | 75 | ||
75 | 76 | ||
76 | void editCut(); | 77 | void editCut(); |
77 | void editCopy(); | 78 | void editCopy(); |
78 | void editPaste(); | 79 | void editPaste(); |
79 | void editFind(); | 80 | void editFind(); |
80 | void editDelete(); | 81 | void editDelete(); |
81 | 82 | ||
82 | void findNext(); | 83 | void findNext(); |
83 | void findClose(); | 84 | void findClose(); |
84 | 85 | ||
85 | void search(); | 86 | void search(); |
86 | void accept(); | 87 | void accept(); |
87 | 88 | ||
88 | void newFile( const DocLnk & ); | 89 | void newFile( const DocLnk & ); |
89 | void openFile( const DocLnk & ); | 90 | void openFile( const DocLnk & ); |
90 | void showEditTools(); | 91 | void showEditTools(); |
91 | 92 | ||
92 | void zoomIn(); | 93 | void zoomIn(); |
93 | void zoomOut(); | 94 | void zoomOut(); |
94 | void setBold(bool y); | 95 | void setBold(bool y); |
95 | void setItalic(bool y); | 96 | void setItalic(bool y); |
96 | void setWordWrap(bool y); | 97 | void setWordWrap(bool y); |
97 | 98 | ||
98 | private: | 99 | private: |
99 | void colorChanged( const QColor &c ); | 100 | void colorChanged( const QColor &c ); |
100 | void clear(); | 101 | void clear(); |
101 | void updateCaption( const QString &name=QString::null ); | 102 | void updateCaption( const QString &name=QString::null ); |
102 | void setFontSize(int sz, bool round_down_not_up); | 103 | void setFontSize(int sz, bool round_down_not_up); |
103 | 104 | ||
104 | private: | 105 | private: |
105 | fileSaver *fileSaveDlg; | 106 | fileSaver *fileSaveDlg; |
106 | fileBrowser *browseForFiles; | 107 | fileBrowser *browseForFiles; |
107 | 108 | ||
108 | QpeEditor* editor; | 109 | QpeEditor* editor; |
109 | QToolBar *menu, *editBar, *searchBar; | 110 | QToolBar *menu, *editBar, *searchBar; |
110 | QLineEdit *searchEdit; | 111 | QLineEdit *searchEdit; |
111 | DocLnk *doc; | 112 | DocLnk *doc; |
112 | bool searchVisible; | 113 | bool searchVisible; |
113 | bool bFromDocView; | 114 | bool bFromDocView; |
114 | int viewSelection; | 115 | int viewSelection; |
115 | QAction *zin, *zout; | 116 | QAction *zin, *zout; |
116 | QString currentFileName; | 117 | QString currentFileName; |
117 | }; | 118 | }; |
118 | 119 | ||
119 | #endif | 120 | #endif |