diff options
Diffstat (limited to 'include/ui/widgets')
-rw-r--r-- | include/ui/widgets/EditorPage.h | 4 | ||||
-rw-r--r-- | include/ui/widgets/TextEdit.h | 19 |
2 files changed, 22 insertions, 1 deletions
diff --git a/include/ui/widgets/EditorPage.h b/include/ui/widgets/EditorPage.h index a06d6cd6..720f60c3 100644 --- a/include/ui/widgets/EditorPage.h +++ b/include/ui/widgets/EditorPage.h @@ -47,7 +47,6 @@ QT_END_NAMESPACE */ class EditorPage : public QWidget { Q_OBJECT - public: /** * @details Add layout and add plaintextedit @@ -89,6 +88,9 @@ public: */ void closeNoteByClass(const char *className); + + const QString uuid = QUuid::createUuid().toString(); + private: QTextEdit *textPage; /** The textedit of the tab */ QVBoxLayout *mainLayout; /** The layout for the tab */ diff --git a/include/ui/widgets/TextEdit.h b/include/ui/widgets/TextEdit.h index b807d6c6..92bf4dfa 100644 --- a/include/ui/widgets/TextEdit.h +++ b/include/ui/widgets/TextEdit.h @@ -176,6 +176,23 @@ public slots: */ void slotSwitchTabDown() const; + /** + * @details Insert text in target Text Edit + */ + void slotInsertTargetTextPage(const QString &pagePtr, const QString &text); + + void slotReadTargetTextPageStart(const QString &pageStr); + + void slotReadTargetTextPageDone(const QString &pagePtr); + +signals: + + void readTargetTextPageStart(const QString &pagePtr); + + void insertTargetTextPage(const QString &pagePtr, const QString &text); + + void readTargetTextPageDone(const QString &pagePtr); + private: /** * @details return just a filename stripped of a whole path @@ -198,6 +215,8 @@ private: */ int countPage; /* TODO */ + QHash<const QString, QWidget *> pagesHashMap; + private slots: void slotFilePagePathChanged(const QString& path); |