author | paule <paule> | 2007-01-13 07:34:07 (UTC) |
---|---|---|
committer | paule <paule> | 2007-01-13 07:34:07 (UTC) |
commit | b1075202780c1d807c9d9f5286a2ffa7714bae51 (patch) (side-by-side diff) | |
tree | 6d37dc6d7f7b45d39f7f379c8654fd085d63e895 /noncore/apps/tinykate/mainwindow/tinykate.h | |
parent | ee43ea083b2abea078507677ee30c7af88d248c4 (diff) | |
download | opie-b1075202780c1d807c9d9f5286a2ffa7714bae51.zip opie-b1075202780c1d807c9d9f5286a2ffa7714bae51.tar.gz opie-b1075202780c1d807c9d9f5286a2ffa7714bae51.tar.bz2 |
Prompt user to save on closing a modified file; prompt user on Save As if specified file already exists; change tab to show filename when saving a new file
Diffstat (limited to 'noncore/apps/tinykate/mainwindow/tinykate.h') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/apps/tinykate/mainwindow/tinykate.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/noncore/apps/tinykate/mainwindow/tinykate.h b/noncore/apps/tinykate/mainwindow/tinykate.h index 6e95d87..7d0c588 100644 --- a/noncore/apps/tinykate/mainwindow/tinykate.h +++ b/noncore/apps/tinykate/mainwindow/tinykate.h @@ -39,24 +39,29 @@ public: public slots: void slotNew(); void setDocument(const QString& fileref); protected slots: void slotOpen(); void slotClose(); void slotCurrentChanged(QWidget *); void slotSave(); void slotSaveAs(); protected: void open(const QString&); + bool closeDocument(); + bool checkSave(); + bool saveDocument(); + bool saveDocumentAs(); + void closeEvent(QCloseEvent *e); private: QString currentFileName; Opie::Ui::OTabWidget *tabwidget; KTextEditor::View *currentView; bool shutDown; QToolButton *editCopy, *editCut, *editPaste, *editUndo, *editRedo; QAction *viewIncFontSizes, *viewDecFontSizes, *utilSettings, *editFind, *editReplace, *editGotoLine; QPopupMenu *hlmenu; uint nextUnnamed; uint viewCount; |