aboutsummaryrefslogtreecommitdiffstats
path: root/textedit.h
diff options
context:
space:
mode:
authornils <nils@34ebc366-c3a9-4b3c-9f84-69acf7962910>2011-01-17 21:39:54 +0000
committernils <nils@34ebc366-c3a9-4b3c-9f84-69acf7962910>2011-01-17 21:39:54 +0000
commit7206143f863fa03a578efe7ecb95d1cfa4752824 (patch)
tree3d8a8a269e036c5132f97d7ed6207ccd960f298f /textedit.h
parentset focus to textedit on start (diff)
downloadgpg4usb-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.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/textedit.h b/textedit.h
index 39ed9e9..3a66175 100644
--- a/textedit.h
+++ b/textedit.h
@@ -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);