aboutsummaryrefslogtreecommitdiffstats
path: root/include/ui/widgets
diff options
context:
space:
mode:
Diffstat (limited to 'include/ui/widgets')
-rw-r--r--include/ui/widgets/EditorPage.h108
-rw-r--r--include/ui/widgets/FilePage.h88
-rw-r--r--include/ui/widgets/HelpPage.h46
-rw-r--r--include/ui/widgets/InfoBoardWidget.h119
-rw-r--r--include/ui/widgets/KeyList.h135
-rw-r--r--include/ui/widgets/SignersPicker.h48
-rw-r--r--include/ui/widgets/TextEdit.h298
-rw-r--r--include/ui/widgets/VerifyKeyDetailBox.h53
8 files changed, 0 insertions, 895 deletions
diff --git a/include/ui/widgets/EditorPage.h b/include/ui/widgets/EditorPage.h
deleted file mode 100644
index 720f60c3..00000000
--- a/include/ui/widgets/EditorPage.h
+++ /dev/null
@@ -1,108 +0,0 @@
-/**
- * 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.
- *
- */
-
-#ifndef __EDITORPAGE_H__
-#define __EDITORPAGE_H__
-
-#include <GpgFrontend.h>
-
-#include "gpg/GpgConstants.h"
-
-
-QT_BEGIN_NAMESPACE
-class QVBoxLayout;
-
-class QHBoxLayout;
-
-class QString;
-
-class QLabel;
-
-QT_END_NAMESPACE
-
-/**
- * @brief Class for handling a single tab of the tabwidget
- *
- */
-class EditorPage : public QWidget {
-Q_OBJECT
-public:
- /**
- * @details Add layout and add plaintextedit
- *
- * @param filePath Path of the file handled in this tab
- * @param parent Pointer to the parent widget
- */
- explicit EditorPage(QString filePath = "", QWidget *parent = nullptr);
-
- /**
- * @details Get the filepath of the currently activated tab.
- */
- const QString &getFilePath() const;
-
- /**
- * @details Set filepath of currently activated tab.
- *
- * @param filePath The path to be set
- */
- void setFilePath(const QString &filePath);
-
- /**
- * @details Return pointer tp the textedit of the currently activated tab.
- */
- QTextEdit *getTextPage();
-
- /**
- * @details Show additional widget at buttom of currently active tab
- *
- * @param widget The widget to be added
- * @param className The name to handle the added widget
- */
- void showNotificationWidget(QWidget *widget, const char *className);
-
- /**
- * @details Hide all widgets with the given className
- *
- * @param className The classname of the widgets to hide
- */
- 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 */
- QString fullFilePath; /** The path to the file handled in the tab */
- bool signMarked{}; /** true, if the signed header is marked, false if not */
-
-private slots:
-
- /**
- * @details Format the gpg header in another font-style
- */
- void slotFormatGpgHeader();
-};
-
-#endif // __EDITORPAGE_H__
diff --git a/include/ui/widgets/FilePage.h b/include/ui/widgets/FilePage.h
deleted file mode 100644
index 45d638fa..00000000
--- a/include/ui/widgets/FilePage.h
+++ /dev/null
@@ -1,88 +0,0 @@
-/**
- * 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.
- *
- */
-
-#ifndef GPGFRONTEND_FILEPAGE_H
-#define GPGFRONTEND_FILEPAGE_H
-
-#include "GpgFrontend.h"
-
-class FilePage : public QWidget {
-Q_OBJECT
-public:
-
- explicit FilePage(QWidget* parent = nullptr);
-
- [[nodiscard]] QString getSelected() const;
-
- void createPopupMenu();
-
-signals:
- void pathChanged(const QString &path);
-
-private slots:
-
- void fileTreeViewItemClicked(const QModelIndex &index);
- void fileTreeViewItemDoubleClicked(const QModelIndex &index);
-
- void slotUpLevel();
- void slotGoPath();
-
- void slotOpenItem();
- void slotDeleteItem();
- void slotEncryptItem();
- void slotDecryptItem();
- void slotSignItem();
- void slotVerifyItem();
-
- void onCustomContextMenu(const QPoint &point);
-
-protected:
-
- void keyPressEvent(QKeyEvent *event) override;
-
-
-private:
-
- QFileSystemModel *dirModel;
- QTreeView *dirTreeView;
- QLineEdit *pathEdit;
- QString mPath;
- QString selectedPath;
-
- QPushButton *upLevelButton;
- QPushButton *goPathButton;
- QPushButton *refreshButton;
-
- QMenu *popUpMenu{};
- QAction *encryptItemAct{};
- QAction *decryptItemAct{};
- QAction *signItemAct{};
- QAction *verifyItemAct{};
-
- QWidget *firstParent;
-
-};
-
-
-#endif //GPGFRONTEND_FILEPAGE_H
diff --git a/include/ui/widgets/HelpPage.h b/include/ui/widgets/HelpPage.h
deleted file mode 100644
index 0b5e4ca3..00000000
--- a/include/ui/widgets/HelpPage.h
+++ /dev/null
@@ -1,46 +0,0 @@
-/*
- * helppage.h
- *
- * Copyright 2008 gpg4usb-team <[email protected]>
- *
- * This file is part of gpg4usb.
- *
- * Gpg4usb 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.
- *
- * Gpg4usb 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 gpg4usb. If not, see <http://www.gnu.org/licenses/>
- */
-
-#ifndef HELPPAGE_H
-#define HELPPAGE_H
-
-#include <GpgFrontend.h>
-
-class HelpPage : public QWidget {
-Q_OBJECT
-public:
- explicit HelpPage(const QString& path, QWidget *parent = nullptr);
-
- QTextBrowser *getBrowser();
-
-signals:
-
-public slots:
-
- void slotOpenUrl(const QUrl& url);
-
-private:
- QTextBrowser *browser; /** The textbrowser of the tab */
- QUrl localizedHelp(const QUrl& path);
-
-};
-
-#endif // HELPPAGE_H
diff --git a/include/ui/widgets/InfoBoardWidget.h b/include/ui/widgets/InfoBoardWidget.h
deleted file mode 100644
index 334ef55a..00000000
--- a/include/ui/widgets/InfoBoardWidget.h
+++ /dev/null
@@ -1,119 +0,0 @@
-/**
- * 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.
- *
- */
-
-#ifndef __VERIFYNOTIFICATION_H__
-#define __VERIFYNOTIFICATION_H__
-
-#include "EditorPage.h"
-#include "FilePage.h"
-#include "ui/VerifyDetailsDialog.h"
-#include "gpg/result_analyse/VerifyResultAnalyse.h"
-
-/**
- * @details Enumeration for the status of Verifylabel
- */
-typedef enum {
- INFO_ERROR_OK = 0,
- INFO_ERROR_WARN = 1,
- INFO_ERROR_CRITICAL = 2,
- INFO_ERROR_NEUTRAL = 3,
-} InfoBoardStatus;
-
-/**
- * @brief Class for handling the verifylabel shown at buttom of a textedit-page
- */
-class InfoBoardWidget : public QWidget {
-Q_OBJECT
-public:
- /**
- * @brief
- *
- * @param ctx The GPGme-Context
- * @param parent The parent widget
- */
- explicit InfoBoardWidget(QWidget *parent, GpgME::GpgContext *ctx, KeyList *keyList);
-
-
- void associateTextEdit(QTextEdit *edit);
-
- void associateFileTreeView(FilePage *treeView);
-
- void associateTabWidget(QTabWidget *tab);
-
- void addOptionalAction(const QString& name, const std::function<void()>& action);
-
- void resetOptionActionsMenu();
-
-
-
- /**
- * @details Set the text and background-color of verify notification.
- *
- * @param text The text to be set.
- * @param verifyLabelStatus The status of label to set the specified color.
- */
- void setInfoBoard(const QString& text, InfoBoardStatus verifyLabelStatus);
-
-
- QStringList *keysNotInList; /** List with keys, which are in signature but not in keylist */
-
-
-public slots:
-
- /**
- * @details Import the keys contained in keysNotInList from keyserver
- *
- */
- void slotImportFromKeyserver();
-
- void slotReset();
-
- /**
- * @details Refresh the contents of dialog.
- */
- void slotRefresh(const QString &text, InfoBoardStatus status);
-
-private:
-
- QString appPath;
- QSettings settings;
-
- QMenu *detailMenu; /** Menu for te Button in verfiyNotification */
- QAction *importFromKeyserverAct; /** Action for importing keys from keyserver which are notin keylist */
- QTextEdit *infoBoard;
- GpgME::GpgContext *mCtx; /** GpgME Context */
- KeyList *mKeyList; /** Table holding the keys */
-
- QTextEdit *mTextPage{ nullptr }; /** TextEdit associated to the notification */
- FilePage *mFileTreeView{nullptr }; /** TreeView associated to the notification */
- QTabWidget *mTabWidget{ nullptr }; /** TreeView associated to the notification */
-
- QHBoxLayout *actionButtonLayout;
-
- void deleteWidgetsInLayout(QLayout* layout, int start_index = 0);
-
-
-};
-
-#endif // __VERIFYNOTIFICATION_H__ \ No newline at end of file
diff --git a/include/ui/widgets/KeyList.h b/include/ui/widgets/KeyList.h
deleted file mode 100644
index 231255b6..00000000
--- a/include/ui/widgets/KeyList.h
+++ /dev/null
@@ -1,135 +0,0 @@
-/**
- * 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.
- *
- */
-
-#ifndef __KEYLIST_H__
-#define __KEYLIST_H__
-
-#include "gpg/GpgContext.h"
-#include "ui/KeyImportDetailDialog.h"
-
-
-struct KeyListRow {
-
- using KeyType = unsigned int;
-
- static const KeyType SECRET_OR_PUBLIC_KEY = 0;
- static const KeyType ONLY_SECRET_KEY = 1;
-
-};
-
-struct KeyListColumn {
-
- using InfoType = unsigned int;
-
- static constexpr InfoType ALL = ~0;
- static constexpr InfoType TYPE = 1 << 0;
- static constexpr InfoType NAME = 1 << 1;
- static constexpr InfoType EmailAddress = 1 << 2;
- static constexpr InfoType Usage = 1 << 3;
- static constexpr InfoType Validity = 1 << 4;
- static constexpr InfoType FingerPrint = 1 << 5;
-
-};
-
-
-class KeyList : public QWidget {
-Q_OBJECT
-
-public:
-
- explicit KeyList(GpgME::GpgContext *ctx,
- KeyListRow::KeyType selectType = KeyListRow::SECRET_OR_PUBLIC_KEY,
- KeyListColumn::InfoType infoType = KeyListColumn::ALL,
- QWidget *parent = nullptr);
-
- void setExcludeKeys(std::initializer_list<QString> key_ids);
-
- void setFilter(std::function<bool(const GpgKey&)> filter);
-
- void setDoubleClickedAction(std::function<void(const GpgKey&, QWidget *)> action);
-
- void setColumnWidth(int row, int size);
-
- void addMenuAction(QAction *act);
-
- void addSeparator();
-
- QStringList *getChecked();
-
- void getCheckedKeys(QVector<GpgKey> &keys);
-
- QStringList *getPrivateChecked();
-
- void getPrivateCheckedKeys(QVector<GpgKey> &keys);
-
- QStringList *getAllPrivateKeys();
-
- void setChecked(QStringList *keyIds);
-
- QStringList *getSelected();
-
- GpgKey getSelectedKey();
-
- [[maybe_unused]] static void markKeys(QStringList *keyIds);
-
- [[maybe_unused]] bool containsPrivateKeys();
-
-public slots:
-
- void slotRefresh();
-
-private:
-
- void importKeys(QByteArray inBuffer);
-
- QString appPath;
- QSettings settings;
-
- GpgME::GpgContext *mCtx;
- QTableWidget *mKeyList;
- QMenu *popupMenu;
- QNetworkAccessManager *qnam{};
- QVector<GpgKey> buffered_keys;
- KeyListRow::KeyType mSelectType;
- KeyListColumn::InfoType mInfoType;
- QVector<QString> excluded_key_ids;
-
- std::function<bool(const GpgKey &)> mFilter = nullptr;
- std::function<void(const GpgKey &, QWidget *)> mAction = nullptr;
-
-
-private slots:
-
- void slotDoubleClicked(const QModelIndex &index);
-
-protected:
-
- void contextMenuEvent(QContextMenuEvent *event) override;
-
- void dragEnterEvent(QDragEnterEvent *event) override;
-
- void dropEvent(QDropEvent *event) override;
-};
-
-#endif // __KEYLIST_H__
diff --git a/include/ui/widgets/SignersPicker.h b/include/ui/widgets/SignersPicker.h
deleted file mode 100644
index afa95a05..00000000
--- a/include/ui/widgets/SignersPicker.h
+++ /dev/null
@@ -1,48 +0,0 @@
-/**
- * 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.
- *
- */
-
-#ifndef GPGFRONTEND_ZH_CN_TS_SIGNERSPIRCKER_H
-#define GPGFRONTEND_ZH_CN_TS_SIGNERSPIRCKER_H
-
-#include "GpgFrontend.h"
-#include "gpg/GpgContext.h"
-
-#include "ui/widgets/KeyList.h"
-
-class SignersPicker : public QDialog {
-Q_OBJECT
-
-public:
-
- explicit SignersPicker(GpgME::GpgContext *ctx, QWidget *parent = nullptr);
-
- void getCheckedSigners(QVector<GpgKey> &keys);
-
-private:
- GpgME::GpgContext *mCtx;
- KeyList *mKeyList;
-};
-
-
-#endif //GPGFRONTEND_ZH_CN_TS_SIGNERSPIRCKER_H
diff --git a/include/ui/widgets/TextEdit.h b/include/ui/widgets/TextEdit.h
deleted file mode 100644
index 92bf4dfa..00000000
--- a/include/ui/widgets/TextEdit.h
+++ /dev/null
@@ -1,298 +0,0 @@
-/**
- * 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.
- *
- */
-
-#ifndef __TEXTEDIT_H__
-#define __TEXTEDIT_H__
-
-#include "ui/widgets/EditorPage.h"
-#include "ui/widgets/HelpPage.h"
-#include "ui/widgets/FilePage.h"
-#include "ui/QuitDialog.h"
-
-
-/**
- * @brief TextEdit class
- */
-class TextEdit : public QWidget {
-Q_OBJECT
-public:
- /**
- * @brief
- */
- TextEdit(QWidget *parent);
-
- /**
- * @details Load the content of file into the current textpage
- *
- * @param fileName QString containing the filename to load
- * @return nothing
- */
- void loadFile(const QString &fileName);
-
-
- /**
- * @details Checks if there are unsaved documents in any tab,
- * which may need to be saved. Call this function before
- * closing the programme or all tabs.
- * @return \li false, if the close event should be aborted.
- * \li true, otherwise
- */
- bool maybeSaveAnyTab();
-
- [[nodiscard]] int tabCount() const;
-
- /**
- * @details textpage of the currently activated tab
- * @return \li reference to QTextEdit if tab has one
- * \li 0 otherwise (e.g. if helppage)
- */
- [[nodiscard]] QTextEdit *curTextPage() const;
-
- [[nodiscard]] FilePage * curFilePage() const;
-
- /**
- * @details List of currently unsaved tabs.
- * @returns QHash<int, QString> Hash of tabindexes and title of unsaved tabs.
- */
- [[nodiscard]] QHash<int, QString> unsavedDocuments() const;
-
- QTabWidget *tabWidget; /** Widget containing the tabs of the editor */
-
-public slots:
-
- /**
- * @details Return pointer to the currently activated text edit tab page.
- *
- */
- [[nodiscard]] EditorPage *slotCurPageTextEdit() const;
-
- /**
- * @details Return pointer to the currently activated file treeview tab page.
- *
- */
- [[nodiscard]] FilePage *slotCurPageFileTreeView() const;
-
- /**
- * @details Insert a ">" at the begining of every line of current textedit.
- */
- void slotQuote() const;
-
- /**
- * @details replace the text of currently active textedit with given text.
- * @param text to fill on.
- */
- void slotFillTextEditWithText(const QString& text) const;
-
- /**
- * @details Saves the content of the current tab, if it has a filepath
- * otherwise it calls saveAs for the current tab
- */
- void slotSave();
-
- /**
- * @details Opens a savefiledialog and calls saveFile with the choosen filename.
- *
- * @return Return the return value of the savefile method
- */
- bool slotSaveAs();
-
- /**
- * @details Show an OpenFileDoalog and open the file in a new tab.
- * Shows an error dialog, if the open fails.
- * Set the focus to the tab of the opened file.
- */
- void slotOpen();
-
- /**
- * @details Open a print-dialog for the current tab
- */
- void slotPrint();
-
- /**
- * @details Adds a new tab with the title "untitled"+countpage+".txt"
- * Sets the focus to the new tab. Increase Tab-Count by one
- */
- void slotNewTab();
-
- /**
- * @details Adds a new tab with opening file by path
- */
- void slotOpenFile(QString &path);
-
- /**
- * @details Adds a new tab with the given title and opens given html file.
- * Increase Tab-Count by one
- * @param title title for the tab
- * @param path path for html file to show
- */
- void slotNewHelpTab(const QString& title, const QString& path) const;
-
- /**
- * New File Tab to do file operation
- */
- void slotNewFileTab() const;
-
- /**
- * @details put a * in front of current tabs title, if current textedit is modified
- */
- void slotShowModified() const;
-
- /**
- * @details close the current tab and decrease TabWidget->count by \a 1
- *
- */
- void slotCloseTab();
-
- /**
- * @details Switch to the next tab.
- *
- */
- void slotSwitchTabUp() const;
-
- /**
- * @details Switch to the previous tab.
- *
- */
- 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
- *
- * @param a filename path
- * @return QString containing the filename
- */
- static QString strippedName(const QString &fullFileName);
-
- /**
- * @brief
- *
- * @param askToSave
- */
- bool maybeSaveCurrentTab(bool askToSave);
-
- /****************************************************************************************
- * Name: countPage
- * Description: int cotaining the number of added tabs
- */
- int countPage; /* TODO */
-
- QHash<const QString, QWidget *> pagesHashMap;
-
-private slots:
-
- void slotFilePagePathChanged(const QString& path);
-
- /**
- * @details Remove the tab with given index
- *
- * @param index Tab-number to remove
- */
- void removeTab(int index);
-
- /**
- * @details Cut selected text in current textpage.
- */
- void slotCut() const;
-
- /**
- * @details Copy selected text of current textpage to clipboard.
- */
- void slotCopy() const;
-
- /**
- * @details Paste text from clipboard to current textpage.
- */
- void slotPaste() const;
-
- /**
- * @details Undo last change in current textpage.
- *
- */
- void slotUndo() const;
- /****************************************************************************************
- * Name: redo
- * Description: redo last change in current textpage
- * Parameters: none
- * Return Values: none
- * Change on members: none
- */
- /**
- * @brief
- *
- */
- void slotRedo() const;
-
- void slotZoomIn() const;
-
- void slotZoomOut() const;
- /****************************************************************************************
- * Name: selectAll
- * Description: select all in current textpage
- * Parameters: none
- * Return Values: none
- * Change on members: none
- */
- /**
- * @brief
- *
- */
- void slotSelectAll() const;
-
-protected:
-
- /****************************************************************************************
- * Name: saveFile
- * Description: Saves the content of currentTab to the file filename
- * Parameters: QString filename contains the full path of the file to save
- * Return Values: true, if the file was saved succesfully
- * false, if parameter filename is empty or the saving failed
- * Change on members: sets isModified of the current tab to false
- */
- /**
- * @brief
- *
- * @param fileName
- */
- bool saveFile(const QString &fileName);
-};
-
-#endif // __TEXTEDIT_H__
diff --git a/include/ui/widgets/VerifyKeyDetailBox.h b/include/ui/widgets/VerifyKeyDetailBox.h
deleted file mode 100644
index 66f01a8e..00000000
--- a/include/ui/widgets/VerifyKeyDetailBox.h
+++ /dev/null
@@ -1,53 +0,0 @@
-/**
- * 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.
- *
- */
-
-#ifndef __VERIFYKEYDETAILBOX_H__
-#define __VERIFYKEYDETAILBOX_H__
-
-#include "ui/widgets/KeyList.h"
-#include "ui/KeyServerImportDialog.h"
-
-class VerifyKeyDetailBox : public QGroupBox {
-Q_OBJECT
-public:
- explicit VerifyKeyDetailBox(QWidget *parent, GpgME::GpgContext *ctx, KeyList *mKeyList,
- gpgme_signature_t signature);
-
-private slots:
-
- void slotImportFormKeyserver();
-
-private:
- GpgME::GpgContext *mCtx;
- KeyList *mKeyList;
-
- static QString beautifyFingerprint(QString fingerprint);
-
- QGridLayout *createKeyInfoGrid(gpgme_signature_t &signature);
-
- QString fpr;
-};
-
-#endif // __VERIFYKEYDETAILBOX_H__
-