aboutsummaryrefslogtreecommitdiffstats
path: root/textedit.h
diff options
context:
space:
mode:
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);