summaryrefslogtreecommitdiff
path: root/core/apps/textedit/textedit.h
Unidiff
Diffstat (limited to 'core/apps/textedit/textedit.h') (more/less context) (ignore whitespace changes)
-rw-r--r--core/apps/textedit/textedit.h7
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
@@ -14,12 +14,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
@@ -51,16 +52,18 @@ public:
51 52
52protected: 53protected:
53 void closeEvent( QCloseEvent *e ); 54 void closeEvent( QCloseEvent *e );
54 55
55private slots: 56private 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
@@ -79,13 +82,12 @@ private slots:
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
83private: 86private:
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
90private: 92private:
91 QWidgetStack *editorStack; 93 QWidgetStack *editorStack;
@@ -94,9 +96,10 @@ private:
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