diff options
author | nils <nils@34ebc366-c3a9-4b3c-9f84-69acf7962910> | 2011-01-17 21:39:54 +0000 |
---|---|---|
committer | nils <nils@34ebc366-c3a9-4b3c-9f84-69acf7962910> | 2011-01-17 21:39:54 +0000 |
commit | 7206143f863fa03a578efe7ecb95d1cfa4752824 (patch) | |
tree | 3d8a8a269e036c5132f97d7ed6207ccd960f298f /textedit.h | |
parent | set focus to textedit on start (diff) | |
download | gpg4usb-7206143f863fa03a578efe7ecb95d1cfa4752824.tar.gz gpg4usb-7206143f863fa03a578efe7ecb95d1cfa4752824.zip |
added quitdialog with checklist for documents to save, but there has to be some handling for the saving
git-svn-id: http://cpunk.de/svn/src/gpg4usb/trunk@439 34ebc366-c3a9-4b3c-9f84-69acf7962910
Diffstat (limited to 'textedit.h')
-rw-r--r-- | textedit.h | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -40,11 +40,13 @@ class TextEdit : public QWidget { Q_OBJECT public: - TextEdit(); + TextEdit(QString iconPath); void loadFile(const QString &fileName); bool maybeSaveAnyTab(); bool maybeSaveCurrentTab(); QPlainTextEdit* curTextPage(); + int getUnsavedDocumentsNumber(); + QHash<int, QString> unsavedDocuments(); public slots: void quote(); @@ -60,11 +62,13 @@ public slots: private: QString strippedName(const QString &fullFileName); - int countPage; - QTabWidget *tabWidget; bool maybeSaveFile(); EditorPage *curPage(); void setCursorPosition(); + QString mIconPath; + int countPage; + QTabWidget *tabWidget; + bool saveTab(int i); private slots: void removeTab(int index); |