aboutsummaryrefslogtreecommitdiffstats
path: root/include/ui/keypair_details/KeyPairUIDTab.h
diff options
context:
space:
mode:
authorSaturneric <[email protected]>2021-05-28 19:21:46 +0000
committerSaturneric <[email protected]>2021-05-28 19:21:46 +0000
commita5c3aa5ceff300cad9203f3620f16920e726a762 (patch)
treebb375530f126f29746f4f4aa10985831beefec79 /include/ui/keypair_details/KeyPairUIDTab.h
parentAdjust part of the text of the UI interface of the UID operation tab. (diff)
downloadGpgFrontend-a5c3aa5ceff300cad9203f3620f16920e726a762.tar.gz
GpgFrontend-a5c3aa5ceff300cad9203f3620f16920e726a762.zip
Make eligible keys enter the signature candidate list.
Added delete UID interface and function. Added setting as the main UID function. Added the delete key signature menu and function (there is a problem). Improve the presentation of key list items Improve the page function of KeyList. Added pop-up menu for UID list operation on UIDTab interface. Signed-off-by: Saturneric <[email protected]>
Diffstat (limited to '')
-rw-r--r--include/ui/keypair_details/KeyPairUIDTab.h32
1 files changed, 27 insertions, 5 deletions
diff --git a/include/ui/keypair_details/KeyPairUIDTab.h b/include/ui/keypair_details/KeyPairUIDTab.h
index 70e657cd..0dd73f7b 100644
--- a/include/ui/keypair_details/KeyPairUIDTab.h
+++ b/include/ui/keypair_details/KeyPairUIDTab.h
@@ -46,17 +46,25 @@ private:
void createManageUIDMenu();
+ void createUIDPopupMenu();
+
+ void createSignPopupMenu();
+
void getUIDChecked(QVector<UID> &uids);
- GpgME::GpgContext *mCtx;
+ bool getUIDSelected(UID &uid);
- const GpgKey &mKey;
+ bool getSignSelected(Signature &signature);
+ GpgME::GpgContext *mCtx;
+ const GpgKey &mKey;
QTableWidget *uidList{};
-
QTableWidget *sigList{};
-
- QMenu *manageUIDMenu;
+ QMenu *manageSelectedUIDMenu;
+ QMenu *uidPopupMenu;
+ QMenu *signPopupMenu;
+ QVector<const UID *> buffered_uids;
+ QVector<const Signature *> buffered_signatures;
private slots:
@@ -66,10 +74,24 @@ private slots:
void slotAddSign();
+ void slotAddSignSingle();
+
void slotAddUID();
+ void slotDelUID();
+
+ void slotDelUIDSingle();
+
+ void slotSetPrimaryUID();
+
+ void slotDelSign();
+
static void slotAddUIDResult(int result);
+protected:
+
+ void contextMenuEvent(QContextMenuEvent *event) override;
+
};