mirror of
https://github.com/chris2511/xca.git
synced 2026-09-12 19:51:05 +05:00
Better support multiple selections - Export all selected items into one PEM file - Batch Revoke/unrevoke/renew of many selected certificates of the same issuer - allow exporting templates as PEM Add Feat. Reg. #83 Option to revoke old certificate when renewing Always put all signed certificate to the newest CA. If a CA certificate is renewed, all certificates issued by the old CA are now shown as signed by the new one.
41 lines
813 B
C++
41 lines
813 B
C++
/* vi: set sw=4 ts=4:
|
|
*
|
|
* Copyright (C) 2015 Christian Hohnstaedt.
|
|
*
|
|
* All rights reserved.
|
|
*/
|
|
|
|
#include "lib/pki_x509req.h"
|
|
#include "ReqTreeView.h"
|
|
#include "MainWindow.h"
|
|
#include <QtCore/QAbstractItemModel>
|
|
#include <QtGui/QAbstractItemView>
|
|
#include <QtGui/QMenu>
|
|
|
|
void ReqTreeView::fillContextMenu(QMenu *menu, QMenu *subExport,
|
|
const QModelIndex &index, QModelIndexList indexes)
|
|
{
|
|
X509SuperTreeView::fillContextMenu(menu, subExport, index, indexes);
|
|
|
|
if (indexes.size() != 1)
|
|
return;
|
|
|
|
menu->addAction(tr("Sign"), this, SLOT(signReq()));
|
|
if (transform) {
|
|
transform->addAction(tr("Similar Request"), this,
|
|
SLOT(toRequest()));
|
|
}
|
|
}
|
|
|
|
void ReqTreeView::toRequest()
|
|
{
|
|
if (reqs)
|
|
reqs->toRequest(currentIndex());
|
|
}
|
|
|
|
void ReqTreeView::signReq()
|
|
{
|
|
if (reqs)
|
|
reqs->signReq(currentIndex());
|
|
}
|