author | llornkcor <llornkcor> | 2003-02-18 19:09:14 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2003-02-18 19:09:14 (UTC) |
commit | 4dd3080c36c96c58564a29f1b3d2cf21bfb1eae2 (patch) (side-by-side diff) | |
tree | fbc89396011e0e9a0dc04fcd1454ee670d6fcae3 /core/apps/textedit/textedit.h | |
parent | 50f0a50a14f87960cf9492d01aeed5a56a6dca06 (diff) | |
download | opie-4dd3080c36c96c58564a29f1b3d2cf21bfb1eae2.zip opie-4dd3080c36c96c58564a29f1b3d2cf21bfb1eae2.tar.gz opie-4dd3080c36c96c58564a29f1b3d2cf21bfb1eae2.tar.bz2 |
autosave feature. will save to ~/textedit.tmp is no filename has been set. moved stuff from public methods
Diffstat (limited to 'core/apps/textedit/textedit.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/apps/textedit/textedit.h | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/core/apps/textedit/textedit.h b/core/apps/textedit/textedit.h index 9f16ebf..643ea68 100644 --- a/core/apps/textedit/textedit.h +++ b/core/apps/textedit/textedit.h @@ -44,33 +44,39 @@ class QPopupMenu; class QToolBar; class QLineEdit; class QAction; class FileSelector; class QpeEditor; class QPopupMenu; +class QTimer; class TextEdit : public QMainWindow { Q_OBJECT public: TextEdit( QWidget *parent = 0, const char *name = 0, WFlags f = 0 ); ~TextEdit(); +protected: QPopupMenu *font; - QAction *nStart, *nFileDlgOpt, *nAdvanced, *desktopAction, *filePermAction, *searchBarAction; + QAction *nStart, *nFileDlgOpt, *nAdvanced, *desktopAction, *filePermAction, *searchBarAction, *nAutoSave; bool edited, edited1; void openFile( const QString & ); - QCopChannel * channel; -public slots: - void editorChanged(); -void receive(const QCString&, const QByteArray&); -protected: + QCopChannel * channel; + + bool featureAutoSave; void closeEvent( QCloseEvent *e ); void doSearchBar(); + int savePrompt(); + void setTimer(); private slots: + void editorChanged(); + void receive(const QCString&, const QByteArray&); + void timerCrank(); + void doTimer(bool); void editPasteTimeDate(); void doPrompt(bool); void doDesktop(bool); void doFilePerms(bool); void doAbout(); void setDocument(const QString&); |