kleopatra
keylistcontroller.cpp
Go to the documentation of this file.
147 kDebug() << "you need to register view" << view << "before trying to set it as the current view!";
294 { SIGNAL(currentViewChanged(QAbstractItemView*)), SLOT(slotCurrentViewChanged(QAbstractItemView*)) },
296 static const unsigned int numTabs2Controller = sizeof tabs2controller / sizeof *tabs2controller ;
406 registerActionForCommand<NewCertificateCommand>( coll->action( QLatin1String("file_new_certificate") ) );
408 registerActionForCommand<LookupCertificatesCommand>( coll->action( QLatin1String("file_lookup_certificates") ) );
409 registerActionForCommand<ImportCertificateFromFileCommand>( coll->action( QLatin1String("file_import_certificates") ) );
411 registerActionForCommand<ExportCertificateCommand>( coll->action( QLatin1String("file_export_certificates") ) );
412 registerActionForCommand<ExportSecretKeyCommand>( coll->action( QLatin1String("file_export_secret_keys") ) );
413 registerActionForCommand<ExportOpenPGPCertsToServerCommand>( coll->action( QLatin1String("file_export_certificates_to_server") ) );
415 registerActionForCommand<DecryptVerifyFilesCommand>( coll->action(QLatin1String( "file_decrypt_verify_files") ) );
416 registerActionForCommand<SignEncryptFilesCommand>( coll->action( QLatin1String("file_sign_encrypt_files") ) );
418 registerActionForCommand<ChecksumCreateFilesCommand>(coll->action( QLatin1String("file_checksum_create_files") ) );
419 registerActionForCommand<ChecksumVerifyFilesCommand>(coll->action( QLatin1String("file_checksum_verify_files") ) );
423 registerActionForCommand<DetailsCommand>( coll->action( QLatin1String("view_certificate_details") ) );
425 registerActionForCommand<ChangeOwnerTrustCommand>( coll->action( QLatin1String("certificates_change_owner_trust") ) );
426 registerActionForCommand<TrustRootCommand>( coll->action( QLatin1String("certificates_trust_root") ) );
427 registerActionForCommand<DistrustRootCommand>( coll->action( QLatin1String("certificates_distrust_root") ) );
429 registerActionForCommand<CertifyCertificateCommand>( coll->action( QLatin1String("certificates_certify_certificate") ) );
430 registerActionForCommand<ChangeExpiryCommand>( coll->action( QLatin1String("certificates_change_expiry") ) );
431 registerActionForCommand<ChangePassphraseCommand>( coll->action( QLatin1String("certificates_change_passphrase") ) );
432 registerActionForCommand<AddUserIDCommand>( coll->action( QLatin1String("certificates_add_userid") ) );
434 registerActionForCommand<DeleteCertificatesCommand>( coll->action( QLatin1String("certificates_delete") ) );
436 registerActionForCommand<DumpCertificateCommand>( coll->action( QLatin1String("certificates_dump_certificate") ) );
438 registerActionForCommand<RefreshX509CertsCommand>( coll->action( QLatin1String("tools_refresh_x509_certificates") ) );
439 registerActionForCommand<RefreshOpenPGPCertsCommand>(coll->action( QLatin1String("tools_refresh_openpgp_certificates") ) );
443 registerActionForCommand<ClearCrlCacheCommand>( coll->action( QLatin1String("crl_clear_crl_cache") ) );
444 registerActionForCommand<DumpCrlCacheCommand>( coll->action( QLatin1String("crl_dump_crl_cache") ) );
449 void KeyListController::registerAction( QAction * action, Command::Restrictions restrictions, Command * (*create)( QAbstractItemView *, KeyListController * ) ) {
532 void KeyListController::Private::slotSelectionChanged( const QItemSelection & old, const QItemSelection & new_ )
596 Command::Restrictions KeyListController::Private::calculateRestrictionsMask( const QItemSelectionModel * sm ) {
600 const KeyListModelInterface * const m = dynamic_cast<const KeyListModelInterface*>( sm->model() );
void removeView(QAbstractItemView *view)
Definition: keylistcontroller.cpp:227
Definition: formatting.h:75
~KeyListController()
Definition: keylistcontroller.cpp:200
bool shutdownWarningRequired() const
Definition: keylistcontroller.cpp:474
TabWidget * tabWidget() const
Definition: keylistcontroller.cpp:326
void addView(QAbstractItemView *view)
Definition: keylistcontroller.cpp:221
Definition: tabwidget.h:58
QItemSelectionModel * selectionModel() const
void setCurrentView(QAbstractItemView *view)
Definition: keylistcontroller.cpp:233
Definition: keylistcontroller.h:55
void setFlatModel(AbstractKeyListModel *model)
Definition: keylistcontroller.cpp:241
void added(const GpgME::Key &key)
QPoint mapToGlobal(const QPoint &pos) const
void setTabWidget(TabWidget *tabs)
Definition: keylistcontroller.cpp:267
QWidget * viewport() const
void setHierarchicalModel(AbstractKeyListModel *model)
Definition: keylistcontroller.cpp:254
void setToolTipOptions(int opts)
Definition: keylistmodel.cpp:161
KeyListController(QObject *parent=0)
Definition: keylistcontroller.cpp:194
bool disconnect(const QObject *sender, const char *signal, const QObject *receiver, const char *method)
static const struct @9 tabs2controller[]
Definition: formatting.h:78
bool warnWhenRunningAtShutdown() const
Definition: commands/command.cpp:132
Definition: commands/command.h:70
Definition: classify.h:49
Definition: commands/command.h:74
void registerCommand(Command *cmd)
Definition: keylistcontroller.cpp:461
Definition: formatting.h:74
bool isEmpty() const
QModelIndexList selectedRows(int column) const
Definition: formatting.h:72
Definition: classify.h:48
QList< QModelIndex > addKeys(const std::vector< GpgME::Key > &keys)
Definition: keylistmodel.cpp:223
Definition: action_data.h:44
Definition: keylistmodel.h:49
QWidget * parentWidget() const
Definition: keylistcontroller.cpp:284
Command::Restrictions find_root_restrictions(const std::vector< Key > &keys)
Definition: keylistcontroller.cpp:574
AbstractKeyListModel * flatModel() const
Definition: keylistcontroller.cpp:314
void setContextMenuPolicy(Qt::ContextMenuPolicy policy)
void setParentWidget(QWidget *parent)
Definition: keylistcontroller.cpp:280
bool isCheckable() const
void commandsExecuting(bool)
Definition: readerstatus.h:46
void aboutToRemove(const GpgME::Key &key)
Definition: formatting.h:70
static boost::shared_ptr< const KeyCache > instance()
Definition: keycache.cpp:190
Definition: formatting.h:69
virtual std::vector< GpgME::Key > keys(const QList< QModelIndex > &idxs) const =0
Definition: formatting.h:73
void make_actions_from_data(const action_data *data, unsigned int numData, KActionCollection *collection)
Definition: action_data.cpp:66
Definition: formatting.h:71
void createActions(KActionCollection *collection)
Definition: keylistcontroller.cpp:330
Definition: formatting.h:79
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
QObject * parent() const
void setParentWidget(QWidget *widget)
Definition: commands/command.cpp:136
QAbstractItemView * currentView() const
Definition: keylistcontroller.cpp:322
void enableDisableActions(const QItemSelectionModel *sm) const
Definition: keylistcontroller.cpp:560
Definition: formatting.h:68
Definition: commands/command.h:58
const QAbstractItemModel * model() const
std::vector< QAbstractItemView * > views() const
Definition: keylistcontroller.cpp:237
bool hasRunningCommands() const
Definition: keylistcontroller.cpp:470
static boost::shared_ptr< KeyCache > mutableInstance()
Definition: keycache.cpp:194
AbstractKeyListModel * hierarchicalModel() const
Definition: keylistcontroller.cpp:318
Definition: formatting.h:77
static bool all_secret_are_not_owner_trust_ultimate(const std::vector< Key > &keys)
Definition: keylistcontroller.cpp:567
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:33:11 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:33:11 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.