From 4dd3080c36c96c58564a29f1b3d2cf21bfb1eae2 Mon Sep 17 00:00:00 2001 From: llornkcor Date: Tue, 18 Feb 2003 19:09:14 +0000 Subject: autosave feature. will save to ~/textedit.tmp is no filename has been set. moved stuff from public methods --- (limited to 'core/apps/textedit/textedit.h') 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 @@ -47,6 +47,7 @@ class QAction; class FileSelector; class QpeEditor; class QPopupMenu; +class QTimer; class TextEdit : public QMainWindow { @@ -56,18 +57,23 @@ 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); -- cgit v0.9.0.2