Diffstat (limited to 'core/apps/textedit/textedit.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/apps/textedit/textedit.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/core/apps/textedit/textedit.h b/core/apps/textedit/textedit.h index a2badaa..4848051 100644 --- a/core/apps/textedit/textedit.h +++ b/core/apps/textedit/textedit.h | |||
@@ -48,38 +48,40 @@ class FileSelector; | |||
48 | class QpeEditor; | 48 | class QpeEditor; |
49 | class QPopupMenu; | 49 | class QPopupMenu; |
50 | 50 | ||
51 | class TextEdit : public QMainWindow | 51 | class TextEdit : public QMainWindow |
52 | { | 52 | { |
53 | Q_OBJECT | 53 | Q_OBJECT |
54 | 54 | ||
55 | public: | 55 | public: |
56 | TextEdit( QWidget *parent = 0, const char *name = 0, WFlags f = 0 ); | 56 | TextEdit( QWidget *parent = 0, const char *name = 0, WFlags f = 0 ); |
57 | ~TextEdit(); | 57 | ~TextEdit(); |
58 | 58 | ||
59 | QPopupMenu *font; | 59 | QPopupMenu *font; |
60 | QAction *nStart, *nFileDlgOpt, *nAdvanced; | 60 | QAction *nStart, *nFileDlgOpt, *nAdvanced, *desktopAction, *filePermAction; |
61 | bool edited, edited1; | 61 | bool edited, edited1; |
62 | void openFile( const QString & ); | 62 | void openFile( const QString & ); |
63 | QCopChannel * channel; | 63 | QCopChannel * channel; |
64 | public slots: | 64 | public slots: |
65 | void editorChanged(); | 65 | void editorChanged(); |
66 | void receive(const QCString&, const QByteArray&); | 66 | void receive(const QCString&, const QByteArray&); |
67 | protected: | 67 | protected: |
68 | bool fileIs, useAdvancedFeatures; | 68 | bool fileIs, useAdvancedFeatures, promptExit, openDesktop, filePerms; |
69 | void closeEvent( QCloseEvent *e ); | 69 | void closeEvent( QCloseEvent *e ); |
70 | void doSearchBar(); | 70 | void doSearchBar(); |
71 | private slots: | 71 | private slots: |
72 | void editPasteTimeDate(); | 72 | void editPasteTimeDate(); |
73 | void doAdvanced(bool); | 73 | void doPrompt(bool); |
74 | void doDesktop(bool); | ||
75 | void doFilePerms(bool); | ||
74 | void doAbout(); | 76 | void doAbout(); |
75 | void setDocument(const QString&); | 77 | void setDocument(const QString&); |
76 | void changeFont(); | 78 | void changeFont(); |
77 | void fileNew(); | 79 | void fileNew(); |
78 | void fileRevert(); | 80 | void fileRevert(); |
79 | void fileOpen(); | 81 | void fileOpen(); |
80 | void changeStartConfig(bool); | 82 | void changeStartConfig(bool); |
81 | bool save(); | 83 | bool save(); |
82 | bool saveAs(); | 84 | bool saveAs(); |
83 | void cleanUp(); | 85 | void cleanUp(); |
84 | 86 | ||
85 | 87 | ||
@@ -107,22 +109,23 @@ private slots: | |||
107 | 109 | ||
108 | private: | 110 | private: |
109 | void colorChanged( const QColor &c ); | 111 | void colorChanged( const QColor &c ); |
110 | void clear(); | 112 | void clear(); |
111 | void updateCaption( const QString &name=QString::null ); | 113 | void updateCaption( const QString &name=QString::null ); |
112 | void setFontSize(int sz, bool round_down_not_up); | 114 | void setFontSize(int sz, bool round_down_not_up); |
113 | 115 | ||
114 | private: | 116 | private: |
115 | // fileSaver *fileSaveDlg; | 117 | // fileSaver *fileSaveDlg; |
116 | // fileBrowser *browseForFiles; | 118 | // fileBrowser *browseForFiles; |
117 | QpeEditor* editor; | 119 | QpeEditor* editor; |
118 | QToolBar *menu, *editBar, *searchBar; | 120 | QToolBar *menu, *editBar, *searchBar; |
121 | QPopupMenu *advancedMenu; | ||
119 | QLineEdit *searchEdit; | 122 | QLineEdit *searchEdit; |
120 | DocLnk *doc; | 123 | DocLnk *doc; |
121 | bool searchVisible; | 124 | bool searchVisible; |
122 | bool bFromDocView; | 125 | bool bFromDocView; |
123 | int viewSelection; | 126 | int viewSelection; |
124 | QAction *zin, *zout; | 127 | QAction *zin, *zout; |
125 | QString currentFileName; | 128 | QString currentFileName; |
126 | }; | 129 | }; |
127 | 130 | ||
128 | #endif | 131 | #endif |