aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--.DS_Storebin0 -> 8196 bytes
-rw-r--r--include/gpg/result_analyse/SignResultAnalyse.h31
-rw-r--r--release/.DS_Storebin0 -> 6148 bytes
-rw-r--r--src/gpg/result_analyse/SignResultAnalyse.cpp35
-rw-r--r--src/ui/widgets/InfoBoardWidget.cpp4
5 files changed, 68 insertions, 2 deletions
diff --git a/.DS_Store b/.DS_Store
new file mode 100644
index 00000000..277a24d9
--- /dev/null
+++ b/.DS_Store
Binary files differ
diff --git a/include/gpg/result_analyse/SignResultAnalyse.h b/include/gpg/result_analyse/SignResultAnalyse.h
new file mode 100644
index 00000000..933089bf
--- /dev/null
+++ b/include/gpg/result_analyse/SignResultAnalyse.h
@@ -0,0 +1,31 @@
+//
+// Created by eric on 2021/6/8.
+//
+
+#ifndef GPGFRONTEND_SIGNRESULTANALYSE_H
+#define GPGFRONTEND_SIGNRESULTANALYSE_H
+
+#include "GpgFrontend.h"
+
+class SignResultAnalyse {
+public:
+ SignResultAnalyse(gpgme_sign_result_t result);
+
+ [[nodiscard]] const QString &getResultReport() const;
+
+ [[nodiscard]] int getStatus() const;
+
+private:
+ QString resultText;
+ QTextStream stream{&resultText};
+
+ int status = 1;
+
+ void setStatus(int mStatus) {
+ if(mStatus < status) status = mStatus;
+ }
+
+
+};
+
+#endif //GPGFRONTEND_SIGNRESULTANALYSE_H
diff --git a/release/.DS_Store b/release/.DS_Store
new file mode 100644
index 00000000..5c04c9ec
--- /dev/null
+++ b/release/.DS_Store
Binary files differ
diff --git a/src/gpg/result_analyse/SignResultAnalyse.cpp b/src/gpg/result_analyse/SignResultAnalyse.cpp
new file mode 100644
index 00000000..51ab5a46
--- /dev/null
+++ b/src/gpg/result_analyse/SignResultAnalyse.cpp
@@ -0,0 +1,35 @@
+/**
+ * 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 "gpg/result_analyse/SignResultAnalyse.h"
+
+SignResultAnalyse::SignResultAnalyse(gpgme_sign_result_t result) {
+ stream << "Sign Report: " << Qt::endl;
+
+ auto new_sign = result->signatures;
+
+ while(new_sign != nullptr) {
+
+ }
+}
diff --git a/src/ui/widgets/InfoBoardWidget.cpp b/src/ui/widgets/InfoBoardWidget.cpp
index daa52d85..0e85e72f 100644
--- a/src/ui/widgets/InfoBoardWidget.cpp
+++ b/src/ui/widgets/InfoBoardWidget.cpp
@@ -43,7 +43,7 @@ InfoBoardWidget::InfoBoardWidget(QWidget *parent, GpgME::GpgContext *ctx, KeyLis
actionButtonLayout = new QHBoxLayout();
auto label = new QLabel("Optional Actions Menu");
- label->setMinimumHeight(25);
+ label->setMinimumHeight(16);
actionButtonLayout->addWidget(label);
actionButtonLayout->addStretch();
@@ -86,7 +86,7 @@ void InfoBoardWidget::setInfoBoard(const QString &text, InfoBoardStatus verifyLa
QPalette status = infoBoard->palette();
status.setColor(QPalette::Text, color);
infoBoard->setPalette(status);
- infoBoard->setFont(QFont("Times", 10, QFont::Bold));
+ infoBoard->setFont(QFont("Times", 12));
}
void InfoBoardWidget::slotRefresh(const QString &text, InfoBoardStatus status) {