aboutsummaryrefslogtreecommitdiffstats
path: root/include/ui
diff options
context:
space:
mode:
Diffstat (limited to 'include/ui')
-rw-r--r--include/ui/WaitingDialog.h40
-rw-r--r--include/ui/widgets/EditorPage.h4
-rw-r--r--include/ui/widgets/TextEdit.h19
3 files changed, 62 insertions, 1 deletions
diff --git a/include/ui/WaitingDialog.h b/include/ui/WaitingDialog.h
new file mode 100644
index 00000000..df781073
--- /dev/null
+++ b/include/ui/WaitingDialog.h
@@ -0,0 +1,40 @@
+/**
+ * This file is part of GPGFrontend.
+ *
+ * GPGFrontend is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * Foobar is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with Foobar. If not, see <https://www.gnu.org/licenses/>.
+ *
+ * The initial version of the source code is inherited from gpg4usb-team.
+ * Their source code version also complies with GNU General Public License.
+ *
+ * The source code version of this software was modified and released
+ * by Saturneric<[email protected]> starting on May 12, 2021.
+ *
+ */
+
+#include "GpgFrontend.h"
+
+class WaitingDialog : public QDialog {
+Q_OBJECT
+public:
+
+ WaitingDialog(const QString &title, QWidget *parent);
+
+public slots:
+
+private slots:
+
+private:
+
+
+};
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);