libkleo
cryptoconfigmodule.cpp
Go to the documentation of this file.
81 return QSize( wsz.width() + style()->pixelMetric( QStyle::PM_ScrollBarExtent ), QScrollArea::sizeHint().height() );
103 static KPageView::FaceType determineJanusFace( const Kleo::CryptoConfig * config, Kleo::CryptoConfigModule::Layout layout, bool & ok ) {
121 Kleo::CryptoConfigModule::CryptoConfigModule( Kleo::CryptoConfig* config, Layout layout, QWidget * parent )
213 components.empty() ? QLatin1String("gpgconf --list-components") : QLatin1String("gpgconf --list-options gpg") );
283 mGroupGUIs.append( new CryptoConfigGroupGUI( module, mComponent->group( groups.front() ), glay, this ) );
323 for( QStringList::const_iterator it = entries.begin(), end = entries.end() ; it != end; ++it ) {
346 l->setPixmap( loadIcon( iconName ).pixmap( KIconLoader::SizeMedium, KIconLoader::SizeMedium ) );
379 typedef CryptoConfigEntryGUI * (*constructor)( CryptoConfigModule *, Kleo::CryptoConfigEntry *, const QString &, QGridLayout *, QWidget * );
383 CryptoConfigEntryGUI * _create( CryptoConfigModule * m, Kleo::CryptoConfigEntry * e, const QString & n, QGridLayout * l, QWidget * p ) {
395 static const unsigned int numWidgetsByEntryName = sizeof widgetsByEntryName / sizeof *widgetsByEntryName;
421 CryptoConfigEntryGUI* Kleo::CryptoConfigEntryGUIFactory::createEntryGUI( CryptoConfigModule* module, Kleo::CryptoConfigEntry* entry, const QString& entryName, QGridLayout * glay, QWidget* widget )
428 if ( QRegExp( QLatin1String( widgetsByEntryName[i].entryGlob ), Qt::CaseSensitive, QRegExp::Wildcard ).exactMatch( path ) )
527 Kleo::CryptoConfigEntryDebugLevel::CryptoConfigEntryDebugLevel( CryptoConfigModule * module, Kleo::CryptoConfigEntry * entry,
857 mPushButton = new QPushButton( entry->isReadOnly() ? i18n("Show...") : i18n( "Edit..." ), widget );
947 const QStringList list = str.split( QRegExp( QLatin1String( "[\\s,]" ) ), QString::SkipEmptyParts );
960 result.options.push_back( qMakePair( key, QString::fromLatin1("") ) ); // make sure it's not a null QString, only an empty one
CryptoConfigEntryDebugLevel(CryptoConfigModule *module, Kleo::CryptoConfigEntry *entry, const QString &entryName, QGridLayout *layout, QWidget *parent=0)
Definition: cryptoconfigmodule.cpp:527
int indexOf(QChar ch, int from, Qt::CaseSensitivity cs) const
CryptoConfigEntryLineEdit(CryptoConfigModule *module, Kleo::CryptoConfigEntry *entry, const QString &entryName, QGridLayout *layout, QWidget *parent=0)
Definition: cryptoconfigmodule.cpp:483
static KPageView::FaceType determineJanusFace(const Kleo::CryptoConfig *config, Kleo::CryptoConfigModule::Layout layout, bool &ok)
Definition: cryptoconfigmodule.cpp:103
void setWidget(QWidget *widget)
CryptoConfigEntrySpinBox(CryptoConfigModule *module, Kleo::CryptoConfigEntry *entry, const QString &entryName, QGridLayout *layout, QWidget *parent=0)
Definition: cryptoconfigmodule.cpp:752
QString toUpper() const
void setIcon(const QPixmap &i)
int width() const
virtual QSize sizeHint() const
static CryptoConfigEntryGUI * createEntryGUI(CryptoConfigModule *module, Kleo::CryptoConfigEntry *entry, const QString &entryName, QGridLayout *layout, QWidget *widget)
Definition: cryptoconfigmodule.cpp:421
Definition: cryptoconfigmodule.h:44
CryptoConfigEntryPath(CryptoConfigModule *module, Kleo::CryptoConfigEntry *entry, const QString &entryName, QGridLayout *layout, QWidget *parent=0)
Definition: cryptoconfigmodule.cpp:572
void setOpenPGPReadOnly(bool ro)
Definition: directoryserviceswidget.h:122
KLEO_EXPORT ParsedKeyserver parseKeyserver(const QString &str)
Definition: cryptoconfigmodule.cpp:946
void addWidget(QWidget *widget, int row, int column, QFlags< Qt::AlignmentFlag > alignment)
A widget corresponding to a component in the crypto config.
Definition: cryptoconfigmodule_p.h:69
void setExistingOnly(bool on)
Definition: filenamerequester.cpp:143
KUrl::List openPGPServices() const
Definition: directoryserviceswidget.cpp:582
QStringList split(const QString &sep, SplitBehavior behavior, Qt::CaseSensitivity cs) const
QWidget * widget() const
Definition: cryptoconfig.h:90
CryptoConfigEntryGUI(CryptoConfigModule *module, Kleo::CryptoConfigEntry *entry, const QString &entryName)
Definition: cryptoconfigmodule.cpp:450
void setPixmap(const QPixmap &)
A class managing widgets corresponding to a group in the crypto config.
Definition: cryptoconfigmodule_p.h:88
CryptoConfigEntryDirPath(CryptoConfigModule *module, Kleo::CryptoConfigEntry *entry, const QString &entryName, QGridLayout *layout, QWidget *parent=0)
Definition: cryptoconfigmodule.cpp:634
QWidget * viewport() const
CryptoConfigGroupGUI(CryptoConfigModule *module, Kleo::CryptoConfigGroup *group, QGridLayout *layout, QWidget *parent=0)
Definition: cryptoconfigmodule.cpp:316
void resetToDefault()
Definition: cryptoconfigmodule.cpp:475
void setFrameStyle(int style)
Definition: cryptoconfig.h:61
void setSpacing(int spacing)
int size() const
void addItem(const QString &text, const QVariant &userData)
void setBuddy(QWidget *buddy)
CryptoConfigModule(Kleo::CryptoConfig *config, QWidget *parent=0)
Definition: cryptoconfigmodule.cpp:115
void setEnabled(bool)
void addWidget(QWidget *widget, int stretch, QFlags< Qt::AlignmentFlag > alignment)
static const struct @5 debugLevels[]
void setRowStretch(int row, int stretch)
bool empty() const
static unsigned int num_components_with_options(const Kleo::CryptoConfig *config)
Definition: cryptoconfigmodule.cpp:91
KLEO_EXPORT QString assembleKeyserver(const ParsedKeyserver &keyserver)
Definition: cryptoconfigmodule.cpp:968
bool isEmpty() const
CryptoConfigEntryCheckBox(CryptoConfigModule *module, Kleo::CryptoConfigEntry *entry, const QString &entryName, QGridLayout *layout, QWidget *parent=0)
Definition: cryptoconfigmodule.cpp:820
void addX509Services(const KUrl::List &urls)
Definition: directoryserviceswidget.cpp:590
T & front()
CryptoConfigEntryGUI *(* constructor)(CryptoConfigModule *, Kleo::CryptoConfigEntry *, const QString &, QGridLayout *, QWidget *)
Definition: cryptoconfigmodule.cpp:379
void hide()
static const unsigned int numWidgetsByEntryName
Definition: cryptoconfigmodule.cpp:395
void setMargin(int margin)
void setSizePolicy(QSizePolicy)
Crypto Config Module widget, dynamically generated from CryptoConfig It's a simple QWidget so that it...
Definition: cryptoconfigmodule.h:57
KUrl::List x509Services() const
Definition: directoryserviceswidget.cpp:595
iterator end()
static const struct WidgetsByEntryName widgetsByEntryName[]
void setWidgetResizable(bool resizable)
void addLayout(QLayout *layout, int row, int column, QFlags< Qt::AlignmentFlag > alignment)
QString & replace(int position, int n, QChar after)
QString description() const
Definition: cryptoconfigmodule.cpp:459
int rowCount() const
CryptoConfigComponentGUI(CryptoConfigModule *module, Kleo::CryptoConfigComponent *component, QWidget *parent=0)
Definition: cryptoconfigmodule.cpp:260
QString mid(int position, int n) const
void addOpenPGPServices(const KUrl::List &urls)
Definition: directoryserviceswidget.cpp:577
QDesktopWidget * desktop()
static const constructor listWidgets[CryptoConfigEntry::NumArgType]
Definition: cryptoconfigmodule.cpp:397
CryptoConfigEntryURL(CryptoConfigModule *module, Kleo::CryptoConfigEntry *entry, const QString &entryName, QGridLayout *layout, QWidget *parent=0)
Definition: cryptoconfigmodule.cpp:696
Definition: cryptoconfig.h:84
void setColumnMinimumWidth(int column, int minSize)
void setFilter(QDir::Filters f)
Definition: filenamerequester.cpp:151
int height() const
QList< T > mid(int pos, int length) const
void setMinimumHeight(int minh)
QString left(int n) const
void setText(const QString &text)
void setAllowedSchemes(Schemes schemes)
Definition: directoryserviceswidget.cpp:543
void push_back(const T &value)
QString fromLatin1(const char *str, int size)
Definition: cryptoconfig.h:81
Definition: cryptoconfig.h:83
QVector< QPair< QString, QString > > options
Definition: cryptoconfigmodule.h:46
Base class for the widget managers tied to an entry in the crypto config.
Definition: cryptoconfigmodule_p.h:119
void changed()
static const constructor scalarWidgets[CryptoConfigEntry::NumArgType]
Definition: cryptoconfigmodule.cpp:410
Definition: filenamerequester.h:44
Definition: kdhorizontalline.h:48
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
void setX509ReadOnly(bool ro)
Definition: directoryserviceswidget.h:129
bool empty() const
QString arg(qlonglong a, int fieldWidth, int base, const QChar &fillChar) const
CryptoConfigEntryKeyserver(CryptoConfigModule *module, Kleo::CryptoConfigEntry *entry, const QString &entryName, QGridLayout *layout, QWidget *parent=0)
Definition: cryptoconfigmodule.cpp:918
iterator begin()
void setWordWrap(bool on)
void setSpacing(int spacing)
height
void setAllowedProtocols(Protocols protocols)
Definition: directoryserviceswidget.cpp:552
CryptoConfigEntryLDAPURL(CryptoConfigModule *module, Kleo::CryptoConfigEntry *entry, const QString &entryName, QGridLayout *layout, QWidget *parent=0)
Definition: cryptoconfigmodule.cpp:849
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:33:38 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:38 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.