diff options
author | Saturneric <[email protected]> | 2021-07-05 19:51:44 +0000 |
---|---|---|
committer | Saturneric <[email protected]> | 2021-07-05 19:51:44 +0000 |
commit | c8cbfb2e8638691e4028d889dcb3222064b19339 (patch) | |
tree | 86538afc364b8d0b375b4b94282d1613427ab617 /include/ui/widgets/TextEdit.h | |
parent | Introduce multithreading. (diff) | |
download | GpgFrontend-c8cbfb2e8638691e4028d889dcb3222064b19339.tar.gz GpgFrontend-c8cbfb2e8638691e4028d889dcb3222064b19339.zip |
Improve large file reading.
Add loading animation.
Other improvements.
Diffstat (limited to '')
-rw-r--r-- | include/ui/widgets/TextEdit.h | 19 |
1 files changed, 19 insertions, 0 deletions
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); |