KeyPairUIDTab.h
#ifndef GPGFRONTEND_KEYPAIRUIDTAB_H
#define GPGFRONTEND_KEYPAIRUIDTAB_H
#include "KeyNewUIDDialog.h"
#include "KeyUIDSignDialog.h"
#include "core/GpgContext.h"
#include "ui/GpgFrontendUI.h"
namespace GpgFrontend::UI {
class KeyPairUIDTab : public QWidget {
Q_OBJECT
public:
KeyPairUIDTab(const std::string& key_id, QWidget* parent);
signals:
void SignalUpdateUIDInfo();
private:
GpgKey m_key_;
QTableWidget* uid_list_{};
QTableWidget* sig_list_{};
QTabWidget* tofu_tabs_{};
QMenu* manage_selected_uid_menu_{};
QMenu* uid_popup_menu_{};
QMenu* sign_popup_menu_{};
std::vector<GpgUID> buffered_uids_;
std::vector<GpgKeySignature> buffered_signatures_;
void create_uid_list();
void create_sign_list();
void create_manage_uid_menu();
void create_uid_popup_menu();
void create_sign_popup_menu();
UIDArgsListPtr get_uid_checked();
UIDArgsListPtr get_uid_selected();
SignIdArgsListPtr get_sign_selected();
private slots:
void slot_refresh_uid_list();
void slot_refresh_tofu_info();
void slot_refresh_sig_list();
void slot_add_sign();
void slot_add_sign_single();
void slot_add_uid();
void slot_del_uid();
void slot_del_uid_single();
void slot_set_primary_uid();
void slot_del_sign();
void slot_refresh_key();
static void slot_add_uid_result(int result);
protected:
void contextMenuEvent(QContextMenuEvent* event) override;
};
} // namespace GpgFrontend::UI
#endif // GPGFRONTEND_KEYPAIRUIDTAB_H
GpgFrontend::UI::KeyPairUIDTab::create_sign_popup_menu
void create_sign_popup_menu()
Create a sign popup menu object.
Definition: KeyPairUIDTab.cpp:527
GpgFrontend::UI
Definition: FileReadTask.cpp:31
GpgFrontend::GpgKey::GetId
std::string GetId() const
Definition: GpgKey.cpp:52
GpgFrontend::SingletonFunctionObject< GpgUIDOperator >::GetInstance
static GpgUIDOperator & GetInstance(int channel=GpgFrontend::GPGFRONTEND_DEFAULT_CHANNEL)
Get the Instance object.
Definition: GpgFunctionObject.h:170
GpgFrontend::UI::KeyPairUIDTab::get_sign_selected
SignIdArgsListPtr get_sign_selected()
Get the sign selected object.
Definition: KeyPairUIDTab.cpp:441
GpgFrontend::GpgKeyGetter
Definition: GpgKeyGetter.h:45
GpgFrontend::UI::KeyPairUIDTab::contextMenuEvent
void contextMenuEvent(QContextMenuEvent *event) override
Definition: KeyPairUIDTab.cpp:472
GpgFrontend::UI::KeyPairUIDTab::create_manage_uid_menu
void create_manage_uid_menu()
Create a manage uid menu object.
Definition: KeyPairUIDTab.cpp:325
GpgFrontend::UI::KeyPairUIDTab
Definition: KeyPairUIDTab.h:39
GpgFrontend::UI::KeyPairUIDTab::slot_add_uid_result
static void slot_add_uid_result(int result)
Definition: KeyPairUIDTab.cpp:348
GpgFrontend::UI::KeyPairUIDTab::create_sign_list
void create_sign_list()
Create a sign list object.
Definition: KeyPairUIDTab.cpp:142
GpgFrontend::GpgKeyGetter::GetKey
GpgKey GetKey(const std::string &id, bool use_cache=true)
Get the Key object.
Definition: GpgKeyGetter.cpp:47
GpgFrontend::UI::KeyPairUIDTab::create_uid_popup_menu
void create_uid_popup_menu()
Create a uid popup menu object.
Definition: KeyPairUIDTab.cpp:452
GpgFrontend::UI::KeyPairUIDTab::create_uid_list
void create_uid_list()
Create a uid list object.
Definition: KeyPairUIDTab.cpp:118
GpgFrontend::UI::KeyPairUIDTab::get_uid_checked
UIDArgsListPtr get_uid_checked()
Get the uid checked object.
Definition: KeyPairUIDTab.cpp:316
GpgFrontend::UI::KeyPairUIDTab::KeyPairUIDTab
KeyPairUIDTab(const std::string &key_id, QWidget *parent)
Construct a new Key Pair U I D Tab object.
Definition: KeyPairUIDTab.cpp:37
GpgFrontend::UI::KeyPairUIDTab::get_uid_selected
UIDArgsListPtr get_uid_selected()
Get the uid selected object.
Definition: KeyPairUIDTab.cpp:431
GpgFrontend::UI::SignalStation::GetInstance
static SignalStation * GetInstance()
Get the Instance object.
Definition: SignalStation.cpp:37
GpgFrontend::GpgKey::GetUIDs
std::unique_ptr< std::vector< GpgUID > > GetUIDs() const
Definition: GpgKey.cpp:161
GpgFrontend::GpgKey::IsHasMasterKey
bool IsHasMasterKey() const
Definition: GpgKey.cpp:146
GpgFrontend::UI::KeyNewUIDDialog
Definition: KeyNewUIDDialog.h:35
GpgFrontend::GpgKey
Definition: GpgKey.h:41